Plz help. how to rotate camera around player?

I cant figure out how to get the camera to rotate around the player, been trying for the past few days. I have the camera as a 3D box behind the player. I can move the camera left, right, up, and down. I know I can use the 3rd person extension on the player to have the camera rotate around the player but when I do that I cant get the movement of the player the way I want it. I tried to use (look at an position from a distance) but when I do that it just snaps to the position. so how do I get the 3d-box(camera) to rotate around the player.

this is what I have right now

It looks like the problem is that the second event is resetting the camera position, and then the last event changes the angle. by an amount. But because it’s constantly being reset, it’s only every moving the same amount and to the same position every game frame.