Source: Roblox Creator Hub · CC BY 4.0 · View source · Code samples: MIT Imported 2026-10-03. Formatting adapted for this site.
ZIndexBehavior
Used by LayerCollector.ZIndexBehavior to control how the GuiObject.ZIndex property behaves for descendants.
Items
| Name | Value | Description |
|---|---|---|
| Global | 0 | The ZIndex property overrides the default value computed from the depth in the hierarchy. |
| Sibling | 1 | The ZIndex property controls the order in which the GuiObject renders relative to its siblings. |
Global
The ZIndex property overrides the default value computed from the depth in the hierarchy.
| Field | Value |
|---|---|
| value | 0 |
Sibling
The ZIndex property controls the order in which the GuiObject renders relative to its siblings.
| Field | Value |
|---|---|
| value | 1 |