Advertisement
Pukaciu

rainbow body

Aug 30th, 2017
129
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.88 KB | None | 0 0
  1. --//Variables//--
  2. local player = game:GetService("Players").LocalPlayer
  3. local character = player.Character
  4. local bodyColors = character:WaitForChild("Body Colors")
  5.  
  6. -- // Music // --
  7. local Music = Instance.new("Sound", game.Workspace)
  8. Music.SoundId = "rbxassetid://131065183"
  9. Music.Volume = 10
  10. Music.Looped = true
  11. Music:Play()
  12.  
  13.  
  14. --//EVENT//--
  15. for i, v in pairs(character:GetChildren()) do
  16. if v.ClassName == "Hat" or v.ClassName == "Accessory" or v.ClassName == "Pants" or v.ClassName == "Shirt" or v.ClassName == "ShirtGraphic" then
  17. v:Remove()
  18. end
  19. end
  20. --[[ ROCKET THROWER SCRIPT --]]
  21.  
  22. --BY MR STEAL YO BORK
  23. local plr = game.Players.LocalPlayer
  24. local char = plr.Character
  25. local hum = char.Humanoid
  26. local ra = char["Right Arm"]
  27. local bp = plr.Backpack
  28. local tool = Instance.new("Tool", bp)
  29. local handle = Instance.new("Part", tool)
  30. local mesh = Instance.new("SpecialMesh", handle)
  31. local event = Instance.new("RemoteEvent", tool)
  32. local mouse = plr:GetMouse()
  33. local root = char.HumanoidRootPart
  34.  
  35. --=tool=--
  36. tool.Name = "rocket thrower"
  37. tool.GripForward = Vector3.new(-0.102, -0.019, -0.995)
  38. tool.GripPos = Vector3.new(0.132, 0.736, 0.126)
  39. tool.GripRight = Vector3.new(0.995, 0.006, -0.102)
  40. tool.GripUp = Vector3.new(-0.008, 1, -0.018)
  41.  
  42. --=Handle/Mesh=--
  43. handle.Name = "Handle"
  44. mesh.MeshId = "http://www.roblox.com/asset?ID=68752248"
  45. mesh.Offset = Vector3.new(0, 0, 0)
  46. mesh.Scale = Vector3.new(2,2,2)
  47. mesh.TextureId = "http://www.roblox.com/asset?ID=103326808"
  48. mesh.VertexColor = Vector3.new(1, 1, 1)
  49.  
  50.  
  51. --=Hax n Debounce=--
  52. wait(1)
  53. local Debounce, DebounceTime = false, 0.1
  54.  
  55. local en = true
  56. tool.Activated:connect(function()
  57. if not Debounce then
  58. Debounce = true
  59. if not en then return end
  60. en = false
  61. event:FireServer(mouse.Hit)
  62.  
  63.  
  64. wait(0.5)
  65. en = true
  66.  
  67. wait(DebounceTime)
  68. Debounce = false
  69. end
  70.  
  71. end)
  72.  
  73. --=Ultra Hax=-
  74. local en = true
  75. tool.Equipped:connect(function(Mouse)
  76. Mouse.Button1Down:connect(function(play)
  77. local s = Instance.new("Sound", tool.Handle)
  78. s.SoundId = "http://www.roblox.com/asset?id=258057783" --446824013
  79. s.Volume = 10
  80. s.Pitch = 1
  81. s.Looped = false
  82. s.archivable = false
  83. local s1 = Instance.new("Sound", tool.Handle)
  84. s1.SoundId = "http://www.roblox.com/asset?id=446824013"
  85. s1.Volume = 5
  86. s1.Pitch = 1
  87. s1.Looped = false
  88. s1.archivable = false
  89. root.CFrame = CFrame.new(root.Position,root.Position + Vector3.new(Mouse.Hit.lookVector.x,0,Mouse.Hit.lookVector.z))
  90. wait(0.3)
  91. local handleclone = tool.Handle:clone()
  92. handleclone.CFrame = tool.Handle.CFrame
  93. local bv = Instance.new("BodyVelocity")
  94. bv.MaxForce = Vector3.new(1e8,1e8,1e8)
  95. bv.Velocity = Mouse.Hit.lookVector * 100
  96. bv.Parent = handleclone
  97. handleclone.CanCollide = false
  98. handleclone.Parent = game.Workspace
  99. game.Debris:AddItem(handleclone,10)
  100. local ten = true
  101. handleclone.Touched:connect(function(hit)
  102. if not ten then return end
  103. ten = false
  104. local ehum = hit.Parent:findFirstChild("Humanoid") or hit.Parent.Parent:findFirstChild("Humanoid")
  105. if ehum and ehum ~= hum then
  106. ehum:TakeDamage(7)
  107. elseif hit.Anchored == true and hit.CanCollide == true then
  108. local ex = Instance.new("Explosion", handleclone)
  109. ex.Position = handleclone.Position
  110. ex.BlastPressure = 10000
  111. ex.BlastRadius = 200
  112. ex.ExplosionType = "CratersAndDebris"
  113. ex.DestroyJointRadiusPercent = 0.5
  114. ex.Hit:connect(function(Part, Distance)
  115. s:play()
  116. s1:play()
  117. s1.TimePosition = 3
  118. wait(10)
  119. s1:Stop()
  120. Part.Anchored = false
  121. if Distance <= 25 then
  122. Part:BreakJoints()
  123. end
  124. end)
  125. end
  126. wait()
  127. ten = true
  128. end)
  129. end)
  130. end)
  131.  
  132. --------------------------------------------------------------------------------------------------------------------------------------=END=--------------------------------------------------------------------------------------------------------------------------------------
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement