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

How do I use more than 10 ZIndexes?

Asked by 9 years ago

I want to make a deck of GUI cards appear on screen, stacked on top of each other.

But what if the amount of cards in one place is more than 10? How do I deal with this?

0
You can't I believe ZIndex max is 10. User#9949 0 — 9y
0
It is, but I believe there was another way of making it sort GUI's at the same level randomsmileyface 375 — 9y

2 answers

Log in to vote
2
Answered by 9 years ago

Unfortunately, ZIndices can only be 1-10. I think that the solution to your problem might be creating the cards in order of how you want them to be displayed. Each card you create will be placed on top of the last one created.

0
But what if I were to move one on top of another? randomsmileyface 375 — 9y
0
@randomsmileyface If you don't use ZIndices at all and rely entirely on creation time, you can use ZIndices to move cards on top of each other after creation. Programmix 285 — 9y
Ad
Log in to vote
0
Answered by 9 years ago

The max value for the ZIndex property of a GuiObject is 10, if you go over 10, the ZIndex property will automatically set the value to 10.

Answer this question