I got a shop GUI for my new game and it dosen't work. This is how my explorer looks like
SHOPGUI> LocalScript Open> Frame> Buy> Close
game.StarterGui.ShopGUI.Open.Frame.Visible = false
local of = game.StarterGui.ScreenGui.Open
local cf = game.StarterGui.ShopGUI.Open.Frame.Close
of.MouseButton1Click:Connect(function()
game.StarterGui.ShopGUI.LocalScript.Shop.Frame.Visible = true
end)
cf.MouseButton1Click:Connect(function()
game.StarterGui.ShopGUI.LocalScript.Shop.Frame.Visible = false
end)
That is my script. Please do not change it completely but also show errors and common mistakes. Thanks!

6 comments
Is this a Server Script?
Nope
It is inside the GUI
What Gui?
SHOPGUI ! Have you read it?
Hey, can u read the comments of my answer?