function Brio.GetDiedSignal(Q)if Q:IsDead()then error("\066\114\105\111 \105\115 \100\101\097\100")end if Q._diedEvent then return Q._diedEvent.Event end Q._diedEvent=Instance.new("\066\105\110\100\097\098\108\101\069\118\101\110\116")return Q._diedEvent.Event 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.Event
	end

	self._diedEvent = Instance.new("BindableEvent")
	return self._diedEvent.Event
end
