Advertisement
AceW0lf_BOt

Fast script press x

Jun 12th, 2021 (edited)
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.11 KB | Gaming | 0 0
  1. local walkspeedplayer = game:GetService("Players").LocalPlayer
  2.     local walkspeedmouse = walkspeedplayer:GetMouse()
  3.  
  4.     local walkspeedenabled = false
  5.  
  6.     function x_walkspeed(key)
  7.         if (key == "x") then
  8.             if walkspeedenabled == false then
  9.                 _G.WS = 1000;
  10.                 local Humanoid = game:GetService("Players").LocalPlayer.Character.Humanoid;
  11.                 Humanoid:GetPropertyChangedSignal("WalkSpeed"):Connect(function()
  12.                 Humanoid.WalkSpeed = _G.WS;
  13.                 end)
  14.                 Humanoid.WalkSpeed = _G.WS;
  15.  
  16.                 walkspeedenabled = true
  17.             elseif walkspeedenabled == true then
  18.                 _G.WS = 30;
  19.                 local Humanoid = game:GetService("Players").LocalPlayer.Character.Humanoid;
  20.                 Humanoid:GetPropertyChangedSignal("WalkSpeed"):Connect(function()
  21.                 Humanoid.WalkSpeed = _G.WS;
  22.                 end)
  23.                 Humanoid.WalkSpeed = _G.WS;
  24.  
  25.                 walkspeedenabled = false
  26.             end
  27.         end
  28.     end
  29.  
  30.     walkspeedmouse.KeyDown:connect(x_walkspeed)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement