I am trying to make a camera system that changes to gravity, why is this not working?


I’m not quite sure why this isn’t working? I was using pawn control rotation before however that didn’t adapt to the local camera.

For context, I am trying to make a system where the player switches gravity any time they touch a surface.
The gravity switch works, but the problem is that the camera and wasd controls do not change to the gravity, and I can’t figure out how to fix these 2 issues.
Can somebody please help me?