Advertisement
ipastetomuch

Speed

Apr 7th, 2019
120
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.66 KB | None | 0 0
  1. function onKeyPress(inputObject, gameProcessedEvent)
  2. if inputObject.KeyCode == Enum.KeyCode.Minus then
  3. game.Players.LocalPlayer.Character.Humanoid:AddPropertyEmulator("WalkSpeed")
  4. game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = game.Players.LocalPlayer.Character:FindFirstChild("Humanoid").WalkSpeed - 10;
  5. elseif inputObject.KeyCode == Enum.KeyCode.Equals then
  6. game.Players.LocalPlayer.Character.Humanoid:AddPropertyEmulator("WalkSpeed")
  7. game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = game.Players.LocalPlayer.Character:FindFirstChild("Humanoid").WalkSpeed + 10;
  8. end
  9. end
  10.  
  11.  
  12. game:GetService("UserInputService").InputBegan:connect(onKeyPress)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement