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
| Name | Type | Default | Description |
|---|---|---|---|
| BackgroundColor3 | Color3 | scripts only | Roblox's name for Color, which Luau takes as an alias. |
| BackgroundTransparency | number | scripts only | Roblox's name for Transparency, which Luau takes as an alias. |
Appearance
| CornerRadius | number | 12 0 to 10000 | Rounds the corners by this many pixels, clamped to half the short side. |
