Why is the node not found in the scene -> <Object#null>

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

The script is attached to the root node in the scene

It works when I start the scene alone
But when I add the scene to another one with add_child the print displays “Object#null”