Toy Story was based upon previous published material.
Toy Story . The screenplay was written by Joss Whedon , Andrew Stanton , Joel Cohen and Alec Sokolow , based on a story by Lasseter , Pete Docter , Stanton and Joe Ranft .