Problem, officers.
So the first, measuring raycast goes out, finds a player standing still, 2000 studs away.
"Holy poop, that's a long way," says the raycast to the script, which then computes that statement to mean that the raycast will fire in 2 seconds.
Got it?
So then, as the delay occurs, a player moves into the way of the sniper, after he sees the gun fire, because he thinks he is safe. Then he dies.
No way to avoid that, unless you fire raycasts that go out, stop at a certain distance, then spawn another identical raycast in the same spot an instant later.
Which I think is a jolly good idea.