RobloxScripterAI
Discord ↗
Link Copied to Clipboard
×
"create a shift to run script"
-- local script local player = game.Players.LocalPlayer local character = player.Character or player.CharacterAdded:Wait() local humanoid = character:WaitForChild("Humanoid") local userInputService = game:GetService("UserInputService") local running = false local function toggleRun(input, gameProcessed) if input.KeyCode == Enum.KeyCode.LeftShift and not gameProcessed then if running then running = false humanoid.WalkSpeed = 16 else running = true humanoid.WalkSpeed = 32 end end end userInputService.InputBegan:Connect(toggleRun)