Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How would I disable forwards and backwards movement?

Asked by 4 years ago

Title says everything, how would I do it?

2 answers

Log in to vote
0
Answered by 4 years ago

You can do this simply by going to Starterplayer and then set CharacterWalkSpeed to 0

Ad
Log in to vote
0
Answered by 4 years ago
Edited 4 years ago

Use ContextActionService!

ContextActionService

local CAS = game:GetService("ContextActionService")

CAS:UnbindAction("moveForwardAction")
CAS:UnbindAction("moveBackwardAction")

Keep in mind, this only works in LocalScripts!

Picture of All Actions

Hope this helped! Feel free to select this as an answer if this worked for you!

Answer this question