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 function onInputBegan(input, gameProcessed) if input.KeyCode == Enum.KeyCode.LeftShift and not gameProcessed then humanoid.WalkSpeed = 32 end end local function onInputEnded(input, gameProcessed) if input.KeyCode == Enum.KeyCode.LeftShift then humanoid.WalkSpeed = 16 end end game:GetService("UserInputService").InputBegan:Connect(onInputBegan) game:GetService("UserInputService").InputEnded:Connect(onInputEnded)