function Signal.Wait(g)local E=coroutine.running()local X X=g:Connect(function(...)X:Disconnect()task.spawn(E,...)end)return coroutine.yield()end

function Signal:Wait()
	local waitingCoroutine = coroutine.running()
	local cn
	cn = self:Connect(function(...)
		cn:Disconnect()
		task.spawn(waitingCoroutine, ...)
	end)
	return coroutine.yield()
end

