SurfaceGuis in ViewportFrames

How would I display a SurfaceGui in a ViewportFrame? They aren’t working as is.

1 Like

Currently ViewportFrames do not support the rendering of certain items such as SurfaceGuis, though this may or may not change in the future.

7 Likes

Wouldn’t you be better off displaying an identical GUI in a ScreenGUI? What are you aiming to do?


Please follow this format before posting in the scripting support category.

1 Like

Where’s your SurfaceGui located? See zeuxcg’s response on SurfaceGui hierarchical placement with ViewportFrames:

Not sure whether this is the case in live games but it works in studio. You just need to have the surface Gui in the player’s

@Myzta, what I said above. You need to have it in the PlayerGui and use the adornee property. If the part doesn’t show, try re-positioning the camera.

If you haven’t already, have a look at the viewportframe documentation and tutorial here :slightly_smiling_face:

I think a lot of you seem to have misread the question.
OP asked about the limited rendering of ViewportFrames, not about how to insert them into SurfaceGuis.

Not “ViewportFrame in a SurfaceGui”, but the reverse.

To elaborate:
OP is asking based on the following scenario:
ViewportFrame
~Part
~~SurfaceGui

The ViewportFrame will not render the SurfaceGui on the part, and she asked how it can be done.

Elttob answered right away, with the correct answer.

10 Likes