This question already has an answer here:
There's a movie, that I watched in the mid 90's, with a scene where a killer robot wears the face of the friend of the main character.
The scene I remember is on a planet e.g. the moon, and that the main character is in a white dome like structure hiding from the robots. The robot walks by with the friend's face on and peers through the little window on the door of the dome. The robot was a metal structure with long metal legs and only the face was human.
I thought it was Screamers, with Peter Weller, but I've just watched the whole thing and it did not happen.