---
title: "ScreenGui"
description: "A screen-space GUI container rendered from the local player's PlayerGui."
canonical: "https://docs.glorpia.com/instances/screengui"
markdown: "https://docs.glorpia.com/instances/screengui.md"
---
# ScreenGui

A screen-space GUI container rendered from the local player's PlayerGui.

**Category:** Instances

## Properties

| Name | Type | Description |
| --- | --- | --- |
| `Enabled` | boolean | Controls whether this ScreenGui and its descendants render and receive GUI input. Default: true. |
| `DisplayOrder` | number | Orders ScreenGuis on the screen. Higher values draw and receive input above lower values. Default: 0. |
| `IgnoreGuiInset` | boolean | When true, the GUI uses the complete viewport instead of the normal screen inset. Default: false. |
| `ResetOnSpawn` | boolean | When true, the runtime copy is recreated from StarterGui when the character respawns. Default: true. |

## Runtime hierarchy

`StarterGui` is a template. When a Player is created, its contents are cloned into that Player's `PlayerGui`. ScreenGuis render from the local player's PlayerGui, not directly from StarterGui.

LocalScripts inside the StarterGui template remain inactive there. Their cloned copies inside the local PlayerGui start in the client runtime.

> **Note:** Hierarchy parenting is unrestricted. A ScreenGui outside StarterGui or PlayerGui remains in Explorer but does not render. ScreenGui renders directly in native viewport pixels. Frame, TextLabel and TextButton visuals are rasterized by the shared Skia 2D renderer, including backgrounds, rounded corners, UIGradient and text, then composited by wgpu. UIBlur uses the rendered 3D scene as a local backdrop while the Skia foreground remains sharp. ScreenGui is the top GUI layer: BillboardGui and SurfaceGui remain below it even when their AlwaysOnTop property is true.

## Studio editing

Studio can preview StarterGui while editing. With the Development UI toggle enabled, visible ScreenGui descendants can be selected and dragged directly in the viewport. The drag tool converts Position, Size and AnchorPoint to responsive scale-based values rather than resolution-specific offsets.

## Example

```luau
local gui = Instance.new("ScreenGui")
gui.DisplayOrder = 10
gui.ResetOnSpawn = false
gui.Parent = game:GetService("StarterGui")

local button = Instance.new("TextButton")
button.Size = UDim2.new(0.2, 0, 0.08, 0)
button.Position = UDim2.new(0.5, 0, 0.9, 0)
button.AnchorPoint = Vector2.new(0.5, 0.5)
button.Text = "Play"
button.Parent = gui
```

## Related

- [StarterGui](https://docs.glorpia.com/services/startergui.md) — Template GUI hierarchy copied to each PlayerGui.
- [PlayerGui](https://docs.glorpia.com/instances/playergui.md) — Runtime screen GUI container owned by a Player.
- [Frame](https://docs.glorpia.com/instances/frame.md) — Rectangular GUI object and container.
- [TextButton](https://docs.glorpia.com/instances/textbutton.md) — Clickable client GUI object.
