View port frame

i really badly understand how viewport frame work and how camera work. Pls do you know any tutorial. I readed the documentation on dev hub so pls dont send me link to this

1 Like

Hi there,

Perhaps this YouTube Tutorial might be more helpful to you:

In the future, please make sure to use the search function on the DevForums and other sources before making a post in Scripting Support - also make sure any posts in Scripting Support meet the guidelines.

and can the view port view workspace?

If you copy models and parts from the workspace into the viewportframe it will view them yes.

Hope it makes it a bit easier if you think of the viewportframe as some sort of mini workspace.

It’s a workspace but smaller and nothing moves (frozen, no physics).
Just like a workspace it also needs a camera, thing is, you need to script this camera yourself, Roblox won’t do that.

However, scripting viewportframe cameras is as easy as working with CFrame and making one part face another, etc.

1 Like

ok, but i tried it and is looks… very bad so do you hnow what parametrs to ajust to make it looking like it normal

Lighting in viewportframes is very limited at the moment.

1 Like

i found this my self, but how to put the decrese the brightnes

As far as I am aware, you can’t at the moment. I think they are working on more lighting options though

1 Like

Cloning the entire workspace into a viewportframe is a bad practice and honestly they shouldnt be used for much more than a few models to render objects (Assuming you’re updating them)

No, I am not updating them. I just need to move camera how I need.