When I click the TextButton, the Frame does not go invisible. Dont worry about getting the parents to guis.
Clicked = script.Parent.MouseButton1Down script.Parent.MouseButton1Down:connect(function(Clicked) if Clicked then script.Parent.Parent.Visible = false end
Well, MouseButton1Down isn't a bool value, so you can't put an in statement using it. It's an event that's fired.
script.Parent.MouseButton1Down:connect(function() script.Parent.Parent.Visible = false end)