Collapse Sidebar




The Text property determines the content rendered by the UI element. The visual properties of the string rendered to the screen is determined by TextBox/TextColor3, TextBox/TextTransparency, TextBox/TextSize, TextBox/Font, TextBox/TextScaled, TextBox/TextWrapped, TextBox/TextXAlignment and TextBox/TextYAlignment.

It is possible to render emoji (for example, 😃) and other symbols. These special symbols aren’t affected by the TextBox/TextColor3 property. These can be pasted into Script and LocalScript objects, as well as the field within the Properties window.

This property may contain newline characters, however, it is not possible to type newline characters within the Properties window. Similarly, this property may contain a tab character, but it will render as a space instead.

Code Samples

"Kaboom!" Text

This code sample repeatedly tweens a TextLabel’s TextSize from 5 to 100 and fades out the text as it grows in size.

Show All Fonts

This code sample renders a list of all the available fonts.

Long Text Wrapping

This code sample demonstrates TextWrap by spelling out a long chunk of text progressively. If the text doesn’t fit, it turns a different color.

Fading Banner

This code sample creates a fading banner for a TextLabel. It fades text out, chooses a random string (avoiding repetition), and fades back in.

Emoji in Text

This code sample demonstrates emoji rendering using the Text property.