Combat System Suggestions

I’m not necessarily new to this, I just don’t know how to word it. I’ve made entire combat systems before, but just didn’t enjoy them. They didn’t feel smooth how I wanted them to feel and didn’t feel as combat like. The whole system was prone to bugging. The scripts were clunky and messy, and nothing was refined.

I wouldn’t say I’m looking for a PERFECT combat system, just some suggestions or help on what I should use to make – EX –

Stuns
Hitboxes
Status – Such as Blocking, Parrying, I Frames, and what not.

I usually make stuns with remote events sent to the client,
and Status I use module tables. Though it gets very messy after a while of using it. I just want to know if there’s a simpler way of going about checking Status.

Im currently also working on a combat system and I’ve recently had the same problem that youre experiencing, the code gets way too messy and too annoying to fix if anything goes wrong, my solution to this was to implement another module with the conditions for each action so that it all could be changed from one location. (Also makes the main code look less chunky)

EXAMPLE:

In order to block, these conditions need to be met

not attacking
not stunned
not ragdolled

(If you can provide a more specific example of what youre dealing with I can give better feedback)