I'm trying to create a store GUI and I really need the .visible to work.
MainBack.HatsButton.MouseButton1Down:connect(function()
MainBack.Visible = false
Hats.Visible = true
When I click the button (ImageButton) it doesn't do anything. It is very essential that it works.

1 comment
Could you post the entirety of the script?