How Do I Make The Robot Head Follow The Player Without Breaking It

My Issue is that Robot.rbxm (forgot sake download this) i want to make this file robot’s head look at the player something like this


and i have tried using

CFrame.new(Vector3,Vector3)

also the robot is a rig not just a part (duh) so please help me

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.