Disable the 'W' & 'S' keys?

Hey! I’m trying to make a side scroller but I ran into an issue. I need it so the player can’t run towards/away from the screen but rather is forced to use the ‘A’ & ‘D’ keys to move around. Any ideas on how I could do this?

Maybe search before posting?


Tried using the solution, it doesn’t seem to affect the game whatsoever.

EDIT: It only seems to work partially, got to do some testing with it.

You’ll need to use the ContextActionService and bind an action with a higher priority than the movement actions.

1 Like

I added a small delay to the script and it seemed to fix it.