So I have a scene called enemies.tscn and in it I have a bunch of Node2Ds with a Sprite node and an AnimationPlayer.
And in my main scene I have a Node2D which duplicates one of those in the enemies.tscn with of course all its children.
Now, in my AnimationPlayer I have an animation with a CallFunc track that calls a funciton in the enemies.tscn script that prints an string, but for some reason when the animation is called it does not call the function at all, and nothing happens. The animation is called from the duplicated Node2D if that matters.

Any idea why?