Advertisement
SxScripting

Running Script

Oct 12th, 2020
238
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.40 KB | None | 0 0
  1. local UIS = game:GetService("UserInputService")
  2. local Player = game.Players.LocalPlayer
  3. local Character = Player.Character
  4.  
  5. local Deb = false
  6. local KeyPressed = "X"
  7.  
  8. UIS.InputBegan:Connect(function(Input)
  9.     if Input.KeyCode == Enum.KeyCode.X then
  10.         if Deb == false then
  11.             Character.Humanoid.WalkSpeed = 32
  12.             Deb = true
  13.         else
  14.             Character.Humanoid.WalkSpeed = 16
  15.             Deb = false
  16.         end
  17.     end
  18. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement