Revisit
The animated Star Trek episode "Once Upon a Planet" involved the Enterprise returning to the amusement park planet for another rest. However, the caretaker has died, and the computer left to run the planet, a fairly intelligent machine, now resents its role as servant, and turns against visitors using the props and personalities the visitors think about.
Read more about this topic: Shore Leave (Star Trek: The Original Series)