Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
1

My Z-indices are rebelling?

Asked by 8 years ago

I have a loading gui set in serverstorage instead of startergui because i felt it was better to place it into playergui once onEntered and be done with it

When I made the loading gui, i gave every element in it a Z-index of 8 or 9 in anticipation of the problem I would have today (obviously it didnt work)

Under that I'm about to design a menu gui which is placed in the startergui

My problem is that the elements of the menu gui, which have a Z-Index of 1, seems to be interfering with my loading gui, which to me is completely illogical considering that, in addition to having an unnecessarily high z-index, it is also completely opaque.

I can say that this looks as if the menu is on top of the loading gui

However problem seems to be gone if I simply put the loading gui inside startergui

Is it that objects that are cloned into playergui are automatically displayed lower in zindex

I am so confuse ;.;

1 answer

Log in to vote
2
Answered by
Validark 1580 Snack Break Moderation Voter
8 years ago

Don't quote me on this, but I believe when Gui objects are not placed all in one ScreenGui, they are not rendered at the same time, thus ignoring the ZIndexes across the two sets of Gui Objects. To fix this, place everything under one ScreenGui.

0
That makes a lot of sense. I'm going to experiment by cloning frame containers instead of full screenguis. Hope that works. Zzzip42Strike 30 — 8y
0
Thank you it works perfectly! Zzzip42Strike 30 — 8y
0
You're welcome! Validark 1580 — 8y
Ad

Answer this question