Glorpia Docs
Instances

Frame

A rectangular GUI object and container used inside BillboardGui or another Frame.

Defaults and properties

NameTypeDescription
SizeUDim2Default: UDim2.new(0, 100, 0, 100).
PositionUDim2Position relative to the parent GUI. Default: UDim2.new(0, 0, 0, 0).
AnchorPointVector2Point inside the Frame that Position is anchored to. Default: Vector2.new(0, 0).
BackgroundColour3Colour3Background colour. Default: white. BackgroundColor3 remains available as a compatibility alias.
BackgroundTransparencynumberBackground transparency from 0 through 1. Default: 0.
VisiblebooleanControls whether the Frame and its descendants are drawn. Default: true.
RotationnumberClockwise rotation in degrees around the Frame centre. Default: 0.
ZIndexnumberSibling-scoped GUI draw order. Higher values draw above sibling GUI objects. Descendants remain inside the parent stacking context. Default: 1.
ClipDescendantsbooleanClips GUI descendants to the Frame bounds. Default: false.
InteractablebooleanControls whether the GUI object can participate in GUI interaction. Default: true.
ModalbooleanWhen true, right-click camera movement is allowed through this GUI object while the pointer is over it. Default: false.
BorderColour3Colour3Border colour. Default: black. BorderColor3 is a compatibility alias.
BorderModeEnum.BorderModeBorder placement. Default: Enum.BorderMode.Outline.
BorderSizePixelnumberBorder 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.BillboardGui

Related