Source: Roblox Creator Hub · CC BY 4.0 · View source · Code samples: MIT Imported 2026-10-03. Formatting adapted for this site.
TextXAlignment
Determines horizontal alignment of text.
Used by TextLabel, TextButton, and TextBox.
Items
| Name | Value | Description |
|---|---|---|
| Left | 0 | Alignment starts at the left side of the GUI object. |
| Right | 1 | Alignment starts at the right side of the GUI object. |
| Center | 2 | Aligned starts at the center of the GUI object and spreads equally left and right. |
Left
Alignment starts at the left side of the GUI object.
| Field | Value |
|---|---|
| value | 0 |
Right
Alignment starts at the right side of the GUI object.
| Field | Value |
|---|---|
| value | 1 |
Center
Aligned starts at the center of the GUI object and spreads equally left and right.
| Field | Value |
|---|---|
| value | 2 |