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

1 comment
Forgot ")"