Taking online courses on Coursera can help you learn the basics of script writing or help you understand some of its elements. You can also take general creative writing courses. A course about writing a screenplay for film or television can help you learn how to write a feature-length script.