Raycasting Spread not working

According to this post Ray.new() is deprecated and you should use workspace:Raycast()