Need help rotating a object around another using mouse

I have 2 empty objects that are the camera position, one for the first person and the other for third person, and now I’m trying to make the 3 person object to rotate around the player,and it needs to be the gameobject and not the camera to rotate around the player because the code I already have would break if I make this in another way, but I couldn’t find any video that really worked for my game, thanks in advance

Just make another blank GameObject that is your center of rotation, and rotate that object. Also make a SECOND blank GameObject that is parented to the first one and offset from it at the distance you want the camera to regard.

Use that second GameObject to place your camera, or parent your camera to it.