Raycasting, getting a player when a Ray hits them

Could you please send me the full code? i need to do basically the same, but the solutions didnt work as i followed them.

2 Likes