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
| Name | Value | Description |
|---|---|---|
| Right | 0 | The user swiped right. |
| Left | 1 | The user swiped left. |
| Up | 2 | The user swiped up. |
| Down | 3 | The user swiped down. |
| None | 4 | The user did not swipe in a certain direction. |
Right
The user swiped right.
| Field | Value |
|---|---|
| value | 0 |
Left
The user swiped left.
| Field | Value |
|---|---|
| value | 1 |
Up
The user swiped up.
| Field | Value |
|---|---|
| value | 2 |
Down
The user swiped down.
| Field | Value |
|---|---|
| value | 3 |
None
The user did not swipe in a certain direction.
| Field | Value |
|---|---|
| value | 4 |