Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- getammo = game.Workspace.Shops:FindFirstChild("SMG Ammo")
- humpos = game.Players.LocalPlayer.Character.Head.Position
- ammoclick = getammo.ClickDetector
- if getammo then
- print("found ammo type")
- else print("couldn't find ammo type")
- end
- local player = game.Players.LocalPlayer
- local mouse = player:GetMouse()
- bind = "z"
- mouse.KeyDown:connect(function(key)
- if key == bind then
- for i = 1,25 do
- wait()
- getammo.CanCollide = false
- getammo.CFrame = CFrame.new(humpos)
- fireclickdetector(ammoclick)
- end
- end
- end)
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement