How do I change WASD controls to confuse players?

I want to make the player stop moving, but also be able to configure the keys they press so that it makes them go a seperate direction. How can I do this?

1 Like

I don’t think that you can change which direction the WASD keys go in but you can make them stop moving with a LocalScript

local player = game:GetService("Players").LocalPlayer
local character = player.Character

function stopMoving()
character.Humanoid.WalkSpeed = 0
end

function resumeMoving()
character.Humanoid.WalkSpeed = 16
end

You can unbind the wasd keys using ContextActionService (I think, only really used UserInputService and keycodes so far)

Then you can script your walking directions yourself.