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

I think the main issue at the moment is to try to get the function working since I’m not getting the stamina bar to drain at the moment. I tried calling them through event tick and begin play but it’s not working at the moment