Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

How do i open and close a shop gui?

whats the error in this bc my shop gui aint working

shopButton.MouseButton1Click:Connect(function() mainFrame.Visible = not mainFrame.Visible end)

2 answers

✓ Accepted answer
shopButton.MouseButton1Click:Connect(function() mainFrame.Visible = false
end)

You need to use false

shopButton.MouseButton1Click:Connect(function() 
  mainFrame.Visible = false
end)

This discussion is preserved as it was. New answers, comments, and votes are closed.