How do I fix the height of my third person camera?

You don’t need SetupAttachment, and you probably can’t detach in the contructor. You would just have to try it and see what happens.

I’m guessing you have to wait until BeginPlay() to detach