SHOW:
|
|
- or go back to the newest paste.
| 1 | explode = true -- if u want them to explode or not | |
| 2 | - | local countdown = 7 -- seconds before the explosion if u have it on |
| 2 | + | local countdown = 5 -- 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" |
| 7 | + | tool.Name = "Primary Bomb" |
| 8 | mouse = plr:GetMouse() | |
| 9 | - | flyspeed = 20 |
| 9 | + | flyspeed = 0 |
| 10 | ||
| 11 | ||
| 12 | tool.Selected:connect(function() | |
| 13 | mouse.Button1Down:connect(function() | |
| 14 | if tool.Active == true and mouse.Target.Parent:FindFirstChild("Humanoid") or mouse.Target.Parent.Parent:FindFirstChild("Humanoid") or mouse.Target.Parent:FindFirstChild("Torso") then
| |
| 15 | local torso = mouse.Target.Parent:FindFirstChild("Torso")
| |
| 16 | local thum = torso.Parent:FindFirstChild("Humanoid")
| |
| 17 | if thum ~= hum then | |
| 18 | - | |
| 18 | + | |
| 19 | local humrootpart = torso.Parent:FindFirstChild("HumanoidRootPart")
| |
| 20 | local bv = Instance.new("BodyVelocity")
| |
| 21 | bv.MaxForce = Vector3.new(1e8,1e8,1e8) | |
| 22 | bv.Velocity = Vector3.new(flyspeed,flyspeed,flyspeed) | |
| 23 | bv.Parent = torso | |
| 24 | ||
| 25 | local pe = Instance.new("ParticleEmitter", torso)
| |
| 26 | - | pe.Texture = "rbxassetid://739179761" |
| 26 | + | pe.Texture = "rbxassetid://242986251" |
| 27 | - | pe.Size = NumberSequence.new(0.5) |
| 27 | + | pe.Size = NumberSequence.new(0.1) |
| 28 | pe.Lifetime = NumberRange.new(5,10) | |
| 29 | pe.Rate = 50 | |
| 30 | - | pe.VelocitySpread = 45 |
| 30 | + | pe.VelocitySpread = 20 |
| 31 | pe.Speed = NumberRange.new(10) | |
| 32 | ||
| 33 | local stars = Instance.new("Sound", torso)
| |
| 34 | stars.Volume = 1 | |
| 35 | - | stars.SoundId = "rbxassetid://597084853" |
| 35 | + | stars.SoundId = "rbxassetid://2686077452" |
| 36 | stars.TimePosition = 23.5 | |
| 37 | stars:Play() | |
| 38 | if explode == true then | |
| 39 | local ex = Instance.new("Sound", torso)
| |
| 40 | ex.Volume = 1 | |
| 41 | - | ex.SoundId = "rbxassetid://513492655" |
| 41 | + | ex.SoundId = "rbxassetid://3636967384" |
| 42 | ex.TimePosition = 23.5 | |
| 43 | ex:Play() | |
| 44 | for i = 1,countdown do | |
| 45 | tool.Name = "Exploding in " .. countdown - i .. "." | |
| 46 | wait(1) | |
| 47 | end | |
| 48 | - | tool.Name = "Shoot em // by mr steal yo bork" |
| 48 | + | tool.Name = "Primary Bomb" |
| 49 | local explosion = Instance.new("Explosion", torso)
| |
| 50 | explosion.Position = torso.Position | |
| 51 | ex.TimePosition = 0.4 | |
| 52 | ex:Play() | |
| 53 | stars:Stop() | |
| 54 | torso.Parent:BreakJoints() | |
| 55 | pe:Destroy() | |
| 56 | ||
| 57 | local me = Instance.new("ParticleEmitter", torso)
| |
| 58 | me.Texture = "rbxassetid://242987017" | |
| 59 | me.Size = NumberSequence.new(5) | |
| 60 | me.Lifetime = NumberRange.new(5,10) | |
| 61 | me.Rate = 150 | |
| 62 | me.VelocitySpread = 20 | |
| 63 | me.Speed = NumberRange.new(10) | |
| 64 | wait(3) | |
| 65 | me:Destroy() | |
| 66 | torso.Parent:Destroy() | |
| 67 | end | |
| 68 | end | |
| 69 | end | |
| 70 | end) | |
| 71 | end) |