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

How to put one GUI behind another?

Asked by
emite1000 335 Moderation Voter
10 years ago

I've got two different GUI's inside one ScreenGUI. One is a Frame and the other is a ImageLabel. The ImageLabel is meant to be a background to the Frame, but the ImageLabel shows up in front of the Frame, and takes up the whole screen so you are unable to see the Frame and its descendants.

How do I make it so the Frame appears in front of the ImageLabel?

3 answers

Log in to vote
2
Answered by
RAYAN1565 691 Moderation Voter
10 years ago

Do it with the Zindex property

Set Zindex for the image to 1, Set Zindex for the frame to 2

and there you go :) Hope this helps!

0
Oh, hm I thought it was Zindex but no matter what number I changed it to I didn't change. I guess I was increasing the image's Zindex instead of decreasing it like I should. Thanks! emite1000 335 — 10y
1
No problem bro, glad to help! ;D RAYAN1565 691 — 10y
Ad
Log in to vote
1
Answered by
Azarth 3141 Moderation Voter Community Moderator
10 years ago

You do this with the ZIndex property.

0
That's what I tried but nothing happens. emite1000 335 — 10y
Log in to vote
-1
Answered by 10 years ago

You can position ScreenGuis using XYZ. X moves a Gui horizontally. Y moves a Gui vertically. And The Z position layers Guis. Use the Z position to adjust which Gui goes in front.

Answer this question