Simple Block System?

I’m currently trying to make a blocking (parry) system for my game. I’m a beginner scripter, and don’t quite know how to do this.
I’m trying to make it so the player can press E and block attacks with tools and such. This would basically just be the player has inf health until they’re hit enough times with a tool to break such block. How would i start with this?

1 Like

A simple way of doing this is to set a boolean value assigned to a player to be true or false. This bool value will be set once the player fires the event to the servers. When another player does an attack, you will read the bool value and if its true the attack won’t do anything

3 Likes

Attributes would be better since you can access them way faster

5 Likes