I have a frame name "G" output: G is not a valid member of ScreenGui
script.Parent.MouseButton1Click:connect(function() script.Parent.Parent.G.Visible = true script.Parent.Visible = false end)