Instances
Frame
A rectangular GUI object and container used inside BillboardGui or another Frame.
Defaults and properties
| Name | Type | Description |
|---|---|---|
Size | UDim2 | Default: UDim2.new(0, 100, 0, 100). |
Position | UDim2 | Position relative to the parent GUI. Default: UDim2.new(0, 0, 0, 0). |
AnchorPoint | Vector2 | Point inside the Frame that Position is anchored to. Default: Vector2.new(0, 0). |
BackgroundColour3 | Colour3 | Background colour. Default: white. BackgroundColor3 remains available as a compatibility alias. |
BackgroundTransparency | number | Background transparency from 0 through 1. Default: 0. |
Visible | boolean | Controls whether the Frame and its descendants are drawn. Default: true. |
Rotation | number | Clockwise rotation in degrees around the Frame centre. Default: 0. |
ZIndex | number | Sibling-scoped GUI draw order. Higher values draw above sibling GUI objects. Descendants remain inside the parent stacking context. Default: 1. |
ClipDescendants | boolean | Clips GUI descendants to the Frame bounds. Default: false. |
Interactable | boolean | Controls whether the GUI object can participate in GUI interaction. Default: true. |
Modal | boolean | When true, right-click camera movement is allowed through this GUI object while the pointer is over it. Default: false. |
BorderColour3 | Colour3 | Border colour. Default: black. BorderColor3 is a compatibility alias. |
BorderMode | Enum.BorderMode | Border placement. Default: Enum.BorderMode.Outline. |
BorderSizePixel | number | Border thickness in pixels. Default: 0. Disabled in Studio while a UICorner is parented to the Frame. |
Hierarchy
Hierarchy parenting is unrestricted. A Frame renders when it is reached through a valid GUI chain under ScreenGui, SurfaceGui or BillboardGui. Invalid placements remain in the hierarchy but do not render.
Example
Luau
local frame = Instance.new("Frame")
frame.Size = UDim2.new(0, 100, 0, 100)
frame.Position = UDim2.new(0, 10, 0, 10)
frame.AnchorPoint = Vector2.new(0, 0)
frame.BackgroundColour3 = Colour3.fromRGB(255, 255, 255)
frame.BorderColour3 = Colour3.fromRGB(0, 0, 0)
frame.BorderMode = Enum.BorderMode.Outline
frame.BorderSizePixel = 0
frame.Visible = true
frame.Rotation = 0
frame.ZIndex = 1
frame.ClipDescendants = false
frame.Interactable = true
frame.BackgroundTransparency = 0
frame.Parent = workspace.Part.BillboardGuiRelated
UIListLayoutAutomatically arranges GUI children in a list.UIGridLayoutAutomatically arranges GUI children in a grid.BillboardGuiWorld-space GUI container.TextLabelText GUI object.TextButtonClickable text GUI object.UICornerRounds GUI object corners.UIGradientApplies a colour and transparency gradient.UIBlurBlurs the 3D backdrop behind the Frame.