BTW way here is the script.

Its weird it works perfect on my laptop but not on the machine computer although I have the settings the same (as far as I can tell). The machine computer is not making the requested tool in the Gcode the current tool quick enough for the message to reflect the new current tool and it still asks for the old current tool (whatever the number in the box is). Anyone know what I can do?