PcoWSkbVqDnWTu_dm2ix
We use cookies on this site to enhance your user experience

Customizing Game Controls

Customizing Game Controls

Dec 19 2018, 3:09 PM PST 5 min

Roblox offers several options for customizing game controls, including built-in control schemes for both computers and mobile devices along with the ability to write custom scripts for almost any control system imaginable.

Built-In Controls

Some common control schemes are included directly within Roblox, letting you change your game’s controls with just a few clicks.

  1. In the Explorer window, select the StarterPlayer object.
  1. In the Properties window, scroll down to locate the Mobile and Controls sections. Using these options, you can easily set your game’s controls to the default schemes below.

Computer Controls

Game controls on desktop/laptop computers can be set by changing the value of ControlsDevComputerMovementMode.

Option Description
ClickToMove Players can only move about the game world by right-clicking a target location.
KeyboardMouse Traditional Roblox controls using W A S D or the arrow keys to move and Space to jump.
Scriptable Disables all default controls and allows you to script your own control scheme.
UserChoice Allows players to choose their desired control scheme from the in-game Settings menu.

Mobile Controls

Controls for Roblox games on mobile devices (phones/tablets) can be set by changing the value of ControlsDevTouchMovementMode.

Option Description Preview
ClickToMove Players can only move about the game world by tapping a target location. Includes a jump button in the lower-right region of the screen.
DPad All controls are consolidated in a lower-left widget on the screen with the jump button in the center.
DynamicThumbstick Similar to Thumbstick except that the dynamic thumbstick "floats," meaning that the stick appears wherever the player presses down, then moves relative to that position.
Scriptable Disables all default controls and allows you to script your own control scheme.
Thumbpad Similar to DPad except that the jump button is located in the lower-right region of the screen.
Thumbstick A typical mobile thumbstick located in the lower-left region of the screen. Unlike Thumbpad, this control scheme allows for variant movement speed based on how far the stick is moved in any direction.
UserChoice Allows players to choose their desired control scheme from the in-game Settings menu.

Mouse Lock (Computer)

If ControlsEnableMouseLockOption is toggled on, Roblox players on computers can press the Shift key to toggle between “mouse look” modes. When toggled on during gameplay via Shift, players can look around by simply moving the mouse. When toggled off, players must hold down the right mouse button to look around.

Auto-Jump (Mobile)

On mobile devices, auto-jump is enabled by default, meaning that players will automatically jump across gaps, onto and off high platforms, etc. To disable this option and force players to use the jump button, uncheck MobileAutoJumpEnabled.

Full Customization

If you prefer to script your own control scheme, set both DevComputerMovementMode and DevTouchMovementMode to Scriptable. This will keep the built-in camera behavior intact while letting you design your own controls for computer, mobile, and console.

For more details on implementing custom controls, see articles/Keyboard Input Methods|Keyboard Input Methods, articles/ContextActionService Creating Mobile Buttons|Creating Mobile Buttons, and articles/Gamepad Input|Gamepad Input.

Tags:
  • controls
  • cross-platform
  • mobile
  • control