Need help with progressbar/timers

Hey, i tried this and it works:

Create a Widget with Progressbar, Create a Variable with type Float and Bind it. Set the Variable to 1,0.

In Player Character in Event begin Play:

Change something at the Input to get the Info if Char is moving:

And now the Main Part of reducing and refilling Stamina: