 Potato Head recordings – from the previous three films, the Disney theme parks, and the "Toy Story" video games – to use as the character's lines for the fourth film.According to director Josh Cooley, an editorial team "logged every word, every cough, every hum, just so we'd know what we had".Cooley worked with the film's screenwriters Andrew Stanton and Stephany Folsom to write general lines for the character and then looked through the database of archived recordings to find a suitable dialogue match.