Here is the answer for my question
extends Area2D
export var SceneToMove = ""
var inside = false
var action = false
func _ready():
set_fixed_process(true)
func _on_Node2D_body_enter( body ):
inside = true
func _on_Node2D_body_exit( body ):
inside = false
func _fixed_process(delta):
if Input.is_action_pressed("ui_accept"):
action = true
if (action and inside):
get_tree().get_root().get_node("World").queue_free()
get_tree().get_root().add_child(load(SceneToMove).instance())
action = false