How would I display a SurfaceGui in a ViewportFrame? They aren’t working as is.
Currently ViewportFrames do not support the rendering of certain items such as SurfaceGuis, though this may or may not change in the future.
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.
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
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.
OP is asking based on the following scenario:
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.