Block System Help

This is… really messy code. And I meant that in the sense it’s very difficult to understand what the code is doing and through what methods. There’s

What I’d do is have a table for each attack direction, and when the swing function is called, it takes the attack direction’s variables (such as time, endlag, damage, animation, ect). This would save the need for a new function per attack direction.

For damage and blocking I would use a module script to store the current block direction, as well as the general damage function. If the target is blocking, then additional checks are performed when hit to see if the condition are right to actually block the attack. I have a guide here for module scripts such as these.

1 Like