SNAKERBLX

Untitled

May 5th, 2018
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.24 KB | None | 0 0
  1. local plr = game.Players.LocalPlayer
  2. local h = game:GetService('RunService').Heartbeat
  3. local m = plr:GetMouse()
  4.  
  5. local bfg = false
  6. local prefix = "."
  7.  
  8. plr.Chatted:connect(function(cmd)
  9. cmd=cmd:lower()
  10. if cmd == prefix.."bfg" then
  11. bfg = not bfg
  12. end
  13. end)
  14.  
  15. m.Button1Down:connect(function()
  16. h:wait()
  17. if bfg == true then
  18. if plr.Character:FindFirstChild('Uzi') then plr.Character.Uzi.Fire:FireServer(m.Hit) end
  19. if plr.Character:FindFirstChild('Shotty') then plr.Character.Shotty.Fire:FireServer(m.Hit) end
  20. if plr.Character:FindFirstChild('Glock') then plr.Character.Glock.Fire:FireServer(m.Hit) end
  21. if plr.Character:FindFirstChild('Sawed Off') then plr.Character["Sawed Off"].Fire:FireServer(m.Hit) end
  22. end
  23. end)
  24.  
  25. function start()
  26. while true do
  27. h:wait()
  28. if bfg == true then
  29. if plr.Backpack:FindFirstChild('Uzi') then
  30. plr.Backpack.Uzi.Parent = plr.Character
  31. h:wait()
  32. elseif plr.Backpack:FindFirstChild('Shotty') then
  33. plr.Backpack.Shotty.Parent = plr.Character
  34. h:wait()
  35. elseif plr.Backpack:FindFirstChild("Glock") then
  36. plr.Backpack.Glock.Parent = plr.Character
  37. h:wait()
  38. elseif plr.Backpack:FindFirstChild("Sawed Off") then
  39. plr.Backpack["Sawed Off"].Parent = plr.Character
  40. h:wait()
  41. end
  42. end
  43. end
  44. end
  45. start()
Add Comment
Please, Sign In to add comment