How can I get my AI to melee attack the player in behaviour tree?

Hey! So I had a look around and found a few tutorials for this, but none using the behaviour tree the way I would like. I have a melee AI which is working okay, but I can’t get it to damage the player. It plays the animation and moves to it fine, but doesn’t damage it. This is my node setup.

The first is the BT, the second is the “AttackPlayer” task, and the third is the part of the player blueprint which takes damage. I’m more of an artist, so ANY help with this is greatly appreciated and I’m always looking to improve. Thanks.

Got it! Changed the Cast To FirstPersonCharacter to a GetPlayerCharacter and it now works