#How would I make a accurate reload system that includes ammo and a magazine?
5 messages · Page 1 of 1 (latest)
--If ammo left is more than there is in the maganize
if AmmoLeft > MagazineAmmoLeft then AmmoLeft = MagazineAmmoLeft
else
--Otherwise
MagazineAmmoLeft = MagazineAmmoLeft + (AmmoLeft - MagazineAmmoLeft)
AmmoLeft = ItemsConfiguration[tool.Name].Ammo
end
``` sorry its a bit disorganized but yes
the script works well however on the second time the magazine is incorrect and it starts from 125 (the max) for some reason
there is nothing else that interferes with the magazine numbers btw
also