I think what PF developers did was casting rays in local script and manipulating hit part from server, but what if exploiter changed the position of ray origin part?
✓ ANSWER ACCEPTED
any idea how Phantom Forces deals with ray casting without delay between network communication?
1 answer
✓ Accepted answer
My guess is that in order to maintain immediate feedback, ray casting is done on the client with some extra data sent to the server. Then they probably have a server Script make some "sanity checks" and throw out any casted rays that seem unfit given the current context of the game (as seen by the server).
This discussion is preserved as it was. New answers, comments, and votes are closed.

1 comment
Well nice opinion.But i think the fact that most of the time there is a delay between one player shooting and other getting damaged, so maybe local ray cast is just for visuals of shooter