OnTriggerEnter doesn't work

Hi. My OnTriggerEnter doesn’t work. Can anyone help me?

You need to use other.gameObject and then checking the tag.
Now you are checking the tag of gameObject where this script is placed.

I tried it already. It doesn’t work

Add rigidbody.

Doesn’t work.

Have you added script to gameObject?

Yes, I have.

Try to change Y scale size. Also you can try to add rigidbody to enemy and player.
The big amount of problems already solved. You just need to find an issue by yourself.

Did you perhaps mistype the tag on the enemy? If the tag applied to the enemy gameobject is at all different from the string check (Lowercase, typo,) then it wont work.