I tried many times to solve this problem, but I cant really make it. I know about client sided effects. But the big problem is hitboxes, cuz whenever im trying to make client sided combat, it causes many problems.
External MediaIf you want smooth combat and optimal responsiveness, you’ll have to handle hit registration on the client. Normally, raycasts are used, and there are plenty of raycast hitbox modules out there. They are pretty lightweight and dont affect performance much. You should then implement server-side checks, but handling hitboxes completely on the server is not good practice. It seems you are updating the hitboxes very slowly, like every 1–2 seconds, you could update it quicker, but once there are more people this can slow down the server.