godot create node from script code example
Example: godot instancing scene through gdscript
var scene = load("res://scenes/MyScene.tscn")
var scene_instance = scene.instance()
add_child(scene_instance)
var scene = load("res://scenes/MyScene.tscn")
var scene_instance = scene.instance()
add_child(scene_instance)