Camera movement and crazy rotation depending on the player's tilt

Hi I’m making my camera move correctly on the yaw axis based on the player’s current rotation. I’m using control rotation yaw for my actor’s rotation. My actor’s tilt relative to the surface can change, and my mouse inputs need to move the camera in a direction parallel to the surface I’m on. For this, I took my camera out of my actor and turned it into a free camera, but it is still connected to my character as a location. then I adjusted my mouse inputs to 0,0,0 with Delta Rotator. I realized that in order for my camera to move properly, I need to adjust the rotation of the actor with the combine rotator. but in this case it spins because both my actor is spinning and my camera is spinning. Do you have an idea? I don’t know how else I can achieve this.