So I have Folder holding a from called 'Container' (which hold all kinda of text buttons. And I have textbutton with this script in it (it is a local script). The frame only becomes visible in studio.
local player = game.Players.LocalPlayer
local Container = script.Parent.Parent.Container
script.Parent.MouseButton1Click:connect(function()
if Container.Visible == false then
Container.Visible = true
elseif Container.Visible == true then
Container.Visible = false
end
end)

1 comment
what was the point of putting player lol