Always include your new code because apparently you often make mistakes and we can’t predict those. We need to see your code to tell you where you made them. Also please remove your post consists only a “.”. Try not to spam the forum with nonsense posts, please.
You’ve made a few errors and a couple of atypical coding style choices.
The crux of the problem is that this is not a test of the property value. You are setting it to true. Single equal symbol for assignment, double equal symbol for testing equivalency. So CanEnemyBeHarmed == true. It wouldn’t be true however and since it is a Boolean you don’t need the == true part at all.
if(CanEnemyBeHarmed = true)
You need to recognize that a semicolon is the end of a statement and doesn’t belong in that if expression…
if(0 >= EnemyHp);
And typically you compare the value with something so EnemyHp <= 0 reads better.
Yet again this is another duplicate thread for the same issue here .
I can understand it can be frustrating when you start but please use a single thread and please use the Getting Started forum. I’ll move this thread and close the other.