Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local p = game.Players.LocalPlayer
- local m = p:GetMouse()
- local function getImpulse()
- if p.Backpack:FindFirstChild("ImpulseGrenade") then
- return p.Backpack:FindFirstChild("ImpulseGrenade")
- elseif p.Character:FindFirstChild("ImpulseGrenade") then
- return p.Character:FindFirstChild("ImpulseGrenade")
- end
- end
- local tool = Instance.new("Tool")
- tool.Parent = p.Backpack
- tool.RequiresHandle = false
- firing = false
- tool.Name = "Explode by @420b#4295"
- tool.Equipped:Connect(function()
- getImpulse().Parent = p.Character
- b1d= m.Button1Down:Connect(function()
- firing = true
- while firing do
- getImpulse().CreateGrenade:FireServer(m.Hit.p,getImpulse().Handle.CFrame)
- wait()
- end
- end)
- b1u= m.Button1Up:Connect(function()
- firing = false
- end)
- end)
- tool.Unequipped:Connect(function()
- firing = false
- b1u:Disconnect()
- b1d:Disconnect()
- end)
Add Comment
Please, Sign In to add comment