Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- explode = false -- if u want them to explode or not
- local countdown = 7 -- seconds before the explosion if u have it on
- plr = game.Players.LocalPlayer
- char = plr.Character
- hum = char.Humanoid
- tool = Instance.new("HopperBin", plr.Backpack)
- tool.Name = "Shoot em"
- mouse = plr:GetMouse()
- flyspeed = 110
- local NewInstance = function(instance,parent,properties)
- local inst = Instance.new(instance,parent)
- if(properties)then
- for i,v in next, properties do
- pcall(function() inst[i] = v end)
- end
- end
- return inst;
- end
- tool.Selected:connect(function()
- mouse.Button1Down:connect(function()
- if tool.Active == true and mouse.Target.Parent:FindFirstChild("Humanoid") or mouse.Target.Parent.Parent:FindFirstChild("Humanoid") or mouse.Target.Parent:FindFirstChild("Torso") then
- local torso = mouse.Target.Parent:FindFirstChild("Torso")
- local thum = torso.Parent:FindFirstChild("Humanoid")
- if thum ~= hum then
- local Enemy = torso.Parent.Name
- game.Players[Enemy].CameraMode = "LockFirstPerson"
- local bv = Instance.new("BodyVelocity")
- bv.MaxForce = Vector3.new(1e8,1e8,1e8)
- bv.Velocity = Vector3.new(flyspeed,flyspeed,flyspeed)
- bv.Parent = torso
- while true do
- wait()
- 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)})
- particles.Parent = torso
- particles:Emit(15000)
- local stars = Instance.new("Sound", torso)
- stars.Volume = 10
- stars.SoundId = "rbxassetid://1253423782"
- stars:Play()
- if explode == true then
- local ex = Instance.new("Sound", torso)
- ex.Volume = 1
- ex.SoundId = "rbxassetid://0"
- ex.TimePosition = 23.5
- ex:Play()
- for i = 1,countdown do
- tool.Name = "Exploding in " .. countdown - i .. "."
- wait(1)
- end
- tool.Name = "Shoot em // by mr steal yo bork"
- local explosion = Instance.new("Explosion", torso)
- explosion.Position = torso.Position
- ex.TimePosition = 0.4
- ex:Play()
- stars:Stop()
- torso.Parent:BreakJoints()
- end
- end
- end
- end
- end)
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement