A scriptwriter is a person who writes scripts for films or for radio or television programmes. someone who writes the stories and words for films or television programmes = screenwriter playwright
{i} one who writes scripts, one who writes texts for plays (or films, television programs, etc.)