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)"
--Script needs to be a local script local plr = game.Players.LocalPlayer local function close() plr.PlayerGui.level.Frame.Visible = true plr.PlayerGui.Shop.Shop.Visible = false end script.Parent.MouseButton1Down:connect(close)