How do I rotate the camera around my 3rd person character without having the character move as well?

I created a 3rd person character from scratch, he can move forward, backward, and ect. When I move my camera with my mouse, I want to be able to rotate the camera in front of my character and around him without the model moving with the camera, but once I actually start walking again, I want him to move with the camera, except on the Y axis. When Im walking and I look up with the mouse and move the camera, my character turns on the Y axis with my camera and I want the camera to move up without making the model move with it, but I want the model to move with the camera on the X axis. Please help, I know this is a newb question, but I am a newb lol. Thanks!

So, are you trying to have it so the character simply goes straight where the cameras X orientation is, and not deviate left or right unless told to do so? Sorry, just want to make sure I’m on the same page before I go rambling. Also, how did you setup the rotation of the camera around the player, if you’ve done so.