Hi.
Does the player only need to face left/right? or does it also needs to look up/down.
If only face left/right maybe you can just compare the raycast x position vs the players x position then if raycast x is greater, face right
and if less, face left