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)