Hello, I have created a stamina system which depletes as the character sprints. The issues are 1) When it reaches 0 the character does NOT STOP sprinting! I do not know how to remedy this. 2) I cannot figure out how to make stamina regenerate while isSprinting = false. I have included screenshots!
This is the depleteStamina function. StaminaTimerName is just a string that says “depleteStamina”
This is the hunger and thirst system:
Any help would be greatly appreciated, thank you.