Ok so I have this code to shoot my gun if you have ammo, but you dont lose ammo when you shoot.
FOOTAGE : https://gyazo.com/e51752ccce2fda974807d36bd2671aaf
However, when I make the gun lose ammo when you shoot, this happens:
All the ammo is lost in 1 click, even though i made it -1.
(EDIT: It removes all ammo, not just 10, if i get more. It also emits all the bullets at once.)