Click here for an example of what I'm talking about.
I was attempting to create a model previewer within one of my games, so players could preview models. The system worked very well at first until I started adding more and more items inside of the shop. (The models constantly updating cause tons of lag on the client) The script works by cloning one of the models from the shop into the previewer located on the right and constantly changing the model in order for the rotation script inside of it to work. I want to know if there is any way to update the camera without having to delete the old model inside of the Viewport frame and replacing it with a new one.
This is a script that I have inside of one of the shop items:
while wait() do
ModelPreview:ClearAllChildren()
ModelToReplace:Clone().Parent = ModelPreview
end
The model preview basically mentions the viewport then clears all of the models inside of it and then the ModelToReplace replaces the old model.
If there is any way I could get it to constantly update it without having to delete the previous model and replacing it please let me know!

1 comment
I cant really help with this since viewports are a pain and i dont know how the heck how you use them, but good luck!