local function t(t,f,h)local x=f-t local g=Ray.new(t,x.Unit*math.min(x.Magnitude,999))return workspace:FindPartOnRayWithIgnoreList(g,h or{},false,true)end


local function CastRay(fromPoint, toPoint, ignoreList)
	local vector = toPoint - fromPoint
	local ray = Ray.new(fromPoint, vector.Unit * math.min(vector.Magnitude, 999))
	return workspace:FindPartOnRayWithIgnoreList(ray, ignoreList or {}, false, true)
end
