I play tested a bit more and by changing the values of my variables I managed to make it work, but the changes to my stamina bar only happens after I release the sprint button for some reason, might not be calling my depletion over time at the right place, or the wrong way. On the same problem, if I run until my stamina is out, a fatigued text is supposed to appear next to the stamina bar. It does happen but the character doesn’t stop running until I release the run button first, then I can’t run anymore until the stamina goes full, that means my can run boolean turns false indeed but my functions don’t update properly.