1 min read

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

NameValueDescription
Global0The ZIndex property overrides the default value computed from the depth in the hierarchy.
Sibling1The 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.

FieldValue
value0

Sibling

The ZIndex property controls the order in which the GuiObject renders relative to its siblings.

FieldValue
value1