Blocking holy blocks from the front

I’m currently working on a melee system for my group and I need blocking system. I made a base verison when you hit the player it checks a value in the player to check if he’s blocking. This does prevent the player from getting damaged. But the problem is you can go behide the player where the gun isn’t blocking and it won’t do damage. How can I go about making a system that only will prevent damage if the blocking value is true and checks if you hit the from side of the player so it prevents damage. Any help loved

1 Like

You could use create a Region3 in front of the defensive player, and see if the attacking player is inside of it using FindPartsInRegion3().You could also do this alternatively Ray’s.

DM me if you need further help with your blocking system :smile:.