local function R(l)if l and l~=workspace then local a=l:FindFirstChild("\072\117\109\097\110\111\105\100")if a then return l,a else return R(l.Parent)end end return nil end
-- Returns a character ancestor and its Humanoid, or nil
local function FindCharacterAncestor(subject)
	if subject and subject ~= workspace then
		local humanoid = subject:FindFirstChild("Humanoid")
		if humanoid then
			return subject, humanoid
		else
			return FindCharacterAncestor(subject.Parent)
		end
	end
	return nil
end
