Unable to flip player ingame

I am making a game where the player can switch between two gravity modes. There is the normal world, and the upside-down world, however, I have some trouble flipping the player when this mechanic is activated. I am able to flip the camera with the following script:

but when I try to flip the player I have some issues.
Script:

312308-game2.png

I used these separately and both of them rotate the player but they don’t really flip him.
This issue is caused:

note that the player does not appear to be touching the floor.

Is there a way to flip the player as a whole, and not rotating the entire world?