Need help with pickupable ammo to put in gun

Hey there. I can’t seem to figure out how to program my ammo boxes to be able to be picked up and the ammo be put in my gun. Anyone able to help?

1 Like
game.Players.PlayerAdded:Connect(function(plr)
plr.Touched:Connect(function(hit)
if(hit.Name == "bullets") then
--pick up code and update ammo ammount--
end
end)
end)

Or instead you could add a script to the bullets on the floor and check if its a player that touched them.

1 Like

Thank you very much, How do i make so that i can aim down the sights of my gun?

1 Like