var ticks = 0; Script.update.connect(function(){ if (ticks % 100 == 0) { print("Agent is running"); } ticks = ticks + 1; })