NNickey

Untitled

Apr 14th, 2016
137
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.60 KB | None | 0 0
  1. plr=game.Players.LocalPlayer
  2. tool=Instance.new("HopperBin",plr.Backpack)
  3. loop=false
  4. mous=nil
  5. function bm(p)
  6. e=Instance.new("Explosion",Workspace)
  7. e.Position=p
  8. e.BlastPressure=0
  9. e.BlastRadius=math.random(100,500)
  10. end
  11. function bmm()
  12. if mous.Target~=nil then
  13. local p=Instance.new("Part",Workspace)
  14. game.Debris:AddItem(p,30)
  15. p.Anchored=true
  16. p.FormFactor="Custom"
  17. p.Size=Vector3.new(1,.2,1)
  18. p.CFrame=CFrame.new(mous.Hit.p)
  19. p.TopSurface=0
  20. p.BrickColor=BrickColor.Black()
  21. local pb=p:Clone()
  22. game.Debris:AddItem(pb,30)
  23. pb.Parent=Workspace
  24. pb.Size=Vector3.new(.5,4,.5)
  25. pb.CFrame=p.CFrame+Vector3.new(0,2,0)
  26. wait(1)
  27. local w=Instance.new("BodyVelocity",pb)
  28. w.maxForce=Vector3.new(0,4100,0)
  29. w.velocity=Vector3.new(0,50,0)
  30. pb.Anchored=false
  31. wait(math.random(200,400)/100)
  32. local s=Instance.new("Sound",pb)
  33. s.SoundId="rbxassetid://84796809"
  34. s.Pitch=math.random(75,125)/100
  35. s:Play()
  36. pb.Anchored=true
  37. pb.Parent=game.Debris
  38. bm(pb.Position)
  39. for a=1,math.random(40,60) do
  40. local z=p:clone()
  41. game.Debris:AddItem(z,1.5)
  42. z.Parent=Workspace
  43. z.CanCollide=false
  44. z.Anchored=false
  45. z.Size=Vector3.new(.5,.5,.5)
  46. z.CFrame=pb.CFrame
  47. z.Velocity=Vector3.new(math.random(-50,50),math.random(50,150),math.random(-50,50))
  48. z.BrickColor=BrickColor.Random()
  49. l=Instance.new("PointLight",z)
  50. l.Brightness=1337
  51. wait()
  52. end
  53. end
  54. end
  55. tool.Selected:connect(function(mou)
  56. mous=mou
  57. mous.Button1Down:connect(function()
  58. bmm()
  59. end)
  60. mous.Button2Down:connect(function()
  61. for a=1,50 do
  62. bmm()
  63. wait(0.1)
  64. end
  65. end)
  66. end)
Advertisement
Add Comment
Please, Sign In to add comment