Invisible Viewportframe on SurfaceGui

screenshot
screenshot
Not sure if this is the correct category for this, but I put a viewportframe ontop of a cylinder because I had a cool idea for a game mechanic, but I haven’t been able to do that because the viewportframe just wasn’t showing up, I removed the ui corner, made the outline visible, disabled clip decendents on the surface gui, but the viewportframe itself is still invisible. (Currentcamera is set, and no the background is not transparent)

The weird thing is that if I move it to a screengui, it shows up normally.

The problem is there’s no part or things as the child of the viewport frame.
Look at this page for more info on this: Frames | Roblox Creator Documentation

I removed the part temporarily when I took the screenshot, but with the part in the viewport frame it still isn’t visible, the background, or the image.

Then i don’t know what else could be the problem the only other thing that i can think of is that they don’t work on a surface gui but never tried to do so, so i don’t really know

1 Like

Just for anybody who comes across this issue, ViewportFrames HAVE to be in a SurfaceGui/BillboardGui that is a descendant of the PlayerGui. They will not render if they are not within the PlayerGui.

So what you have to do is move your SurfaceGui/BillboardGui into the PlayerGui (either during run-time OR you can move it to StarterGui if you don’t rely on it being in the Workspace) and then set the Adornee to the Part you want it to display on.

There are a lot of things that have the same limitation, so whenever something isn’t working only in a SurfaceGui/BillboardGui then simply follow the steps I listed above.

2 Likes