Need Help for Good method to validate raycast hits on moving objects/players? for gun system

title

rn im doing the raycast on the client then redoing it on the server but most of time its mismatch and dont hit the same thign ?

Whats a good method to do this

Maybe just checking if the shooter and hit target are close enough To client says and checking if the bullet going through anything else

1 Like

The new official roblox fps gun laser fps does an angle check between the server raycast and the direction vector of the target position.

Not exactly sure but you could check there its well commented.

2 Likes