Text2D

Write titles, labels and scores right over your scene in any font, then outline, shadow, glow or bevel them as in Photoshop.

A low granite plinth on a paved patio before a sunlit cream plaster wall, blue sky above, mid afternoon sun from the front left; four Parts stand on the plinth, a blue block, a red ball, a yellow cylinder and a green wedge.
Before
The same frame with a Text2D, the words Four Parts on a plinth in dark blue across the top.
After

After: A Text2D with Text Size 72 in a box 1600 by 110 pixels at the top of the frame.

A Text2D draws its Text in its box over the DataModel's picture, like Roblox's TextLabel. AlignX, AlignY, Scaled and Wrapped work as there, and TextSize 0, the default, fits it to 0.72 of the box's height. Its Font is a FontContent (Segoe UI when there is none). Position, AnchorPoint, Size and Scale place it in pixels from the top-left; Color and Transparency tint and fade it. Layer styles under it, like Stroke and DropShadow, draw with it.

Example

Text with a stroke and a drop shadowLuau
-- the first scene in your project (Studio in a new one)
local dm = Root:FindFirstChildWhichIsA("DataModel", true)
local t = Instance.new("Text2D", dm)
t.Text = "Layer Styles"
t.Position = Vector2.new(40, 30)
t.Size = Vector2.new(560, 130)
t.Color = Color3.new(1, 1, 1)
local s = Instance.new("Stroke", t)
s.Size = 9
local sh = Instance.new("DropShadow", t)
sh.Distance = 8
sh.Size = 10

Properties

Text

NameTypeDefaultDescription
AlignXnumber0.5
0 to 1
AlignYnumber0.5
0 to 1
FontFontContentThe font file it draws with; with none it uses Segoe UI.
LineHeightnumber1
0.1 to 10
MaxTextSizenumber100
1 to 1000
MaxVisibleGraphemesnumber-1
-1 (all) or 0 and up
MinTextSizenumber1
1 to 1000
PlaceholderColor3Color3
PlaceholderTextstring
Richbooleanfalse
Scaledbooleanfalse
Textstring"Text"The text it shows, centred by default; with TextSize 0 it fits 0.72 of the box height.
TextSizenumber0
0 to 1000
TextSizeConstraintstring""
TruncatestringSplitWord
None, AtEnd, SplitWord
Wrappedbooleanfalse

Interaction

AutoButtonColorboolean
Selectedboolean

Behavior

ClearTextOnFocusboolean
MultiLineboolean
TextEditableboolean

Roblox

RobloxClassstring""
TextLabel, TextButton, TextBox

Scripts

TextColor3Color3scripts onlyRoblox's name for Color, which Luau takes as an alias.
TextTransparencynumberscripts onlyRoblox's name for Transparency, which Luau takes as an alias.
From Base2D 20
From Instance 22