How do I prevent the character from sprinting when the stamina value is 0?

ah no I did use a timer for recovery but i dont think i used it for any thing other then that. So i believe i need to use a time by function node?