What is Zindex Behaviour?

I was recently trying to learning how to make GUIS but I don’t understand what the Zindex Behaviour property is and does.

Thank for your help!!!

4 Likes

You can read this: GuiObject | Roblox Creator Documentation

ZIndex basically determines how things are rendered.

3 Likes

There’s already a api reference for this, please look it up before asking on the dev forum. GuiObject | Roblox Creator Documentation

I did it provides a complex, bland explanation and I don’t understand still. I always go on the DevHub before asking

They’ve given a pretty clear explanation.

It decides what guis render ontop of eachother.

A < B, so A a renders first (on bottom)
frameA.ZIndex = 1
frameB.ZIndex = 2

So do you mean that if the Value is set higher then it will render first??

If two GuiObjects are parented to the same parent and one has a higher ZIndex, it will appear ontop of the other. If one has a lower ZIndex, it will appear behind it, essentially.

16 Likes

The lower the value the lower the gui is and the higher the value is the lower the gui is.

2 Likes