I don’t know how your robot is rigged, but you can try checking out these tutorials or searching for other such similiar tutorials on youtube.
While these tutorials are using look direction of a players camera (among other things), you can adjust them so that you use the the relative direction of the player’s head to the robot’s head.