How I make this in studio? (Spin something with the mouse)

How do I do this?:

I want to make this effect for a paper and be able to examine it but I have no idea how to do it :sweat_smile:
(to rotate I use the mouse (Right Click) )

does anyone know how it works?

This involves a Viewmodel Gui object along with a camera inside it.