2 min read

Source: Roblox Creator Hub · CC BY 4.0 · View source · Code samples: MIT Imported 2026-10-03. Formatting adapted for this site.

ScreenOrientation

Indicates what orientation the game prefers to be played on mobile devices.

Items

NameValueDescription
LandscapeLeft0A preference where the game is displayed landscape (horizontally) with the bottom of the device on the left side of the screen.
LandscapeRight1A preference where the game is displayed landscape (horizontally) with the bottom of the device on the right side of the screen.
LandscapeSensor2A preference where the game is displayed landscape (horizontally) with the bottom of the device on the left of right side of the screen depending on the device's orientation (the sensor determines which side allows for the game to be displayed right-side-up).
Portrait3A preference where the game is displayed portrait (vertically) with the bottom of the device on the bottom of the screen.
Sensor4A preference where the game is displayed depending on the best match to the device's current orientation - either landscape (left/right) or portrait.

LandscapeLeft

A preference where the game is displayed landscape (horizontally) with the bottom of the device on the left side of the screen.

FieldValue
value0

LandscapeRight

A preference where the game is displayed landscape (horizontally) with the bottom of the device on the right side of the screen.

FieldValue
value1

LandscapeSensor

A preference where the game is displayed landscape (horizontally) with the bottom of the device on the left of right side of the screen depending on the device's orientation (the sensor determines which side allows for the game to be displayed right-side-up).

FieldValue
value2

Portrait

A preference where the game is displayed portrait (vertically) with the bottom of the device on the bottom of the screen.

FieldValue
value3

Sensor

A preference where the game is displayed depending on the best match to the device's current orientation - either landscape (left/right) or portrait.

FieldValue
value4