No need to restart the scene, that is similar to using
get_tree().reload_current_scene() which will literally really restart the whole thing, you can "restart" the scene by using your own methods.
To teleport a player to a target position, you can simply change the node's "position" property.
If you have different levels that are different scenes, which means that just changing the position won't work, you need to have methods like
go_to_level(level), or something like that to keep things organized.
When player dies, if you want it to go back to the beginning of the level, use method
level_start(), or whatever your method's name is.
If you want to go to a different level, call
So, if you didn't create some methods or similar methods, go and add them. When the game start, use
level_start(1) instead of functions like