player health script and enemy attack

I have created floor,player,Enemy.
what I need is that Enemy to attack the player and I have watched alot of youtube lessons.
but nothing is working.
Think its cause they do something that they dont show.
When I add healthstatus script on player and run game it says fix all compiling errors.
can some one write or send link of tutorial how to add script with health on player.
and also make enemy attack me.

If you still didn’t get it, show what you have tried and what does not work.