The instructions are all in the project. If you need the color codes (they are also in the project) here they are: Color Code Red r Orange o Yellow y Green g Blue b Purple p Rainbow ra
I started out with a base script created by amcerbu (Thanks!) from this old forum: http://archive.scratch.mit.edu/forums/viewtopic.php?id=105051