I made a sprinting feature in my game but you cannot unsprint once you press sprint

I made a sprinting feature in my game but you cannot unsprint once you press sprint. Is there anyway to make the system use energy and after it runs out you run out of sprint and you can click unsprint at any time?

is it a game overlay?

yes it its a game overlay

2 Likes