The script is basic, it creates a hitbox in front of the character. But this happens. I think it is because physic is faster than the cframe?
The script is basic, it creates a hitbox in front of the character. But this happens. I think it is because physic is faster than the cframe?
Did you create hitbox in server script? It won’t make that much difference when just handling one object so.If server script then make it local.
Latency is always present in some amount when communicating from client to server and vice versa.
You could take the velocity of the player into consideration when positioning the hitbox, but there will always be some sort of error generated by latency.
Don’t allow the client to control where the hitbox is placed, as that’s an incredibly easy way to open up your experience to exploits. Of course, always validate information through the server to make sure it’s accurate and correct.
1 Like