Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local walkspeedplayer = game:GetService("Players").LocalPlayer
- local walkspeedmouse = walkspeedplayer:GetMouse()
- local walkspeedenabled = false
- function x_walkspeed(key)
- if (key == "x") then
- if walkspeedenabled == false then
- _G.WS = 200;
- local Humanoid = game:GetService("Players").LocalPlayer.Character.Humanoid;
- Humanoid:GetPropertyChangedSignal("WalkSpeed"):Connect(function()
- Humanoid.WalkSpeed = _G.WS;
- end)
- Humanoid.WalkSpeed = _G.WS;
- walkspeedenabled = true
- elseif walkspeedenabled == true then
- _G.WS = 20;
- local Humanoid = game:GetService("Players").LocalPlayer.Character.Humanoid;
- Humanoid:GetPropertyChangedSignal("WalkSpeed"):Connect(function()
- Humanoid.WalkSpeed = _G.WS;
- end)
- Humanoid.WalkSpeed = _G.WS;
- walkspeedenabled = false
- end
- end
- end
- walkspeedmouse.KeyDown:connect(x_walkspeed)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement