function Signal.Wait(S)local G=coroutine.running()local E local F=false E=S:Connect(function(...)if F then return end F=true E:Disconnect()task.spawn(G,...)end)return coroutine.yield()end

function Signal:Wait()
	local waitingCoroutine = coroutine.running()
	local connection
	local done = false
	connection = self:Connect(function(...)
		if done then
			return
		end
		done = true
		connection:Disconnect()
		task.spawn(waitingCoroutine, ...)
	end)
	return coroutine.yield()
end
