Health_Bar Array not working

here:

As you can see, you have two player nodes each running your player script. The first one doesn’t have any children so the path you assigned to health_parent is incorrect, resulting in null reference.

This all happened because you’ve set up the script as an autoload. Look in the docs what exactly happens when you “make a script global”:

how to fix that

Un-autoload the script.

thank you

1 Like

Make sure to read up on autoloads and understand how they work, to prevent similar problems in the future.

1 Like