click the green flag not on the stage to generate script. click the green flag on the stage to run script.