Hitbox (or possibly the whole character) lags behind on client

I have a chasing mob with a hitbox.
The mob can damage the player and take damage from a large area in front of it for some reason.
When slowed the mob down, this problem did not occur.
Therefore, my guess is that the mob is way ahead of where it appears to be.
I don’t know how to fix this.


It’s because there is a server-client lag. You might need to make the hitbox of the mob smaller, and it should work better.

Doing that made it slightly better (or it may not have changed it at all) but I have only been able to make the hitbox a bit smaller
if it’s too small, it doesn’t hit at all because it’s blocked by the torso

Have the client calculate the hitboxes for their own attacks as well as enemy attacks.