Hi,
You’re spot on, its not in the correct place.
Your code in the EnemyHealthBar script is looking for another component on the same GameObject of the type Enemy, e.g. your Enemy.cs script.
As you can see in your Hierarchy, your canvas has the EnemyHealthBar component but this isn’t part of your enemies.
If you add your EnemyCanvas to your enemy, along with the EnemyHealthBar script component it should then be able to find the Enemy component.
Quick question first though, are you following the course and adding the health bars to each enemy or, are you trying to add a UI where the enemy’s health is displayed, depending which enemy you are fighting?