Unsure what you're up to here; typically, something like this:
get_tree().change_scene("path") // or change_scene_to(PackedScene)
But you might also consider swapping scenes in a viewport using add_child(). Here's the documentation that may help:
https://docs.godotengine.org/en/stable/tutorials/misc/change_scenes_manually.htm...
Good luck!