Try removing the system.gui.messageBox
or moving it to the end of the script. Nothing about your script looks wrong from what I can tell.
Try removing the system.gui.messageBox
or moving it to the end of the script. Nothing about your script looks wrong from what I can tell.