Animation Montage not working properly

Hi I am following your course on udemy and facing an issue .

I have setup till end of Animation montage section , but the problem is spider is coming till player and not attacking when i move the player it attacks once and then again stops . Can you help me with this.

Sounds like you might have your attack range backwards. Make sure you are checking that the distance to the player is less than and not greater than.

While it sounds like David has the right answer, it would be great if you could share a screenshot of your IsWithinAttackRange function so we can confirm.