ScreenGui
├── Frame
├── TextLabel
├── TextButtonlocal frame = script.Parent
-- Переключение видимости
frame.Visible = not frame.Visiblelocal button = script.Parent
local frame = button.Parent.Frame
button.MouseButton1Click:Connect(function()
frame.Visible = not frame.Visible
end)