How could I go about switching gravity and rotating my player to match the new gravity?

Hey guys! I’m starting a project that requires a switch of gravity from normal to inverse (Instead of going down, you would go up). I seem to be having some problems getting this gravity to affect the player. Additionally, I would like the player to flip over when the gravity is switched so his feet will always be faced in the direction that he is falling. Is there a way to accomplish this effect? Any help is very much appreciated! Thanks so much!