I don't have a script because i have no idea on how to make a script that makes a character to not walk forward and backward (button w and s). If you know those 2D games that has in roblox that the characters cannot walk forward or backwards, only left and right, that is what i want. You dont need to make an entire script for me, just explain how to do it.
✓ ANSWER ACCEPTED
How do i make a character to not walk forward and backwards?
1 answer
✓ Accepted answer
game:GetService("ControllerService").Instance:UnbindButton("w")
game:GetService("ControllerService").Instance:UnbindButton("s")
may work im not sure
This discussion is preserved as it was. New answers, comments, and votes are closed.

4 comments
dosent work. what you could do is when the player presses w or s his walkspeed changes to 0, but when he presses a or d it changes to 16
Didn't worked, im still editing this part of the script
oh ok, i know how to do that, thanks for the advice
yes i made it and it working perfectly