Could it be Westworld ? https://en.wikipedia.org/wiki/Westworld.
Westworld is a 1973 American science fiction Western thriller film written and directed by novelist Michael Crichton about amusement park androids that malfunction and begin killing visitors. It stars Yul Brynner as an android in a futuristic Western-themed amusement park, and Richard Benjamin and James Brolin as guests of the park.
The film served as Crichton's first theatrical feature. It was also the first feature film to use digital image processing, to pixellate photography to simulate an android point of view. The film was nominated for Hugo, Nebula, and Saturn awards.
Westworld was succeeded by a sequel, Futureworld (1976), and a short-lived television series, Beyond Westworld (1980). A new television series from HBO, based on the original film, debuted on October 2, 2016.