I am using the function get_nodes_in_group
and sending the array to a function and returning 1 of the nodes.
I then create a new instance of an object and set one of it's variables to that node and add it to the scene. When the node from the group gets deleted, my new objects points to random things in scene. For example, a Tween node and an AudioStreamPlayer node. Why is it doing this, and how to I prevent it?
edit:
The variable has a [Deleted Object] that is eventually being replaced by new objects.