Hal is a major protagoinst in this film and is revived by once the Leonov reaches Jupiter, and prepped for his new mission of piloting the Discovery One back to earth. However, due a change of plans caused by TMA-2's disappearance, the crew of the Leonov is forced to leave the Discovery and Hal behind. Just before Jupiter explodes, becoming a star, Dave goes to Hal to send a message: "ALL THESE WORLDS ARE YOURS. EXCEPT EUROPA. ATTEMPT NO LANDINGS THERE." Hal is then saved from destruction at the hands of Jupiter as per Dave's will, and is transformed into a Star Child like Dave.
The script went through many stages. In early 1965, when backing was secured for the film, Clarke and Kubrick still had no firm idea of what would happen to Bowman after the Star Gate sequence. Initially all of Discovery ' s astronauts were to survive the journey; by October 3, Clarke and Kubrick had decided to leave Bowman the sole survivor and have him regress to infancy. By October 17, Kubrick had come up with what Clarke called a "wild idea of slightly fag robots who create a Victorian environment to put our heroes at their ease."  HAL 9000 was originally named Athena after the Greek goddess of wisdom and had a feminine voice and persona.