I want to implement a mechanic in my 3D game that limits the player’s ability to run. The player should have a “bar” that appears when they hold shift. This bar depletes while the player runs and regenerates over time when the player stops running. (Similar to the mechanic in Baldi Basics). Are there any tutorials or YouTube videos that demonstrate how to implement such a mechanic? Any help would be greatly appreciated. Thanks in advance!