Godot Version
Godot 4
Question
so I have been trying to make pong for an embarrassing long time now, but got stuck trying to instantiate the ball back when it goes off screen and queu_free().
I got an @export PackedScene of the ball in the main scene script, and a VisibleOnScreenEnabler2D with a signal in the ball script.
I think I need to add a Timer node with a signal to make it happen.

here’s what’s got added in the scripts
main scene:

pingpong ball scene:

after instantiating you need to add it to your scene
try :
add_child(pingpong)
you should specify your code, scene, and your problem more.
I kind of solved it but it’s not spawning on a timer now.
what I wrote and change:

In the enabler signal receiver, have the script start a timer that is NOT a child of the ball that will be queue_free()ed, then queue_free() the ball. Then, in another script, when the timer goes off, spawn a new ball. That should work.
P.S. It would be helpful if we had a screenshot of your node list on the left.
I still don’t know how to instantiate a node well it just been queue_free()
you can instantiate a node before you queue_free or have a master script that instantiates the object once it queue_free