Frame2D

Panels, buttons and boxes for your overlays: a rounded rectangle in any colour, ready for an outline, a shadow or a glow.

A Frame2D is a filled rounded rectangle drawn on top of its DataModel's image. Color and Transparency set its fill, CornerRadius rounds its corners in pixels, up to half the short side, and Position, AnchorPoint, Size and Scale place it from the top-left. A higher ZIndex draws on top. A Stroke under it outlines it and a DropShadow shadows it.

Properties

Scripts

NameTypeDefaultDescription
BackgroundColor3Color3scripts onlyRoblox's name for Color, which Luau takes as an alias.
BackgroundTransparencynumberscripts onlyRoblox's name for Transparency, which Luau takes as an alias.

Appearance

CornerRadiusnumber12
0 to 10000
Rounds the corners by this many pixels, clamped to half the short side.
From Base2D 19
From Instance 22