Rotating the player camera

In the “AttachTo” function, your attach type is “Keep World Position”. That means it’s going to keep the relative location & rotation offsets that it has at the moment you attach. Assuming you want the exact same location & rotation as the capsule component, you can use the Snap To Target attach type.