Time-loop in rpgmaker, how to make it work?

Just explain the situation and I can try to come up with something.
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.
the script that you've adjusted will work
I actually made it from scratch.

Well try the script I just made. Turn the switch on and set up the variable with the data for the map transfer. Then do a game over. Everything that would be saved in a normal save game is saved and the player will start at the location you specified in the variable. The player sees a game over and then is transferred to the title screen just as you stated.

As for the rest of it...
where everything would be set up for the next loop, and then replay the last happened events
that's for you to figure out.
I actually made it from scratch.
Oh right, apologies. Thank you for taking time from your day to make it.

Well try the script I just made. Turn the switch on and set up the variable with the data for the map transfer. Then do a game over. Everything that would be saved in a normal save game is saved and the player will start at the location you specified in the variable. The player sees a game over and then is transferred to the title screen just as you stated.
Alright, I'll test it out and edit this if something goes wrong.


EDIT:
The script is working really well, thank you for support! (I will credit you for the script accordingly)

Original thread: https://forums.rpgmakerweb.com/threads/time-loop-in-rpgmaker-how-to-make-it-work.144577/