I have noticed that a few users wanted a try again script. I think I have solved it.
1. Make a timer not enabled at the start of the game. It's interval should be 1 seconds (In this tutorial it is named tryagain)
2. Set the room the player starts out in as an attirbute. (In this tutorial it is named oldroom)
3. For the timer script:
If player is in room [expression] [player.oldroom]
Then
Disable timer [tryagain]
Else
Undo one transaction
Now whenever you want the player to try again, enable this timer.
NOTE: This may not work. Feel free to tell me any issues.