My hitbox its not that acurate

Hello.

So my problem is that i am trying to create a move for my game that uses body position to dash and damages any character that gets in the way.

The problem is about the hitbox, when the move is used it looks perfect in the screen of the player that used the move, but from the other players screen sometimes the hitbox seems way off.

Also i used a local script to handle the hitbox and region3 for the detection.

It seems like the other players see the player that used the move with a delay, because it has that delay the player can walk away some time to escape and when the player gets hit after that delay, it seems as the hitbox its way off.

Also i want to note that the script doesnt have any wait or delay in it.

Sorry if its not clear what my problem is, please consider asking me any questions you may have.

Any suggestions whould be greatly appreciated!!!

Try setting its Network owner to nil, and see if that works.

1 Like

Try using a server script to handle the hitbox.

1 Like

Using a local script to handle hitboxes would allow exploiters to manipulate it very easily and break your game, ensure its at least validated by the server.

Clients aren’t always 100% synced, which in some cases you see people behind more than they actually are. This is probably the problem you’re currently facing in which unfortunately the best you can do is optimize it.

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.