So basically i am creating a level in which you click the continue button when time runs out and depending on if you unlocked the next level you may need to re do the same level however when i go on the level again all my variables are the same as my last play and the end screen is still showing, i was wondering how i could create a system that would check for when the layout is exited or even entered and then it uses the system.restartlayout,
Thanks