Idirina

Rainbow's Fury

Nov 20th, 2017
349
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 13.64 KB | None | 0 0
  1. wait(1/25)
  2.  
  3. -- Main Things
  4.  
  5. local player = game.Players.LocalPlayer
  6. local character = player.Character
  7. local mouse = player:GetMouse()
  8.  
  9. -- Other Things
  10.  
  11. local run = false
  12. local stopvelocity = false
  13. local speedup = 0
  14. local hover = false
  15. local timepass = 0
  16.  
  17. -- Customization Options
  18.  
  19. local forcefield = false
  20. local everyone_dies = false
  21. local have_music = true
  22. local have_light = true
  23. local speakingtext = true
  24. doeffect = 1
  25.  
  26. -- Customization Run
  27.  
  28. if have_music == true then
  29. local music = Instance.new("Sound")
  30. music.SoundId = "https://www.roblox.com/asset/?id=243139642"
  31. music.Volume = 1
  32. music.Playing = true
  33. music.Looped = true
  34. music.Pitch = 1.2
  35. music.Parent = character:WaitForChild("Head")
  36. end
  37.  
  38. if have_light == true then
  39. light = Instance.new("PointLight")
  40. light.Range = 15
  41. light.Brightness = 1000
  42. light.Shadows = true
  43. light.Enabled = false
  44. light.Parent = character:WaitForChild("Head")
  45. end
  46.  
  47. if speakingtext == true then
  48. local bgui = Instance.new("BillboardGui",character)
  49. bgui.Size = UDim2.new(0,100,0,40)
  50. bgui.StudsOffset = Vector3.new(0,2,0)
  51. bgui.Adornee = character.Head
  52. local text = Instance.new("TextLabel", bgui)
  53. text.BackgroundTransparency = 1
  54. text.BorderSizePixel = 0
  55. text.Text = "Rainbow's Fury!"
  56. text.Font = "ArialBold"
  57. text.FontSize = "Size24"
  58. text.TextStrokeTransparency = 0
  59. text.TextStrokeColor3 = Color3.new(0,0,0)
  60. text.TextColor3 = Color3.new(255,255,255)
  61. coroutine.resume(coroutine.create(function()
  62. while true do
  63. for i=1, 255 do
  64. wait()
  65. text.TextColor3 = Color3.new((math.random(0, 255) / i),(math.random(0, 255) / i),(math.random(0, 255) / i))
  66. end
  67. text.TextColor3 = Color3.new(255, 255, 255)
  68. wait()
  69. end
  70. end))
  71. text.Size = UDim2.new(1,0,0.5,0)
  72. player.Chatted:connect(function(chat)
  73. for i=1,string.len(chat) do
  74. text.Text = string.sub(chat, 1, i)
  75. wait()
  76. end
  77. wait(2)
  78. text.Text = ""
  79. end)
  80. wait(0.2)
  81. for i=1,10 do
  82. wait()
  83. text.Transparency = text.Transparency + (0.05 * i)
  84. end
  85. text.Text = ""
  86. text.FontSize = "Size28"
  87. for i=1,10 do
  88. text.Transparency = text.Transparency - (0.05 * i)
  89. wait()
  90. end
  91. end
  92.  
  93. -- God Strength
  94.  
  95. local humanoid = character:FindFirstChild("Humanoid")
  96. if humanoid == nil then
  97. return
  98. else
  99. if forcefield == true then
  100. local forcefield = Instance.new("ForceField")
  101. forcefield.Parent = character
  102. end
  103. coroutine.resume(coroutine.create(function()
  104. repeat
  105. humanoid.MaxHealth = "inf"
  106. humanoid.Health = humanoid.MaxHealth
  107. if run == false then
  108. humanoid.WalkSpeed = 30
  109. end
  110. humanoid.JumpPower = 100
  111. humanoid.PlatformStand = false
  112. game.Workspace.Gravity = 196.2
  113. for i,v in pairs(character:GetChildren()) do
  114. if v.ClassName == "Part" then
  115. v.Anchored = false
  116. end
  117. if v.ClassName == "Accessory" then
  118. for i,g in pairs(v:GetChildren()) do
  119. if g.ClassName == "Part" then
  120. g.Anchored = false
  121. if stopvelocity == true then
  122. g.Velocity = Vector3.new(0,0,0)
  123. end
  124. end
  125. end
  126. end
  127. end
  128. wait()
  129. if everyone_dies == true then
  130. if humanoid.Health <= 1 or humanoid == nil then
  131. for i,v in pairs(game.Workspace:GetChildren()) do
  132. if v:FindFirstChild("Humanoid") and v:FindFirstChild("Torso") then
  133. v:Destroy()
  134. end
  135. end
  136. return
  137. end
  138. end
  139. until humanoid == "nil"
  140. wait()
  141. end))
  142. end
  143.  
  144. -- Keys
  145.  
  146. mouse.KeyDown:connect(function(key)
  147. if key == "z" then
  148. if mouse.Target ~= nil then
  149. local hitmodel = mouse.Target.Parent
  150. local hithumanoid = mouse.Target.Parent:FindFirstChild("Humanoid")
  151. if mouse.Target.Parent.ClassName == "Accessory" then
  152. hithumanoid = mouse.Target.Parent.Parent
  153. end
  154. if hithumanoid then
  155. coroutine.resume(coroutine.create(function()
  156. repeat
  157. hithumanoid:UnequipTools()
  158. hithumanoid.WalkSpeed = 0
  159. hithumanoid.JumpPower = 0
  160. hithumanoid.PlatformStand = true
  161. wait()
  162. until hithumanoid == "nil"
  163. wait()
  164. end))
  165. end
  166. end
  167. elseif key == "r" then
  168. if mouse.Target ~= nil then
  169. mouse.Target:Destroy()
  170. end
  171. elseif key == "k" then
  172. if (character.Torso.Position - mouse.Hit.p).magnitude < 1000 then
  173. local part = Instance.new("Part")
  174. part.Name = "Block"
  175. part.Material = "SmoothPlastic"
  176. part.Anchored = true
  177. part.CanCollide = true
  178. part.Size = Vector3.new(3,9,3)
  179. part.Parent = workspace
  180. part.Position = mouse.Hit.p
  181. coroutine.resume(coroutine.create(function()
  182. wait(5)
  183. for i=1,10 do
  184. part.Size = part.Size + Vector3.new(1 * i,(1 * (i * 3)),1 * i)
  185. part.Transparency = part.Transparency + (0.025 * i)
  186. wait()
  187. end
  188. part.Transparency = 1
  189. part:Destroy()
  190. end))
  191. end
  192. elseif key == "f" then
  193. if mouse.Target ~= nil and mouse.Target.ClassName == "Part" then
  194. coroutine.resume(coroutine.create(function()
  195. local lookat = mouse.Target
  196. repeat
  197. lookat.BrickColor = BrickColor.Random()
  198. lookat.Material = "Neon"
  199. wait()
  200. until lookat == "nil"
  201. wait()
  202. end))
  203. end
  204. elseif key == "g" then
  205. if mouse.Target ~= nil and mouse.Target.ClassName == "Part" then
  206. local spinthing = mouse.Target
  207. coroutine.resume(coroutine.create(function()
  208. repeat
  209. wait()
  210. local random = math.random(-1,1)
  211. random = random * math.random(-10,10)
  212. spinthing.CFrame = spinthing.CFrame * CFrame.fromEulerAnglesXYZ(random, random, random)
  213. until spinthing == "nil"
  214. wait()
  215. end))
  216. end
  217. elseif key == "e" then
  218. local deletehumanoid = mouse.Target.Parent:FindFirstChild("Humanoid")
  219. if mouse.Target.Parent.ClassName == "Accessory" then
  220. deletehumanoid = mouse.Target.Parent.Parent
  221. end
  222. if mouse.Target ~= nil and deletehumanoid then
  223. mouse.Target.Parent:Destroy()
  224. end
  225. elseif key == "x" then
  226. local healhumanoid = mouse.Target.Parent:FindFirstChild("Humanoid")
  227. if mouse.Target.Parent.ClassName == "Accessory" then
  228. healhumanoid = mouse.Target.Parent.Parent
  229. end
  230. if mouse.Target ~= nil and healhumanoid then
  231. healhumanoid.Health = healhumanoid.MaxHealth
  232. healhumanoid.PlatformStand = false
  233. end
  234. elseif key == "l" then
  235. if (character.Torso.Position - mouse.Hit.p).magnitude < 1000 then
  236. local part = Instance.new("Part")
  237. part.Name = "Block"
  238. part.Material = "Neon"
  239. part.Anchored = true
  240. part.CanCollide = true
  241. part.Size = Vector3.new(3,3,3)
  242. part.Parent = workspace
  243. part.CFrame = mouse.Hit
  244. coroutine.resume(coroutine.create(function()
  245. for i=1,10 do
  246. part.Size = part.Size + Vector3.new(1 * i,(1 * i),1 * i)
  247. part.CFrame = part.CFrame * CFrame.fromEulerAnglesXYZ(math.rad(i), math.rad(i), math.rad(i))
  248. part.Transparency = part.Transparency + (0.025 * i)
  249. wait()
  250. end
  251. part.Transparency = 1
  252. part:Destroy()
  253. end))
  254. end
  255. elseif key == "q" then
  256. local flytarget = mouse.Target
  257. if mouse.Target ~= "nil" then
  258. for i=1,50 do
  259. flytarget.CFrame = flytarget.CFrame + Vector3.new(0,(0.1 * (i / 5)),0)
  260. wait()
  261. end
  262. local flytargethumanoid = flytarget.Parent:FindFirstChild("Humanoid")
  263. if flytargethumanoid then
  264. flytarget.Parent:BreakJoints()
  265. flytargethumanoid.Health = 0
  266. flytargethumanoid.PlatformStand = true
  267. flytargethumanoid:ClearAllChildren()
  268. end
  269. local explosion = Instance.new("Explosion")
  270. explosion.Position = flytarget.Position
  271. explosion.BlastRadius = 20
  272. explosion.BlastPressure = 250000
  273. explosion.DestroyJointRadiusPercent = 1
  274. explosion.Parent = flytarget
  275. game.Debris:AddItem(flytarget, 2)
  276. end
  277. elseif key == "y" then
  278. local pdude = mouse.Target.Parent
  279. local pdeletehumanoid = mouse.Target.Parent:FindFirstChild("Humanoid")
  280. if mouse.Target.Parent.ClassName == "Accessory" then
  281. pdeletehumanoid = mouse.Target.Parent.Parent
  282. pdude = mouse.Target.Parent.Parent
  283. end
  284. if mouse.Target ~= nil and pdeletehumanoid then
  285. repeat
  286. local pdude = game.Workspace:FindFirstChild(pdude.Name)
  287. if pdude then
  288. pdude:Destroy()
  289. end
  290. wait()
  291. until 1 == 2
  292. end
  293. elseif key == "t" then
  294. if mouse.Target ~= nil and mouse.Target.Parent.ClassName == "Accessory" then
  295. mouse.Target:Destroy()
  296. end
  297. elseif key == "m" then
  298. local block = Instance.new("Part")
  299. block.Size = Vector3.new(math.random(1, 3),math.random(1, 3),math.random(1, 3))
  300. block.BrickColor = BrickColor.Random()
  301. block.Position = mouse.Hit.p
  302. block.Parent = workspace
  303. elseif key == "n" then
  304. local blowup = Instance.new("Explosion")
  305. blowup.Position = mouse.Hit.p
  306. blowup.BlastRadius = 10
  307. blowup.BlastPressure = 250000
  308. blowup.DestroyJointRadiusPercent = 1
  309. blowup.Parent = workspace
  310. elseif key:byte() == 48 then
  311. run = true
  312. doeffect = doeffect + 1
  313. speedup = 0.01
  314. elseif key == "b" then
  315. if light.Enabled == false then
  316. light.Enabled = true
  317. else
  318. light.Enabled = false
  319. end
  320. elseif key == "v" then
  321. if stopvelocity == false then
  322. stopvelocity = true
  323. else
  324. stopvelocity = false
  325. end
  326. elseif key == "c" then
  327. if (character:FindFirstChild("Head").Position - mouse.Hit.p).magnitude < 1500 then
  328. character.Head.CFrame = mouse.Hit + Vector3.new(0, 5, 0)
  329. end
  330. elseif key == "h" then
  331. if hover == false then
  332. hover = true
  333. else
  334. hover = false
  335. end
  336. end --end of ifkeys
  337. end)
  338.  
  339. mouse.KeyUp:connect(function(key)
  340. if key:byte() == 48 then
  341. run = false
  342. doeffect = doeffect - 1
  343. speedup = 0
  344. end
  345. end)
  346.  
  347. -- Hold Actions
  348.  
  349. coroutine.resume(coroutine.create(function()
  350. while true do
  351. if run == true then
  352. humanoid.WalkSpeed = 70
  353. repeat
  354. humanoid.WalkSpeed = humanoid.WalkSpeed + (0.05 + speedup)
  355. character.Head.Velocity = character.Head.Velocity + Vector3.new(1,0,1) * character.Head.CFrame.lookVector * speedup
  356. if speedup > 15 then
  357. speedup = speedup + 0.5
  358. humanoid.WalkSpeed = humanoid.WalkSpeed + 60
  359. else
  360. speedup = speedup + 0.1
  361. end
  362. local reffect = Instance.new("Part")
  363. game.Debris:AddItem(reffect, 5)
  364. reffect.Size = Vector3.new(math.random(0.6,1),math.random(0.6,1),math.random(0.6,1))
  365. reffect.Anchored = true
  366. reffect.CanCollide = false
  367. reffect.Material = "Plastic"
  368. reffect.Name = "Run Effect"
  369. reffect.BrickColor = BrickColor.Random()
  370. reffect.CFrame = (character:FindFirstChild("Head").CFrame - Vector3.new(math.random(-1,1), math.random(4,4.5), math.random(-1,1))) * CFrame.Angles(math.rad(90),0,0)
  371. local runmesh = Instance.new("SpecialMesh")
  372. runmesh.MeshType = "FileMesh"
  373. runmesh.MeshId = "rbxassetid://20329976"
  374. runmesh.Offset = Vector3.new(0, 0, 0.5)
  375. runmesh.Parent = reffect
  376. reffect.Parent = workspace
  377. coroutine.resume(coroutine.create(function()
  378. for i=1,10 do
  379. reffect.Transparency = reffect.Transparency + (0.05 * i)
  380. runmesh.Offset = runmesh.Offset + Vector3.new(0, 1 + ((speedup) / i), 0)
  381. runmesh.Scale = runmesh.Scale + Vector3.new((humanoid.WalkSpeed / 1000) * i, (humanoid.WalkSpeed / 1000) * i, (humanoid.WalkSpeed / 1000) * i)
  382. wait()
  383. end
  384. reffect:Destroy()
  385. end))
  386. wait()
  387. until run == false
  388. humanoid.WalkSpeed = 30
  389. speedup = 0
  390. end
  391. wait()
  392. end
  393. end))
  394.  
  395. coroutine.resume(coroutine.create(function()
  396. while true do
  397. if hover == true then
  398. repeat
  399. local effect = Instance.new("Part")
  400. game.Debris:AddItem(effect, 5)
  401. effect.Size = Vector3.new(0.1, 0.1, 0.1)
  402. effect.Anchored = true
  403. effect.CanCollide = false
  404. effect.Material = "Plastic"
  405. effect.Name = "Hover Effect"
  406. effect.BrickColor = BrickColor.Random()
  407. effect.CFrame = (character:FindFirstChild("Head").CFrame - Vector3.new(math.random(-0.5,0.5), 4.5, math.random(-0.5,0.5))) * CFrame.Angles(math.rad(90),0,0)
  408. local ringmesh = Instance.new("SpecialMesh")
  409. ringmesh.MeshType = "FileMesh"
  410. ringmesh.MeshId = "rbxassetid://3270017"
  411. ringmesh.Offset = Vector3.new(0, 0, 0.5)
  412. ringmesh.Scale = Vector3.new(3,3,3)
  413. ringmesh.Parent = effect
  414. effect.Parent = workspace
  415. character.Head.Velocity = Vector3.new(character.Head.Velocity.x, 50, character.Head.Velocity.z)
  416. coroutine.resume(coroutine.create(function()
  417. for i=1,30 do
  418. effect.Transparency = effect.Transparency + ((0.05 / 3) * i)
  419. ringmesh.Scale = ringmesh.Scale + Vector3.new((-0.05 * i), (-0.05 * i), (-0.05 * i))
  420. ringmesh.Offset = ringmesh.Offset + Vector3.new(0, 0, (0.5 * i))
  421. wait()
  422. end
  423. effect:Destroy()
  424. end))
  425. wait()
  426. until hover == false
  427. end
  428. wait()
  429. end
  430. end))
  431.  
  432. -- Rainbow Particle
  433.  
  434. coroutine.resume(coroutine.create(function()
  435. while true do
  436. for i=1, math.random(1, doeffect) do
  437. local shine = Instance.new("Part")
  438. game.Debris:AddItem(shine, 5)
  439. shine.Size = Vector3.new(math.random(0.6,0.9),math.random(0.6,0.9),math.random(0.6,0.9))
  440. shine.BrickColor = BrickColor.Random()
  441. shine.Material = "Neon"
  442. shine.Anchored = true
  443. shine.CanCollide = false
  444. shine.Name = "Idle Effect"
  445. shine.CFrame = (character:FindFirstChild("Head").CFrame - Vector3.new(0, 4, 0)) * CFrame.Angles(math.rad(math.random(-360, 360)),math.rad(math.random(-360, 360)),math.rad(math.random(-360, 360)))
  446. shine.Parent = workspace
  447. coroutine.resume(coroutine.create(function()
  448. for i=1,40 do
  449. shine.Transparency = shine.Transparency + ((0.05 / 4) * i)
  450. shine.Size = shine.Size - Vector3.new(((0.05 / 4) * i), ((0.05 / 4) * i), ((0.05 / 4) * i))
  451. shine.CFrame = shine.CFrame + shine.CFrame.lookVector * (0.3 * (i / (i / 3)))
  452. shine.CFrame = shine.CFrame + Vector3.new(0,(0.1 * i), 0)
  453. shine.CFrame = shine.CFrame * CFrame.Angles(math.rad(i * 4), math.rad(i * 4), math.rad(i * 4))
  454. wait()
  455. end
  456. shine:Destroy()
  457. end))
  458. end
  459. wait()
  460. end
  461. end))
Add Comment
Please, Sign In to add comment