RobloxScripterAI
Discord ↗
Link Copied to Clipboard
×
"make a shift to sprint"
-- local script local player = game.Players.LocalPlayer local sprinting = false local function sprint() if sprinting then sprinting = false player.Character.Humanoid.WalkSpeed = 16 else sprinting = true player.Character.Humanoid.WalkSpeed = 50 end end game:GetService("UserInputService").InputBegan:Connect(function(inputObject, gameProcessedEvent) if inputObject.KeyCode == Enum.KeyCode.LeftShift then sprint() end end)