local P=false local Y={}function Y.ManipUI(Y)P=not P MainFrame.Visible=P end function Y.Setup(r,P,Y)Button=P MainFrame=Y.MainMenu Button.MainToggle.MouseButton1Down:Connect(function()r:ManipUI()end)end return Y

local isOpen = false

local MainMenuOpen = {}

function MainMenuOpen:ManipUI()
    isOpen = not isOpen 
    MainFrame.Visible = isOpen
end

function MainMenuOpen:Setup(UI, Main)
    Button = UI
    MainFrame = Main.MainMenu

    Button.MainToggle.MouseButton1Down:Connect(function()
        self:ManipUI()
    end)
end

return MainMenuOpen
