The three words are theoretically synonyms, but in practice they are used differently. "Screenplay" is used exclusively for the written dialog of a movie. A "script" can be the written dialog for a movie or a stage play: this is what the actors work from when rehearsing.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.