---
title: "Frame"
description: "A rectangular GUI object and container used inside BillboardGui or another Frame."
canonical: "https://docs.glorpia.com/instances/frame"
markdown: "https://docs.glorpia.com/instances/frame.md"
---
# Frame

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

**Category:** Instances

## 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.BillboardGui
```

## Related

- [UIListLayout](https://docs.glorpia.com/instances/uilistlayout.md) — Automatically arranges GUI children in a list.
- [UIGridLayout](https://docs.glorpia.com/instances/uigridlayout.md) — Automatically arranges GUI children in a grid.
- [BillboardGui](https://docs.glorpia.com/instances/billboardgui.md) — World-space GUI container.
- [TextLabel](https://docs.glorpia.com/instances/textlabel.md) — Text GUI object.
- [TextButton](https://docs.glorpia.com/instances/textbutton.md) — Clickable text GUI object.
- [UICorner](https://docs.glorpia.com/instances/uicorner.md) — Rounds GUI object corners.
- [UIGradient](https://docs.glorpia.com/instances/uigradient.md) — Applies a colour and transparency gradient.
- [UIBlur](https://docs.glorpia.com/instances/uiblur.md) — Blurs the 3D backdrop behind the Frame.
