It's simple. Use the left and right arrows to move the magic carpet and SAVE THE PEOPLE!!!!!!!!! If ten people die then the game is over.
I used AmazingGameDesigners origional script and changed it so that when 10 people die the game stops. Credit to amazinggamedesigners for the origional idea.