Raycast gun problems

Im working a raycast gun and having serious problems with hit detection, the raycast seem to lag behind the players and make aiming incredibly hard on moving targets. Ive tried setting characters to Network owner nil and it didnt help, heres a gif:

1 Like

Try doing the hit detection process on client-side.

3 Likes

Do you have any link to a post that explains how? i am really not familiar with that kind of stuff

This is the best solution, as long as you take the appropriate measures.
I’d personally have it raycast, fire and hit detect on the client, and check if everything is good on the server.