Need help getting stamina bar to decrease on movement (Just normal walking, not sprinting)

It’s similar but not quite the same, all the youtube tutorials are used with a sprint system where I will be doing it with just movement and then eventually scale it with an adjustable movement slider.