ο»Ώ
AlphaWolf536791

Speed Script

Nov 29th, 2020
1,111
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. game.StarterGui:SetCore('SendNotification', {
  2.     Title = script.Name,
  3.     Text = script.Name..' has loaded. Press and hold \'Shift\' to πŸƒβ€ and release to πŸšΆβ€.',
  4.     Duration = 10
  5. })
  6.  
  7. -- Wait Function --
  8. game:WaitForChild('Players')
  9.  
  10. -- Variables --
  11. Player = game.Players.LocalPlayer
  12. Character = Player.Character
  13. Humanoid = Character.Humanoid
  14. UserInputService = game:GetService('UserInputService')
  15.  
  16. function SetWalkSpeed(NewSpeed, Input, Processed,  Key1, Key2)
  17.     if Player ~= nil then
  18.         if Character ~= nil then
  19.             if Humanoid ~= nil then
  20.                 if Input.KeyCode == Key1 or Input.KeyCode == Key2 then
  21.                     Processed = true
  22.                     Humanoid.WalkSpeed = NewSpeed
  23.                     Processed = false
  24.                 end
  25.             end
  26.         end
  27.     end
  28. end
  29.  
  30. UserInputService.InputBegan:Connect(function(input, processed)
  31.     SetWalkSpeed(30, input, processed, Enum.KeyCode.LeftControl, Enum.KeyCode.RightControl) -- replace '30' with whatever speed above 16
  32. end)
  33.  
  34. UserInputService.InputEnded:Connect(function(input, processed)
  35.     SetWalkSpeed(16, input, processed, Enum.KeyCode.LeftControl, Enum.KeyCode.RightControl) -- replace '16' with whatever speed below or at 16
  36. end)
RAW Paste Data