I'm a beginner so bear with me. I have made it so when I click a block a shop gui pops up. Now I want to close it with a text button. I want to use gui.Enabled = false in an if statement but i'm not sure exactly what to put in. Help would be appreciated.
This should work, if not please don't hesitate to contact me.
button.MouseButton1Click:connect(function() gui.Enabled = false end)