how do you rotate the camera around the player?

what the title says.

im making a 3rd person game, and plan to have the camera rotate around the player. like most 3rd person games do. i want the player to control the movemet, so the camera dosent rotate by itself or in the same direction endlessly… e.g: :spin:

ive tryed but so far all the camera dose is rotate on the spot and not the player… :frowning: