SHARE
TWEET

Speed

ipastetomuch Apr 7th, 2019 78 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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)
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top