function Brio.GetDiedSignal(g)if g:IsDead()then error("\066\114\105\111 \105\115 \100\101\097\100")end if g._diedEvent then return g._diedEvent end g._diedEvent=GoodSignal.new()return g._diedEvent end
--[=[
	Gets a signal that will fire when the Brio dies. If the brio is already dead
	calling this method will error.

	:::info
	Calling this while the brio is already dead will throw a error.
	:::

	```lua
	local brio = Brio.new("a", "b")
	brio:GetDiedSignal():Connect(function()
		print("Brio died")
	end)

	brio:Kill() --> Brio died
	brio:Kill() -- no output
	```

	@return Signal
]=]
function Brio:GetDiedSignal()
	if self:IsDead() then
		error("Brio is dead")
	end

	if self._diedEvent then
		return self._diedEvent
	end

	self._diedEvent = GoodSignal.new()
	return self._diedEvent
end
