Strafe Keys Move Slower

How can I change the strafe keys to be slower. What I mean is keep W and S keys movement speed the same. D and A (left and right) I want to move left and right slower. If I could get the code for this and the default move speed that would be great.

Although not the best method, but I suggest using the :GetMoveVector() function inside the control module.

1 Like

I’m not going to write the code for you, I could help you fix it, but I’m not writing it all for you.

Basically, a way I have thought of doing it is when a user presses the A or the D key, their walkspeed is set to 10 or whatever you need it to be set too.

Once, they let go of A or D, their walkspeed is then set back to 16 (the default).

2 Likes

@Morgan_Smyth’s solution is especially useful if you plan on letting players use touch or gamepad controls, because the angle between the player’s move and look directions can be any angle, not just a multiple of 45 degrees.