Hello! Thanks for clicking in to this post. I am wondering how to make my Minecraft style sword.The hit detection is good when the target is not moving . However, when the target start moving , it is super hard to hit
Is your raycast on the server or client?
I use server side as i have no idea how client side work safely
You should do raycasting on the client and send the instance result to the server so the server makes it valid and damages the other player.
Wait but how do i ensure that the hit is true? I tried it and failed
Interesting. If this doesn’t work for you, then send the position of the sword over to the server when it’s activated.
Ok I use the sword position to origin for the raycast part. It defiantly did improve the hit detection but it is still quite bad