Advertisement
AchieveStuffs

adgga

Aug 5th, 2020
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.53 KB | None | 0 0
  1.     getammo = game.Workspace.Shops:FindFirstChild("Rifle Ammo")
  2. humpos = game.Players.LocalPlayer.Character.Head.Position
  3. ammoclick = getammo.ClickDetector
  4.  
  5. if getammo then
  6. print("found ammo type")
  7. else print("couldn't find ammo type")
  8. end
  9.  
  10.  
  11. local player = game.Players.LocalPlayer
  12. local mouse = player:GetMouse()
  13. bind = "z"
  14.  
  15. mouse.KeyDown:connect(function(key)
  16.   if key == bind then
  17. for i = 1,25 do
  18.   wait()
  19. getammo.CanCollide = false
  20. getammo.CFrame = CFrame.new(humpos)
  21. fireclickdetector(ammoclick)
  22. end
  23. end
  24. end)
  25.  end)g
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement