I know, but the client raycast will be much quicker and thus will not be prone to lag (if I do it on the server, people with high server latency will essentially not get registered kills, or at least it will not be instant).
The server is for verifiying in a worst case scenario where a hacker has hacked the raycast.
have a raycast on the client which is seen visually by that client (bullet trails etc) so that their is accurate and doesn’t have a huge delay
then have the server create a raycast of its own which will be reliable, and show other players that raycast, and damage based off of that raycast, no need to remove then add on damage, just determine if the damage should be dealt in the first place on the server