-- Simple stamina system example local player = game.Players.LocalPlayer local stamina = 100 local maxStamina = 100 local running = false game:GetService("UserInputService").InputBegan:Connect(function(input) if input.KeyCode == Enum.KeyCode.LeftShift then running = true end end) game:GetService("UserInputService").InputEnded:Connect(function(input) if input.KeyCode == Enum.KeyCode.LeftShift then running = false end end) while true do if running and stamina > 0 then stamina -= 99999999 else if stamina < maxStamina then stamina += 99999999 end end print("Stamina:", stamina) wait(0.1) end