Advertisement
MiraiTsukiZ

rocket of death

Mar 3rd, 2018
538
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.71 KB | None | 0 0
  1. local s = Instance.new("Sound",Character)
  2.  
  3. s.Name = "Sound"
  4. s.SoundId = "http://www.roblox.com/asset/?id=863979846"
  5. s.Volume = 0.5
  6. s.Looped = true
  7. s.archivable = false
  8.  
  9. s.Parent = game.Workspace
  10.  
  11. wait(1)
  12.  
  13. s:play()
  14.  
  15. script.Parent = workspace.CurrentCamera
  16. local plr = game:GetService("Players").LocalPlayer
  17.  
  18. local tool = Instance.new("Tool",plr:WaitForChild("Backpack"))
  19. tool.Grip = CFrame.new(0,-0.8,-0.2) * CFrame.Angles(math.rad(0),math.rad(180),math.rad(0))
  20. tool.Name = "HehHeh."
  21.  
  22. local part = Instance.new("Part",tool)
  23. part.Name = "Handle"
  24. part.Size = Vector3.new(4,6,4)
  25. part.TopSurface = "Smooth"
  26. part.BottomSurface = "Smooth"
  27. part.CanCollide = false
  28. part:BreakJoints()
  29.  
  30. local mesh = Instance.new("SpecialMesh",part)
  31. mesh.MeshId = "rbxassetid://121944778" --mesh.MeshId = "rbxassetid://16211718"
  32. mesh.TextureId = "rbxassetid://121944805" --"http://www.roblox.com/asset/?id=145411558"
  33. mesh.Scale = Vector3.new(0.5,0.5,0.5)
  34.  
  35. local sound = Instance.new("Sound",part)
  36. sound.SoundId = "rbxassetid://388826051" --Slap sound
  37. sound.Volume = 1000
  38.  
  39. local sound2 = Instance.new("Sound",part)
  40. sound2.SoundId = "rbxassetid://388826051" --miss Slap
  41. sound2.Volume = 500
  42.  
  43. local sound3 = Instance.new("Sound",part)
  44. sound3.SoundId = "rbxassetid://1190276614" -- When they got hit sound xd
  45. sound3.Volume = 500
  46. sound3.TimePosition = 10
  47.  
  48. local sound4 = Instance.new("Sound",part)
  49. sound4.SoundId = "rbxassetid://462606062" -- When it Explode
  50. sound4.Volume = math.huge
  51.  
  52. local sound5 = Instance.new("Sound",part)
  53. sound5.SoundId = "rbxassetid://446961725" -- Say nope?
  54. sound5.Volume = 1000
  55.  
  56. local sound6 = Instance.new("Sound",part)
  57. sound6.SoundId = "rbxassetid://368648788" -- something
  58. sound6.Volume = 600
  59. sound6.TimePosition = 0
  60.  
  61. function firstHum(target)
  62. for i,v in pairs(target:GetChildren()) do
  63. if v:IsA("Humanoid") then
  64. return v
  65. end
  66. end
  67. return nil
  68. end
  69.  
  70. local slap = false
  71. local cd = false
  72.  
  73. plr:GetMouse().Button1Down:connect(function()
  74. if tool.Parent == plr.Character then
  75. if slap == false then
  76. slap = true
  77. sound2:Play()
  78. local str = Instance.new("StringValue")
  79. str.Name = "toolanim"
  80. str.Value = "Slash"
  81. str.Parent = tool
  82. wait(1)
  83. slap = false
  84. end
  85. end
  86. end)
  87.  
  88. part.Touched:connect(function(hit)
  89. if slap == true then
  90. if cd == false then
  91. if not hit:IsDescendantOf(plr.Character) then
  92. if hit.Parent:IsA("Model") then
  93. local fhum = firstHum(hit.Parent)
  94. if fhum then
  95. cd = true
  96. fhum.PlatformStand = true
  97. sound:Play()
  98. local con1
  99. con1 = game:GetService("RunService").Heartbeat:connect(function()
  100. fhum.PlatformStand = true
  101. end)
  102. wait(0.1)
  103. local vel = Instance.new("BodyVelocity",hit)
  104. vel.Velocity = ((hit.Position - plr.Character:WaitForChild("HumanoidRootPart").Position).unit + Vector3.new(0,0.5,0))*50
  105. vel.MaxForce = Vector3.new(10000000,10000000,10000000)
  106. wait(1)
  107. cd = false
  108. vel:Destroy()
  109. local vel2 = Instance.new("BodyVelocity",hit)
  110. vel2.Velocity = Vector3.new(0,12.5,0)
  111. vel2.MaxForce = Vector3.new(10000000,10000000,10000000)
  112. local p2 = Instance.new("Part",hit)
  113. p2.Anchored = true
  114. p2.Transparency = 0.6
  115. p2.CanCollide = false
  116. p2.Size = Vector3.new(0.2,0.2,0.2)
  117. p2.CFrame = CFrame.new(hit.CFrame.p) * CFrame.Angles(math.rad(0),math.rad(90),math.rad(0))
  118. p2.BrickColor = BrickColor.new("White")
  119. p2.Material = "Neon"
  120. local m2 = Instance.new("CylinderMesh",p2)
  121. m2.Scale = Vector3.new(60,10000,60)
  122. local scln = sound3:Clone()
  123. scln.Parent = hit
  124. scln:Play()
  125. local con2
  126. con2 = game:GetService("RunService").Heartbeat:connect(function()
  127. p2.CFrame = CFrame.new(hit.CFrame.p) * CFrame.Angles(math.rad(0),math.rad(90),math.rad(0))
  128. end)
  129. wait(10)
  130. vel2.Velocity = Vector3.new(0,0,0)
  131. wait(0.5)
  132. scln:Stop()
  133. local scln3 = sound5:Clone()
  134. scln3.Parent = hit
  135. scln3:Play()
  136. wait(1)
  137. local bav = Instance.new("BodyAngularVelocity",hit)
  138. bav.AngularVelocity = Vector3.new(math.random(0,360),math.random(0,360),math.random(0,360))
  139. vel2.Velocity = Vector3.new(0,-250,0)
  140. p2.BrickColor = BrickColor.new("Really black")
  141. local scln6 = sound6:Clone()
  142. scln6.Parent = hit
  143. scln6:Play()
  144. local continue = false
  145. local htc
  146. htc = hit.Touched:connect(function(hitp)
  147. if not hitp:IsDescendantOf(hit.Parent) then
  148. continue = true
  149. scln6:Stop()
  150. vel2:Destroy()
  151. con2:Disconnect()
  152. con1:Disconnect()
  153. htc:Disconnect()
  154. p2:Destroy()
  155. end
  156. end)
  157. repeat wait() until continue == true
  158. local ctab = {}
  159. for i=1,4 do
  160. local p = Instance.new("Part",hit)
  161. p.Size = Vector3.new(30,30,30)
  162. p.Anchored = true
  163. p.CanCollide = false
  164. p.TopSurface = "Smooth"
  165. p.BottomSurface = "Smooth"
  166. p.Color = Color3.fromRGB(255,math.random(0,255),0)
  167. p.CFrame = hit.CFrame
  168. local con
  169. con = game:GetService("RunService").Heartbeat:connect(function()
  170. p.CFrame = p.CFrame * CFrame.Angles(math.rad(math.random(0,360)),math.rad(math.random(0,360)),math.rad(math.random(0,360)))
  171. p.Transparency = p.Transparency + 0.01
  172. if p.Transparency >= 1 then
  173. con:Disconnect()
  174. end
  175. end)
  176. table.insert(ctab,con)
  177. end
  178. Instance.new("Explosion",workspace).Position = hit.Position
  179. local scln2 = sound4:Clone()
  180. scln2.Parent = hit
  181. scln2:Play()
  182. vel2:Destroy()
  183. hit.Parent:BreakJoints()
  184. repeat wait() until not hit:IsDescendantOf(workspace)
  185. con2:Disconnect()
  186. end
  187. end
  188. end
  189. end
  190. end
  191. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement