local function M(n)if n and n~=workspace then local e=n:FindFirstChildOfClass("\072\117\109\097\110\111\105\100")if e then return n,e else return M(n.Parent)end end return nil end local function n(M,n)for M,e in pairs(M)do if e==n then return true end end return false end
-- Returns the ancestor that contains a Humanoid, if it exists
local function FindCharacterAncestor(subject)
	if subject and subject ~= workspace then
		local humanoid = subject:FindFirstChildOfClass("Humanoid")
		if humanoid then
			return subject, humanoid
		else
			return FindCharacterAncestor(subject.Parent)
		end
	end
	return nil
end

local function IsInTable(Table, Value)
	for _, v in pairs(Table) do
		if v == Value then
			return true
		end
	end
	return false
end
