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