Run it
Copy the script and paste it into your executor.
local Players = game:GetService("Players")
local UserInputService = game:GetService("UserInputService")
local player = Players.LocalPlayer
local character = player.Character or player.CharacterAdded:Wait()
local humanoid = character:WaitForChild("Humanoid")
humanoid:SetAttribute("Stamina", 1) -- 1 is full stamina
local normalWalkSpeed = 10
local runningWalkSpeed = 19.2
local function maintainFullStamina()
while true do
humanoid:SetAttribute("Stamina", 1)
wait(0.1)
end
end
local function toggleRun(isRunning)
isRunning
humanoid.WalkSpeed = runningWalkSpeed
humanoid.WalkSpeed = normalWalkSpeed
UserInputService.InputBegan:((input, gameProcessed)
gameProcessed
input.KeyCode == .KeyCode.LeftShift input.KeyCode == .KeyCode.ButtonL3
()
)
UserInputService.InputEnded:((input, gameProcessed)
gameProcessed
input.KeyCode == .KeyCode.LeftShift input.KeyCode == .KeyCode.ButtonL3
()
)
.(maintainFullStamina)
Inf stamina for dusty trip