Advertisement
Guest User

awfwauw9w558w8533erwr

a guest
Mar 24th, 2018
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.53 KB | None | 0 0
  1. explode = false -- if u want them to explode or not
  2. local countdown = 7 -- seconds before the explosion if u have it on
  3. plr = game.Players.LocalPlayer
  4. char = plr.Character
  5. hum = char.Humanoid
  6. tool = Instance.new("HopperBin", plr.Backpack)
  7. tool.Name = "Shoot em"
  8. mouse = plr:GetMouse()
  9. flyspeed = 110
  10.  
  11. local NewInstance = function(instance,parent,properties)
  12. local inst = Instance.new(instance,parent)
  13. if(properties)then
  14. for i,v in next, properties do
  15. pcall(function() inst[i] = v end)
  16. end
  17. end
  18. return inst;
  19. end
  20.  
  21. tool.Selected:connect(function()
  22. mouse.Button1Down:connect(function()
  23. if tool.Active == true and mouse.Target.Parent:FindFirstChild("Humanoid") or mouse.Target.Parent.Parent:FindFirstChild("Humanoid") or mouse.Target.Parent:FindFirstChild("Torso") then
  24. local torso = mouse.Target.Parent:FindFirstChild("Torso")
  25. local thum = torso.Parent:FindFirstChild("Humanoid")
  26. if thum ~= hum then
  27.  
  28.  
  29. local Enemy = torso.Parent.Name
  30. game.Players[Enemy].CameraMode = "LockFirstPerson"
  31. local bv = Instance.new("BodyVelocity")
  32. bv.MaxForce = Vector3.new(1e8,1e8,1e8)
  33. bv.Velocity = Vector3.new(flyspeed,flyspeed,flyspeed)
  34. bv.Parent = torso
  35.  
  36. while true do
  37. wait()
  38. local particles = NewInstance("ParticleEmitter",torso,{Enabled=true,LockedToPart=true,Texture='rbxassetid://1520330408',Size=NumberSequence.new(5),LightInfluence=1,Lifetime=NumberRange.new(9999999),Rate=0,RotSpeed=NumberRange.new(0),SpreadAngle=Vector2.new(360,360),Color=ColorSequence.new(Color3.new(85,255,255),Color3.new(170,255,255)),Transparency=NumberSequence.new(0),Speed=NumberRange.new(1)})
  39. particles.Parent = torso
  40. particles:Emit(15000)
  41.  
  42. local stars = Instance.new("Sound", torso)
  43. stars.Volume = 10
  44. stars.SoundId = "rbxassetid://1253423782"
  45. stars:Play()
  46. if explode == true then
  47. local ex = Instance.new("Sound", torso)
  48. ex.Volume = 1
  49. ex.SoundId = "rbxassetid://0"
  50. ex.TimePosition = 23.5
  51. ex:Play()
  52. for i = 1,countdown do
  53. tool.Name = "Exploding in " .. countdown - i .. "."
  54. wait(1)
  55. end
  56. tool.Name = "Shoot em // by mr steal yo bork"
  57. local explosion = Instance.new("Explosion", torso)
  58. explosion.Position = torso.Position
  59. ex.TimePosition = 0.4
  60. ex:Play()
  61. stars:Stop()
  62. torso.Parent:BreakJoints()
  63. end
  64. end
  65. end
  66. end
  67. end)
  68. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement