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