Need help with progressbar/timers

You can also use a Timer:

I connected the Pressed Event from Sprint to the Timer.

At the end of “Stamina up” i set the Reset for the Timer so if Stamina is full Timer gets cleard: