BillboardGui renders behind semi-transparent editable mesh

In my game I have a large editable mesh, which is partially transparent, and a non-transparent billboard GUI which is above the player’s head and infront of the mesh relative to the camera.

While this means the GUI should appear fully visible, it instead appears as if it is behind the mesh.

Expected behavior

The GUI should correctly render as infront of the mesh.

1 Like

It seems you’re encountering an issue where the BillboardGui appears behind a semi-transparent editable mesh, even though it should be in front. This is due to the AlwaysOnTop property of the BillBoardGui
Solution:
Set the AlwaysOnTop property of the BillboardGui to true. This ensures that the GUI renders above other 3D objects, including semi-transparent meshes.
Example:

local billboardGui = script.Parent:FindFirstChild("BillboardGui")
if billboardGui then
    billboardGui.AlwaysOnTop = true
end

By setting AlwaysOnTop to true, the BillboardGui will consistently render above other 3D objects, resolving the issue you’re experiencing.
for more details, you can refer to the BillboardGui documentation.

I do not want the GUI to be always on top though. This works around the issue but does not solve it. Also, was this response AI generated?

2 Likes

Nope I’m using grammarly tho for my bad english.