Any help please with script loop

i create a small script that make me hunter uniqs in 6 different area depended on attack area in my script but the problem is that the script dont repeated like i want cause the uniqs have a timer to appeared .
any ideas ?