instance in godot 4.0 re5

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By BOX_Milk

hi
I wanted to ask how to create a node
in godot 4.0 re 5
tried
var instance = load(“res://item.res”)
var spawn = instance.instance()

but does not work
please HELP

:bust_in_silhouette: Reply From: xk

var instance = load(“res://item.res”)
var spawn = instance.instantiate()