How to make drag camera movement?

How would I go about making one? If you don’t know what I mean by “drag camera movement”, I mean that you move your camera by holding your right click and dragging, causing it to move (similar to pixelplanet.fun, but in the website it’s left button instead of right).

I mean i never seen something like that before but My take would be to detect when they right click using User Input Service and get the location of their Mouse, track their mouse movement and then change their Camera.CFrame to the new CFrame.

If you need furthur help I can try and write a script. But attempt it yourself! Good luck!

I can give you the script, it works exactly like on the website but my friend wrote it so I won’t be able to explain it.

Can you show?
45678901234567890