I need help on a script that works on experimental mode but does not work on filtering enabled.
Here is the script just in case:
local Player = game.Players.LocalPlayer
local Mouse = Player:GetMouse()
local KeysDown = {}
Mouse.KeyDown:connect(function(Key)
if Key:lower() == "w" then
KeysDown["w"] = true
elseif Key:byte() == 48 then
KeysDown["Shift"] = true
end
if KeysDown["w"] and KeysDown["Shift"] then
Player.Character.Humanoid.WalkSpeed = 40
end
end)
Mouse.KeyUp:connect(function(Key)
if Key:lower() == "w" then
KeysDown["w"] = false
elseif Key:byte() == 48 then
KeysDown["Shift"] = false
end
if not KeysDown["w"] or not KeysDown["Shift"] then
Player.Character.Humanoid.WalkSpeed = 16
end
end)
Thank You!

5 comments
I want SHIFT not Q
I understand. This is just an example and you should be able to change it to your likings.
how do i make him stop running when i stop pressing the SHIFT?
Use the site chat please.
Only the Sit and Jump properties are replicated. The Walkspeed appears to be replicated because the client handles the physics of their character on their client.