Whenever I add health to the healthbar, it glitches and you can see the healthbar go over the max health. (for one frame.)
I'd like to know how to check to see if the value is going to add over max health, and if it does, set the number to a number which doesn't go over max health.