I think the script that you've adjusted will work but just for clarification:
The script needs to be able to do an actual Game Over to the player sending them to Title screen, while at the same time be able to transfer all switches/variables/players data to the save that player opens thinking it's their last save made.
(in my case) Since it's a time loop mechanic, the player would be sent to control map, where everything would be set up for the next loop, and then replay the last happened events with alterations made with transferred switches/variables.