It would be a problem. Main is a loop. When the game is ran, it loads scripts from top to bottom so its going to hit main before mine. When it hits main, it loops and updates $scene until it becomes nil. After that it would then hit my script, then close. Thats what happens to any script put below main.