TextXAlignment (Property)
From Legacy Roblox Wiki
TextXAlignment | |
Property | TextXAlignment TextXAlignment |
Description | Sets where the text is placed in a GUI on the X axis. |
Member of | TextBox, TextButton, TextLabel |
Example
The resulting label's text will be centered.Instance.new('TextLabel', script.Parent).TextXAlignment = Enum.TextXAlignment.Center