How to make a script refresh every 5 minutes?

How would you make a script refresh every 5 minutes? It is for a live web cam.

BIkebreck

function DoSomething(){
   while(true){
      // Do Something
      yield WaitForSeconds(300);
   }
}

coroutine that yields for 5 minutes or invokerepeated with a 5 minute time offset

were does the code go?

Hey!
don“t be so lazy :wink:
you got som nice ideas, now try to do something meaningful with them.