So this might be a problem only I have because I am a weirdo but … just in case.
I was running a script where I:
- Cloned a model
- Passed the cloned model through to a function to do some stuff to it, including:
- Cloned a SurfaceGui
- Assigned the SurfaceGui parent to the PlayerGui
- Set the SurfaceGui Adornee to one of the pieces in my cloned model
- Parented the model in the workspace
The problem was, my GUI was not showing on the model. The cloned gui was in my player.PlayerGui, and the Adornee was assigned, but it was invisible.
I checked if it was enabled, I checked if all the elements were visible .. nothing.
And then I realized that the model’s parent was set AFTER the adornee was being assigned to the part in the model.
When I gave the model a parent in the workspace and THEN assigned the Adornee, all was well. I am left to assume I shouldn’t be assigning adornees in models outside the workspace.
So: if you’re assigning a SurfaceGui adornee to a model without a parent, try parenting the model first.