Ay bois, so, this time i'm trying to make an dynamic automatic reloading system without bugs, but, sadly it went wrong.
The image link below display the code that i'm using, and, in the code, obviously it will glitch when reaches 5 Remaining Ammo, so, i want to make a fix to it, like when: 5 / 6, if the players reload, will be 6 / 5 and, if the player gets 0 / 5 then reload, will glitch the ammo.
Image: imgur.com/a/3J8CJ6R
I tried to think a solution about this but i can't, so, please, if you know how to help, say!!