Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How do i open and close a shop gui?

Asked by 2 years ago

whats the error in this bc my shop gui aint working

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

2 answers

Log in to vote
0
Answered by 2 years ago
shopButton.MouseButton1Click:Connect(function() mainFrame.Visible = false
end)
Ad
Log in to vote
0
Answered by 2 years ago

You need to use false

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

Answer this question