if you mean restart scene make a node 2d then add child (touchscreen or something like that ) then add a script to node 2d click touchscreen add signal if ..... Is pressed :
Get tree.rewind current scene
I dont remember it mostly but thats it
Thank you for trying to help ':)! I will search it up in the internet though so I know for sure if you are right.