My Character isnt Flipping properly....HELP!

If you’re going to post code on the forums please use code tags to make it readable: Using code tags properly

Second, You’ll have to explain exactly what behavior you’re looking for. You said your character doesn’t flip to face the direction you want, but you haven’t explained what that direction is or when you want the flipping to happen. It’s hard to help without knowing that information.