here is an example how you can create a stamina system:
In this example I call the stamina event with the timer.
Sprinting.zip (55.8 KB)
This example is from this post losing stamina while holding shift and not moving - #6 by L1z4rD89 where you will also find your stamina system. I think you are missing the IsVelocity > 0 check like this: