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 = 1 -- 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 = 20 |
9 | + | flyspeed = 1000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 |
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 | ||
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" | |
27 | pe.Size = NumberSequence.new(0.5) | |
28 | pe.Lifetime = NumberRange.new(5,10) | |
29 | pe.Rate = 50 | |
30 | pe.VelocitySpread = 45 | |
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 = "" |
36 | stars.TimePosition = 23.5 | |
37 | stars:Play() | |
38 | - | if explode == true then |
38 | + | |
39 | - | local ex = Instance.new("Sound", torso) |
39 | + | |
40 | - | ex.Volume = 1 |
40 | + | |
41 | - | ex.SoundId = "rbxassetid://513492655" |
41 | + | |
42 | - | ex.TimePosition = 23.5 |
42 | + | end |