-----------------------------------------------------Raycasting functions


function raycursive(start,dir,ignore)
	newdir = (start+dir)-start
	local a,b = workspace:findPartOnRay(Ray.new(start,newdir.unit*999.999),ignore)
	if a then
		if not a.CanCollide and (a.Name ~= "Left Arm" and a.Name ~= "Left Leg" and a.Name ~= "Right Arm" and a.Name ~= "Right Leg") then
			return raycursive(b,dir,a)
		else
			return a,b
		end
	else
		return a,b
	end
end
