IcanF1y

FE Speed script

Sep 27th, 2023
703
2
Never
2
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.04 KB | None | 2 0
  1. 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)
  2. local character = player.Character
  3. local humanoid = character:WaitForChild("Humanoid")
  4.  
  5. local speedIncrease = 100 -- Adjust the speed increase as needed (a high value for a significant boost)
  6.  
  7. local isSpeedBoostEnabled = false
  8.  
  9. local function enableSpeedBoost()
  10. isSpeedBoostEnabled = true
  11. humanoid.WalkSpeed = humanoid.WalkSpeed + speedIncrease
  12. end
  13.  
  14. local function disableSpeedBoost()
  15. isSpeedBoostEnabled = false
  16. humanoid.WalkSpeed = humanoid.WalkSpeed - speedIncrease
  17. end
  18.  
  19. game:GetService("UserInputService").InputBegan:Connect(function(input, gameProcessedEvent)
  20. if not gameProcessedEvent and input.KeyCode == Enum.KeyCode.LeftShift then
  21. enableSpeedBoost()
  22. end
  23. end)
  24.  
  25. game:GetService("UserInputService").InputEnded:Connect(function(input)
  26. if input.KeyCode == Enum.KeyCode.LeftShift and isSpeedBoostEnabled then
  27. disableSpeedBoost()
  28. end
  29. end)
  30.  
Advertisement
Comments
Add Comment
Please, Sign In to add comment