click the flag to start and then type the time you want to play. for example: in seconds do not write '30 seconds' write only '30'. after that tap on the star where ever it is.
credit to my ICT teacher for teaching me and telling me all about scratch.