How to make Optimizated Combat

I want to make a combat system, but I know that I need to do it locally to be optimized and beautiful. What is the right thing to do?

do you want a gun or non gun (swords, kicking, punching) combat system?

like elemental battle tycoon tools

He probably means a client hitbox melee system. Can you explain how to go about this?