instancing a scene godot code example
Example 1: godot instancing scene through gdscript
var scene = load("res://scenes/MyScene.tscn")
var scene_instance = scene.instance()
add_child(scene_instance)
Example 2: instancing in godot
var objinstance = load("res://pathtoobject.tscn").instance()
add_child(objinstance)