My macro closes its self after a period of time

My macro works fine for a period of time but then closes itself and restarts on a new roblox window. This makes it off course and not able to get back to pine tree.
Was this page helpful?