local plr = game.Players.LocalPlayer
local function close()
game.Players[plr].PlayerGui.level.Frame.Visible = true
game.Players[plr].PlayerGui.Shop.Shop.Visible = false
end
script.Parent.MouseButton1Down:connect(close)
When I pressed the button...the "script.Parent.Parent" becomes invisible, but the "game.StarterGui.level.Frame" doesnt become visible, but I want it to be visible? Please help? Thanks
I get this error "Players.Player1.PlayerGui.Shop.Shop.Close.Script:4: bad argument #2 to '?' (string expected, got Object)"

1 comment
you need to acces the player gui not the starter gui, game.players.[playername].playergui ect