whats the error in this bc my shop gui aint working
shopButton.MouseButton1Click:Connect(function() mainFrame.Visible = not mainFrame.Visible end)
shopButton.MouseButton1Click:Connect(function() mainFrame.Visible = false end)
You need to use false
shopButton.MouseButton1Click:Connect(function() mainFrame.Visible = false end)