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.

TextYAlignment

Determines vertical alignment of text.

Used by TextLabel, TextButton, and TextBox.

Items

NameValueDescription
Top0Alignment starts at the top of the GUI object.
Center1Aligned starts at the center of the GUI object and spreads equally toward the top and bottom.
Bottom2Alignment starts at the bottom of the GUI object.

Top

Alignment starts at the top of the GUI object.

FieldValue
value0

Center

Aligned starts at the center of the GUI object and spreads equally toward the top and bottom.

FieldValue
value1

Bottom

Alignment starts at the bottom of the GUI object.

FieldValue
value2