Four Directional Movement

Currently I am trying to create a game where movement is limited to only four directions, forwards, backwards, and side to side (north, east, south, west).

However, I do not know how to prohibit a player from moving NE, NW, SE, SW.

I appreciate any provided code to solve this.

1 Like

Use movedirection
its a property on humanoid determaining what direction the player is moving
if the player is moving in a corner you could do a check and tp them back and its prob like they never even did anything
(you could also prob round it and add it or something)