How do I display a BillboardGui above another BillboardGui?

Hello. I have 2 BillboardGuis for a part in workspace. One of the BillboardGuis is parented to the part, and the other BillboardGui is inside of StarterGui, and the Adornee property is set to the part. I want the BillboardGui in StarterGui to display in front of the BillboardGui
parented to the part. I set the ZIndexBehaviour of both BillboardGuis to Global. No matter what the ZIndex of the objects inside of the BillboardGuis are, the BillboardGui inside of workspace always displays in front.

GUYS STOP LIKING

20 Likes

Any chance the AlwaysOnTop property of that workspace one is set to true?

5 Likes

Yes, the AlwaysOnTop property of both BillboardGuis are set to true.

3 Likes


Hey! You can change the the Z of ExtentsOffset to a small number like -0.001 for the BillboardGui to be behind or 0.001 for the BillboardGui to be in front.

5 Likes

Maybe trying to disable it? I mean, if both are set to be always on top, maybe they are in a conflict

5 Likes

I just tested that out, with some pretty weird results. If I set Z to a number very close to 0 like -.001, it will still display in front sometimes, depending on the angle of the camera. If I set it to a lower number like -1, it will always display behind the other BillboardGui, but it looks weird when I do want to display it in front (when the other BillboardGui is disabled). It’s not fixed to one spot and it jumps around when I change my angle.

4 Likes

I need them to display above the part.

3 Likes

Maybe try -0.01? -1 is too much. All the Z of ExtentsOffset is doing is making BillboardGui backward or forward from the camera. Just like how you slightly adjust the size/position of a differently-colored part to prevent Z fighting with another differently-colored part.

3 Likes

Here’s what it looks like with Z being -.5. The white frame is in the BillboardGui in StarterGui which I want to display in front, and the brown thing is parented to the part, but still flickers in front for some reason.

3 Likes

Maybe try changing the Z of ExtentsOffset of the StarterGui one to 0.001 or more

2 Likes

Same thing, in only works if Z is set to a bigger number like .7 or something, but at that point it behaves weirdly.

1 Like

Alright, are you using StudsOffsetWorldspace or ExtentsOffsetWorldspace?

1 Like

You should create a part at the center of the Tier3 thing and adornee the brown gui and white gui to that part then don’t do anything with brown gui and just change the Z of ExtentsOffset of the white gui to 0.001 or more.

2 Likes

I was using ExtentsOffset up until now. I just tried ExtendsOffsetWorldspace and it didn’t work either.

1 Like

You can try this?
Keep the Brown Gui’s offset to nothing and adjust the Z of ExtentsOffset of the White Gui

Thanks, it worked! Though I’m not sure why it didn’t work before…

Then there you have it! You can mark it as the solution.

I did. It might take a moment to show for you, though.

1 Like

I’ll just leave a demo file here:
BillboardGui in front of another BillboardGui.rbxl (58.4 KB)
In case anyone still do not understand