How do I make the hitbox server sync with the client?

What should I do to sync with the client? I can’t think of how to do it.

this post is rather vague. are u asking if the positions should be synchronized or if the timing should be synchronized? if u want the positions to be in sync, i recommend taking the player’s movement direction and project their position forward in that direction when making a hitbox on the server. despite this, latency and input delay are inevitable.

1 Like

Your character position is delayed on the server. If you’re sending a hit request from client, you could allow a small “tolerance” by allowing the hit if the position on the client is not too far off from the position on the server.

1 Like