How do I change GUI display order?

Hello,
This might be a dumb question but I’m not good with GUI’s so help me out here.

How do I make it so this GUI
image

Come up before this GUI
image

I tried changing display order but that didn’t work.

4 Likes

What’s the problem, I don’t understand it, sorry.

2 Likes

I want the MainMenuGui to show up before the Lobby Gui. When a player enters the game.

2 Likes

So you want that the Lobby GUI is over the Main GUI ? can you show how it looks like yet?

1 Like

Zindex of Loadingscreenbackground on 2
Zindex of the Lobby Frame on 1

This will do.

Otherwise do it with an enable/disable script for the ScreenGui
Note: Make sure that’s the screengui’s propertie ZindexBehaviour is == to Sibling

6 Likes

Do you mean put one Gui over the other Gui or disabling a certain Gui?

Put one Gui over the other Gui:

  1. Parent the Gui you want on top to a random other instance (for example Workspace), then parent the Gui to StarterGui or a Player’s PlayerGui.
    or
  2. Set the Gui’s DisplayOrder property to a higher value then the DisplayOrder property on the Gui you want to appear under it.

Disable Gui’s:
Simply set the Enabled property to false, set it to true again to enable the Gui.

1 Like

@RageOfficial_Support, i hope we helped you. Check it out.

1 Like

Thanks :slight_smile: @JailBreak2007_1 and @iamajust Both your tips worked.

1 Like

Can you set the answer of me or the answer from @iamajust on solved? Then the community know’s you have an answer :stuck_out_tongue:

1 Like

Just for the sake of clarification: if you’re using Sibling ZIndexBehavior on these ScreenGuis, then you should be modifying their DisplayOrder property to determine which ones layer on top of others - you don’t need to change ZIndex of individual frames if you do that. You only need to change ZIndex of LoadingScreenBackground to be higher than Lobby’s Frame if you’re using Global ZIndex behaviour.

Still good practice to change DisplayOrder even if you use Global ZIndex behaviour.

9 Likes