3rd Person Camera - Best way to automatically have it adjust pitch

when i select “use control pawn rotation” the code dont works, the camera isn’t moving