--// adaptive headlights. dont touch!

local adap

function check(r,d) --check for oncoming humanoids or vehicles. adjusts accordingly
	local fp = workspace:FindPartOnRay(Ray.new(sen[r].RayEnd.CFrame.p,(sen[r].RayEnd.CFrame.p-sen[r].RayStart.CFrame.p).unit * d))
	if fp then
		local d2 = (sen[r].RayEnd.CFrame.p - fp.CFrame.p).Magnitude
		