How do I stop my character from sprinting until the stamina bar is fully replenished

I’ll try a local project and let you know.