How to create a restart game code

I got made a game but I don’t how to made a restart code for my game. The game is that dodging game .

Post the game so we can help you.

just add gotoandstop(1) and it will go to the first frame but not really restart it as the update script stuff will still be in the same position