what is difference between PackedScene.instance() and Node.duplicate()

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

what is difference between PackedScene.instance() and Node.duplicate()

:bust_in_silhouette: Reply From: kidscancode

A PackedScene is a resource object, which may contain the data representing a hierarchy of nodes, resources, and other data. Calling instance() on the PackedScene recreates that node hierarchy and its associated objects.

duplicate() is a Node method that returns a duplicate of the given node.