So, basically I was busy making some GUIs today, and I was thinking about making a shop, so I added a TextButton on the right, that said 'Shop' when you clicked it, it was supposed to open a frame with contents in it, along with a TextButton at the top right of that frame 'X'. Here is the script:
NOTE: This is a LocalScript, inside of the open TextButton.
local open = script.Parent
local shop = script.Parent.Parent.Frame
local close = script.Parent.Parent.Frame.Close
open.MouseButton1Click:Connect(function(open)
shop.Visible = true
end
close.MouseButton1Click:Connect(function(close)
shop.Visible = false
end
Any idea why it doesn't work?

3 comments
Sorry that I couldn't format it right.
Can you format it??? its not that hard
I'm having the same problem.