Advertisement
1yawaROS1

WalkSpeed Script

Mar 31st, 2020
3,865
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.14 KB | None | 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 = 200;
  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 = 20;
  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