function BasicPaneUtils.observeVisible(U)assert(BasicPane.isBasicPane(U),"\066\097\100 \066\097\115\105\099\080\097\110\101")return Observable.new(function(H)local X=Maid.new()X:GiveTask(U.VisibleChanged:Connect(function(U)H:Fire(U)end))H:Fire(U:IsVisible())return X end)end

function BasicPaneUtils.observeVisible(basicPane)
	assert(BasicPane.isBasicPane(basicPane), "Bad BasicPane")

	return Observable.new(function(sub)
		local maid = Maid.new()

		maid:GiveTask(basicPane.VisibleChanged:Connect(function(isVisible)
			sub:Fire(isVisible)
		end))
		sub:Fire(basicPane:IsVisible())

		return maid
	end)
end
