Advertisement
CrastAndNoob

orb script FE

May 20th, 2019
383
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.78 KB | None | 0 0
  1. math.randomseed(tick())
  2. local plr = owner; local char = plr.Character;
  3. if not char then error("Your character does not exist.") end
  4. function writeToObject(name,value,typ)
  5. local stringV = Instance.new(typ.."Value")
  6. stringV.Name = name
  7. stringV.Value = value
  8. return stringV
  9. end
  10. local hum = char:FindFirstChildOfClass("Humanoid")
  11. char["Body Colors"]:Destroy()
  12. local txt = Instance.new("BillboardGui", char.Head)
  13. txt.Adornee = nil
  14. txt.Name = "NameDetect"
  15. txt.Size = UDim2.new(4, 0, 1.2, 0)
  16. txt.StudsOffset = Vector3.new(-8, 5.333333333333333, 0)
  17. local text = Instance.new("TextLabel", txt)
  18. text.Size = UDim2.new(5, 0, 3.5, 0)
  19. text.FontSize = "Size8"
  20. text.TextScaled = true
  21. text.TextTransparency = 0
  22. text.BackgroundTransparency = 1
  23. text.TextTransparency = 0
  24. text.TextStrokeTransparency = 0
  25. text.Font = Enum.Font.Arcade
  26. text.TextStrokeColor3 = Color3.new(0, 0, 0)
  27. text.TextColor3 = Color3.new(1, 1, 1)
  28. text.Text = "Neutral"
  29. char.Head.face.Texture = "http://www.roblox.com/asset/?id=287976694"
  30. local music = Instance.new("Sound",char.Torso)
  31. music.SoundId = "rbxassetid://2735155614"
  32. music.Volume = "inf"
  33. music.Looped = true
  34. music:Play()
  35. local orb = Instance.new("Part",char)
  36. orb.Name = "ORB"
  37. orb.Transparency = 0.55
  38. orb.Shape = "Ball"
  39. orb.BrickColor = BrickColor.new("Institutional white")
  40. orb.Size = Vector3.new(1.5,1.5,1.5)
  41. orb.CanCollide = false
  42. orb.Material = "SmoothPlastic"
  43. local weld = Instance.new("Weld",orb)
  44. weld.Part0 = orb
  45. weld.Part1 = char.Torso
  46. weld.C0 = CFrame.new(0,0,-2)
  47. local textrotatespeed = 5
  48. local x1 = coroutine.wrap(function()
  49. while true do
  50. for _ = 1,10 do
  51. weld.C0 = weld.C0 - Vector3.new(0,-0.02,0)
  52. wait(0.075)
  53. end
  54. for _ = 1,10 do
  55. weld.C0 = weld.C0 + Vector3.new(0,-0.020)
  56. wait(0.075)
  57. end
  58. wait()
  59. end
  60. end)
  61. x1()
  62. local x3 = coroutine.wrap(function()
  63. while true do
  64. text.Rotation = math.random((-textrotatespeed),textrotatespeed)
  65. wait(0.1/(textrotatespeed-4))
  66. end
  67. end)
  68. x3()
  69. function bubbleOrb(color)
  70. local orbOut = orb:Clone()
  71. local orbOutW = Instance.new("Weld",orbOut)
  72. orbOutW.Part0 = orbOut
  73. orbOutW.Part1 = orb
  74. orbOut.Color = color
  75. orb.Color = color
  76. local x2 = coroutine.wrap(function()
  77. for _ = 1,10 do
  78. wait(0.1)
  79. orbOut.Size = orbOut.Size + Vector3.new(0.075)
  80. orbOut.Transparency = orbOut.Transparency + 0.1
  81. end
  82. orbOut:Destroy()
  83. end)
  84. x2()
  85. text.TextColor3 = color
  86. end
  87. switchb = false
  88. local laser = Instance.new("Tool",plr.Backpack)
  89. laser.Name = "Basic Laser"
  90. laser.CanBeDropped = false
  91. laser.RequiresHandle = false
  92. laserb = false
  93. laser.Activated:connect(function()
  94. if laserb == false then
  95. laserb = true
  96. local s1
  97. local hitenabled = true
  98. ypcall(function()
  99. s1 = Instance.new("Sound",char)
  100. s1.SoundId = "rbxassetid://287142895"
  101. s1.Volume = "inf"
  102. s1:Play()
  103. end)
  104. music.Volume = 5
  105. local laserp = Instance.new("Part",char)
  106. laserp.CanCollide = false
  107. laserp.BrickColor = BrickColor.new("Institutional white")
  108. laserp.Size = Vector3.new(1,1,10)
  109. laserp.Material = "Neon"
  110. laserp.Transparency = 0.55
  111. if switchb == 2 then
  112. laserp.Size = Vector3.new(4,4,30)
  113. end
  114. local laserpl = Instance.new("Part",char)
  115. laserpl.CanCollide = false
  116. laserpl.BrickColor = BrickColor.new("Institutional white")
  117. laserpl.Size = Vector3.new(2,2,2)
  118. if switchb == 2 then
  119. laserpl.Size = Vector3.new(8,8,8)
  120. end
  121. laserpl.Material = "Neon"
  122. laserpl.Transparency = 0.55
  123. if switchb == true then
  124. laserp.BrickColor = BrickColor.new("Rust")
  125. laserp.Material = "CorrodedMetal"
  126. laserpl.BrickColor = BrickColor.new("Rust")
  127. laserpl.Material = "CorrodedMetal"
  128. end
  129. if switchb == 1 then
  130. laserp.BrickColor = BrickColor.new("Royal purple")
  131. laserpl.BrickColor = BrickColor.new("Royal purple")
  132. end
  133. if switchb == 2 then
  134. local x4 = coroutine.wrap(function()
  135. while true do
  136. wait(0.2)
  137. local chosenColor = writeToObject("RCC",BrickColor.Random().Color,"Color3")
  138. laserp.Color = chosenColor.Value
  139. laserpl.Color = chosenColor.Value
  140. chosenColor:Destroy()
  141. end
  142. end)
  143. x4()
  144. end
  145. local laserpw = Instance.new("Weld",laserp)
  146. laserpw.Part0 = laserp
  147. laserpw.Part1 = char.Torso
  148. laserpw.C0 = CFrame.new(0,0,5)
  149. if switchb == 2 then
  150. laserpw.C0 = CFrame.new(0,0,15)
  151. end
  152. local laserpwl = Instance.new("Weld",laserpl)
  153. laserpwl.Part0 = laserpl
  154. laserpwl.Part1 = char.Torso
  155. laserpwl.C0 = CFrame.new(0,0,11)
  156. if switchb == 2 then
  157. laserpwl.C0 = CFrame.new(0,0,32)
  158. end
  159. laserpl.Touched:connect(function(part)
  160. if(part.Parent:FindFirstChildOfClass("Humanoid"))and(hitenabled == true) then
  161. part.Parent:FindFirstChildOfClass("Humanoid").Health = part.Parent:FindFirstChildOfClass("Humanoid").Health - (part.Parent:FindFirstChildOfClass("Humanoid").MaxHealth/10)
  162. end
  163. if switchb == true then
  164. part.Material = "CorrodedMetal"
  165. part.BrickColor = BrickColor.new("Rust")
  166. end
  167. if switchb == 1 then
  168. part.Material = "Neon"
  169. part.BrickColor = BrickColor.new("Royal purple")
  170. ypcall(function()
  171. part.Parent:FindFirstChildOfClass("Humanoid"):Destroy()
  172. end)
  173. end
  174. end)
  175. laserp.Touched:connect(function(part)
  176. if(part.Parent:FindFirstChildOfClass("Humanoid"))and(hitenabled == true) then
  177. part.Parent:FindFirstChildOfClass("Humanoid").Health = part.Parent:FindFirstChildOfClass("Humanoid").Health - (part.Parent:FindFirstChildOfClass("Humanoid").MaxHealth/10)
  178. end
  179. if switchb == true then
  180. part.Material = "CorrodedMetal"
  181. part.BrickColor = "CorrodedMetal"
  182. end
  183. if switchb == 1 then
  184. part.Material = "Neon"
  185. part.BrickColor = BrickColor.new("Royal purple")
  186. ypcall(function()
  187. part.Parent:FindFirstChildOfClass("Humanoid"):Destroy()
  188. end)
  189. end
  190. end)
  191. if switchb == 2 then
  192. wait(2)
  193. else
  194. wait(0.2)
  195. end
  196. laserp:Destroy()
  197. laserpl:Destroy()
  198. hitenabled = false
  199. wait(0.3)
  200. laserb = false
  201. end
  202. end)
  203. local switch = Instance.new("Tool",plr.Backpack)
  204. switch.CanBeDropped = false
  205. switch.RequiresHandle = false
  206. switch.Name = "Switch Modes"
  207. switchb1 = false
  208. switch.Activated:connect(function()
  209. if switchb1 == false then
  210. if switchb == false then
  211. switchb = true
  212. switchb1 = true
  213. bubbleOrb(BrickColor.new("Light orange").Color)
  214. text.Text = "Ruined"
  215. music.SoundId = "rbxassetid://885996042"
  216. char.Head.face.Texture = "http://www.roblox.com/asset/?id=122246017"
  217. text.Font = "Bodoni"
  218. laser.Name = "Rust Laser"
  219. wait(0.5)
  220. switchb1 = false
  221. elseif switchb == true then
  222. switchb = 1
  223. switchb1 = true
  224. bubbleOrb(BrickColor.new("Royal purple").Color)
  225. text.Text = "Corrupt"
  226. music.SoundId = "rbxassetid://2736627515"
  227. char.Head.face.Texture = "http://www.roblox.com/asset/?id=2785219666"
  228. text.Font = Enum.Font.Gotham
  229. laser.Name = "Corrupt Laser"
  230. wait(0.5)
  231. switchb1 = false
  232. elseif switchb == 2 then
  233. switchb = false
  234. switchb1 = true
  235. bubbleOrb(BrickColor.new("Institutional white").Color)
  236. text.Text = "Neutral"
  237. music.SoundId = "rbxassetid://2735155614"
  238. char.Head.face.Texture = "http://www.roblox.com/asset/?id=287976694"
  239. text.Font = "Arcade"
  240. laser.Name = "Basic Laser"
  241. wait(0.5)
  242. hum.WalkSpeed = 16
  243. switchb1 = false
  244. elseif switchb == 1 then
  245. switchb = 2
  246. switchb1 = true
  247. bubbleOrb(BrickColor.Random().Color)
  248. text.Text = "CHAOTIC"
  249. music.SoundId = "rbxassetid://2525700576"
  250. char.Head.face.Texture = "http://www.roblox.com/asset/?id=1891493691"
  251. text.Font = Enum.Font.Arcade
  252. laser.Name = "Huge Laser"
  253. wait(0.5)
  254. switchb1 = false
  255. hum.WalkSpeed = 200
  256. end
  257. end
  258. end)
  259. while true do
  260. wait(0.1)
  261. if switchb == 2 then
  262. local chosenColor = writeToObject("RCC",BrickColor.Random().Color,"Color3")
  263. orb.Color = chosenColor.Value
  264. text.TextColor3 = chosenColor.Value
  265. chosenColor:Destroy()
  266. end
  267. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement