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

How to unbind WASD and Arrowkeys?

Asked by 7 years ago

I have searched for some answers but thats all i could find is WalkSpeed = 0

0
There's a specific script that controls player movement when the game starts. I can't look into it now, though. CootKitty 311 — 7y
0
Use game.GetService("UserInputService") LastApollo 76 — 7y

2 answers

Log in to vote
0
Answered by 7 years ago

You could modify the default PlayerScripts. You do this by going into a new place, play solo, look at PlayerScripts.ControlScript.MasterControl.KeyboardMovement. You have to copy the scripts you wish to change into StarterScripts, then edit them. Lines 110-114 is where KeyboardMovement binds the controls.

Alternatively, you should be able to use ContextActionService and you should be able to unbind the actions that the KeyboardMovement sets up.

Ad
Log in to vote
0
Answered by 7 years ago
game.Players.LocalPlayer.PlayerScripts.ControlScript.Disabled = true

Use in LocalScript to disable movement. Set Disabled to false to re-enable it.

Answer this question