Attempting to implement a directional blocking mechanic.

Where is this script? Because this should be location of the enemy:

If you have the direction of the attack as you mentioned above, you don’t even need to calculate it.