Optimizing melee hitbox

Hello!

I am making a fighting game with a lot of weapons, and the main one’s are melee. The way they work now is that each melee has a hitbox welded to it, and each melee weapon has a script inside of it to deal damage.

There is no “real” problem with this, but I feel like there is a much better way to optimize this, probably with module scripts, does anyone know how?

You could use RaycastHitboxV4 for the hitbox, and bytenet or bridgenet for client-server communication

Or if you prefer more traditional hitboxes, use workspace:GetPartBoundsInBox() or workspace:GetPartBoundsInRadius()