PcoWSkbVqDnWTu_dm2ix
The Developer Hub is now deprecated and information on this page may no longer be accurate. To see our new and improved documentation, please click here. You can read more about the future of documentation here.
Collapse Sidebar

CurrentCamera

ViewportFrame

Camera

This property is a Camera instance that is used to render children objects. Defaults to nil.

The Camera object will not replicate so the ViewportFrame/CurrentCamera won’t replicate either. If you save a Camera in the server, it will not appear in the client. When you set this property, Camera/CFrame and Camera/FieldOfView will be saved and replicate with ViewportFrame internally so the client can render ViewportFrame without a Camera object. If you want to change the client’s Camera, you have to create a new Camera using a LocalScript at runtime.

See also

  • articles/ViewportFrame GUI|ViewportFrame-GUI, an article exploring how the ViewportFrame GUI can render 3D objects inside its bounds


Code Samples