Theoretical blocking system

i came up with idea of how to do a blocking / parry system.

i am using raycast hitbox v4 so if another player blocking then a hitbox (part) will be enabled infront of them and if the hit from ray hitbox is this part then it will have if statement and damage posture or something instead. I was just wondering if this is a good idea or not. i will probably have thing like parrying and blocking manage on the client who is blocking and then getting hurt by other player manage on other player client. and send on server with distance checks and damage checks to validate. i think things like parrying should be handled on the client who parrys but at the same time idk.

the reason for this is because i do not want players to be able to block attacks even though the attack was from behind