The DevTouchMovementMode property determines the manner in which a player moves their character when using a
UserInputService/TouchEnabled|TouchEnabled device. See
Enum/DevTouchMovementMode for a description of each movement control mode available. This property cannot be set using a
LocalScript (it must be set on the server using a
The default value of this property is determined by
- When set to UserChoice, a player can choose between any control mode (except Scriptable) in the Roblox game settings. In general, it is a good idea to allow players to choose their control mode to maximize accessibility.
- It is possible to create a custom control scheme by setting this property to Scriptable.
- This property does not affect players who are not using a touch enabled device. See
Setting a Player's Movement Mode (Touch)
The example demonstrates how to set the movement mode for players on touch enabled devices.
In this example, we set the movement mode to Thumbstick via the
Enum/DevTouchMovementMode enum. This means that players on touch enabled devices be able to move via a virtual thumbstick on their screen.