you need to make a variable and name it “ID” set the ID variable to “clone” right before you create a clone and set it back to “sprite” after you done with cloning
also you can repeat this cycle as many times as you want by using “repeat (times) ” block
next, when the main script runs you have to add “if ID = sprite(or clone)” then create clone of myself
dont forget to initialize ID variable to sprite whern flag clicked