Camera Rotate Around Object With Mouse Drag - HELP

Hey guys! I’m new to scripting and I’m in need of some help. I’ve been trying to make a script that would let me rotate my camera around a game object in the X and Y axis (Depending on mouse movement) using a “Click and Drag”. I would like to note that I’m most familiar with JavaScript. (Also, if it’s possible to implement velocity, that would be greatly appreciated! But, it’s not really important at this stage.)

Thanks!
Gabe

if ( Input.GetMouseButtonDown( 0 ) )
{
mouseClickjudge = true;
}
if ( Input.GetMouseButtonUp( 0 ) )
{
mouseClickjudge = false;
}
if ( mouseClickjudge )
{
transform.RotateAround( bottom.position, bottom.up, Input.GetAxis( “Mouse X” ) * cameraRotateSpeed );
}