function BasicPane.new(r)local X=setmetatable({},BasicPane)X._maid=Maid.new()X.Maid=X._maid X._visible=false X.VisibleChanged=Signal.new()X._maid:GiveTask(X.VisibleChanged)if r then X._gui=r X.Gui=r X._maid:GiveTask(r)end return X end
--[=[
	Constructs a new BasicPane with the .Gui property set.

	@param gui GuiBase? -- Optional Gui object
	@return BasicPane
]=]
function BasicPane.new(gui)
	local self = setmetatable({}, BasicPane)

	self._maid = Maid.new()
	self.Maid = self._maid

	self._visible = false

	self.VisibleChanged = Signal.new() -- :Fire(isVisible, doNotAnimate, maid)
	self._maid:GiveTask(self.VisibleChanged)

	if gui then
		self._gui = gui
		self.Gui = gui
		self._maid:GiveTask(gui)
	end

	return self
end
