1 min read

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

SwipeDirection

The SwipeDirection Enum represents the direction in which a user swipes on a UserInputService.TouchEnabled device.

The GuiObject.TouchSwipe and UserInputService.TouchSwipe events pass this enum as an argument.

Items

NameValueDescription
Right0The user swiped right.
Left1The user swiped left.
Up2The user swiped up.
Down3The user swiped down.
None4The user did not swipe in a certain direction.

The user swiped right.

FieldValue
value0

Left

The user swiped left.

FieldValue
value1

Up

The user swiped up.

FieldValue
value2

Down

The user swiped down.

FieldValue
value3

None

The user did not swipe in a certain direction.

FieldValue
value4