defaultWalkSpeed=16 runSpeed=24 stamina=100 maxStamina=100 minStaminaToRun=30 staminaPerSecond=10 staminaRegenPerSecond=5 staminaGui=script.StaminaGui

defaultWalkSpeed = 16 --The speed the player walks when not running
runSpeed = 24 --The speed the player walks when running
stamina = 100 --The current stamina of the player (this variable can be used to check the stamina level of the player)
maxStamina = 100 --The maximum ammount of stamina the character will regen to
minStaminaToRun = 30 --The minimum amount of stamina required to run
staminaPerSecond = 10 --The ammount of stamina that is used per second when running
staminaRegenPerSecond = 5 --The amount of stamina that is regenerated every second when not running

staminaGui = script.StaminaGui --Change "StaminaGui" to the name of your Gui parented to this script