function BrioUtils.extend(d,...)if d:IsDead()then return Brio.DEAD end local u=d._values local x={}for d=1,u.n,1 do x[d]=u[d]end local N=table.pack(...)for d=1,N.n,1 do x[u.n+d]=N[d]end local K=Maid.new()local l=Brio.new(unpack(x,1,u.n+N.n))K:GiveTask((d:GetDiedSignal()):Connect(function()l:Kill()end))K:GiveTask((l:GetDiedSignal()):Connect(function()K:DoCleaning()end))return l end
--[=[
	Makes a brio that is limited by the lifetime of its parent (but could be shorter)
	and has the new values given.

	@param brio Brio<U>
	@param ... T
	@return Brio<T>
]=]
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
