Use the Loop slider to specify the number of loop iterations to be performed when the script is played.