Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local player = game.Players.LocalPlayer -- (Hold the left shift key to increase player walkspeed by 100 times you can adjust the speed in the script)
- local character = player.Character
- local humanoid = character:WaitForChild("Humanoid")
- local speedIncrease = 100 -- Adjust the speed increase as needed (a high value for a significant boost)
- local isSpeedBoostEnabled = false
- local function enableSpeedBoost()
- isSpeedBoostEnabled = true
- humanoid.WalkSpeed = humanoid.WalkSpeed + speedIncrease
- end
- local function disableSpeedBoost()
- isSpeedBoostEnabled = false
- humanoid.WalkSpeed = humanoid.WalkSpeed - speedIncrease
- end
- game:GetService("UserInputService").InputBegan:Connect(function(input, gameProcessedEvent)
- if not gameProcessedEvent and input.KeyCode == Enum.KeyCode.LeftShift then
- enableSpeedBoost()
- end
- end)
- game:GetService("UserInputService").InputEnded:Connect(function(input)
- if input.KeyCode == Enum.KeyCode.LeftShift and isSpeedBoostEnabled then
- disableSpeedBoost()
- end
- end)
Advertisement
Comments
-
- Hold shift to increase player speed increase the speed value number to the desired speed in the script if anyone is having difficulties
-
- Thank you for the additional information!
Add Comment
Please, Sign In to add comment