I'm trying to script a gun, When you find an ammo box and click on it ( I already have this part set up) It gives you the ammo in the box. Which, by default. Is 32 Bullets.
Also, I'm not sure which script type it is, however I believe it should be a localscript. I have tried this, And It has not worked (obviously)
I have researched values and changing them, otherwise, the main problem here is getting it to function properly.
function ammoadditon
game.StarterPack.Glock.string Ammo (0+30) then
end
end
Also, if you could, please do not apply any agression to my mistakes, I am a beginning scripter.

1 comment
I'm refering to using the script inside of a object, the ammo box, when clicked on, if the player has no ammo, it will add 35 to it.