DanPanMan

s

Jul 23rd, 2020
41
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.93 KB | None | 0 0
  1. local p = game.Players.LocalPlayer
  2. local m = p:GetMouse()
  3.  
  4. local function getImpulse()
  5. if p.Backpack:FindFirstChild("ImpulseGrenade") then
  6. return p.Backpack:FindFirstChild("ImpulseGrenade")
  7. elseif p.Character:FindFirstChild("ImpulseGrenade") then
  8. return p.Character:FindFirstChild("ImpulseGrenade")
  9. end
  10. end
  11.  
  12. local tool = Instance.new("Tool")
  13. tool.Parent = p.Backpack
  14. tool.RequiresHandle = false
  15. firing = false
  16. tool.Name = "Explode by @420b#4295"
  17.  
  18. tool.Equipped:Connect(function()
  19. getImpulse().Parent = p.Character
  20. b1d= m.Button1Down:Connect(function()
  21. firing = true
  22. while firing do
  23. getImpulse().CreateGrenade:FireServer(m.Hit.p,getImpulse().Handle.CFrame)
  24. wait()
  25. end
  26. end)
  27. b1u= m.Button1Up:Connect(function()
  28. firing = false
  29. end)
  30.  
  31. end)
  32.  
  33. tool.Unequipped:Connect(function()
  34. firing = false
  35. b1u:Disconnect()
  36. b1d:Disconnect()
  37. end)
Add Comment
Please, Sign In to add comment