My character keeps laying the wrong way, Can someone help me

The issue is that you have to respot your character when she does the groggy animation and make her face right instead of left

Edit: Actually, just tested your script. No need to respot, just make her face right.