If you are willing to update the game, you can disable PuzzleScript's default restart by putting `norestart` in the prelude:
https://www.puzzlescript.net/Documentation/prelude.html
no, i do want people to still be able to restart, but only for the purpose of actually restarting it. thanks for letting me know though