Ad
Log in to vote
0

How do i open and close a shop gui?

Asked by 1 year 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 1 year ago
shopButton.MouseButton1Click:Connect(function() mainFrame.Visible = false
end)
Ad
Log in to vote
0
Answered by 1 year ago

You need to use false

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

Answer this question