How to script camera movement in a viewportframe?

Hey there i was trying to make it so the player is able to rotate their camera around a model in a viewport but im not sure how to do it figure you would need a script or something

Is their some easy way to do this or would it need a complex script; im pretty clueless

Any help would be great!

How about rotating the model in the viewportframe? lol

I see what your saying however i need it for the player to rotate it themselves, is it possible?