I have a shop that I have scripted, everything works but, when a player joins or dies, the shop is open, here is the script of the shop on button:
script.Parent.MouseButton1Click:connect(function()
script.Parent.Parent.Parent.Parent.ShopGUI.MainFrame.Visible = true
print('Shop Opened!')
end)
I would appreciate it if the answer could be a part of this script, but anything is appreciated, thanks!

2 comments
I changed the script to that, but when I click play, the shop is open when I join
Purhaphs your path is wrong, check it