my problem is that the sound wont play when Health reaches 0, i know its because of the queue_free() but i have no idea what else to do?? sry for a noob question but i have looked everywhere on the internet but cant find a solution.
When the node is destroyed, it takes all its subnodes with it, including the AudioStreamPlayer2D. You can solve it by playing the sound from other class that is kept alive. Try my solution from this post:
Okay so just to understand your example a 100% is the sound maneger its own scene that every other scene can access og is it just a node within the current scene?