function BrioUtils.extend(j,...)if j:IsDead()then return Brio.DEAD end local L=j._values local u={}for j=1,L.n,1 do u[j]=L[j]end local a=table.pack(...)for j=1,a.n,1 do u[L.n+j]=a[j]end local P=Maid.new()local b=Brio.new(unpack(u,1,L.n+a.n))P:GiveTask((j:GetDiedSignal()):Connect(function()b:Kill()end))P:GiveTask((b:GetDiedSignal()):Connect(function()P:DoCleaning()end))return b end

function BrioUtils.extend(brio, ...)
	if brio:IsDead() then
		return Brio.DEAD
	end

	local values = brio._values
	local current = {}
	for i=1, values.n do
		current[i] = values[i]
	end
	local otherValues = table.pack(...)
	for i=1, otherValues.n do
		current[values.n+i] = otherValues[i]
	end

	local maid = Maid.new()
	local newBrio = Brio.new(unpack(current, 1, values.n + otherValues.n))

	maid:GiveTask(brio:GetDiedSignal():Connect(function()
		newBrio:Kill()
	end))

	maid:GiveTask(newBrio:GetDiedSignal():Connect(function()
		maid:DoCleaning()
	end))

	return newBrio
end
