local y=false local k=script.Parent.Parent.TextButton local S=script.Parent function Clicked()if y==false then y=true k.Visible=true S.Text="\067\108\111\115\101"elseif y==true then y=false k.Visible=false S.Text="\079\112\101\110"end end S.MouseButton1Click:connect(Clicked)
-- LocalScript:

local Open = false
local Frame = script.Parent.Parent.TextButton
local Button = script.Parent

function Clicked()
	if Open == false then
		Open = true
		Frame.Visible = true
		Button.Text = "Close" -- Closes the Frame
	elseif Open == true then
		Open = false
		Frame.Visible = false
		Button.Text = "Open" -- Opens the Frame
	end
end

Button.MouseButton1Click:connect(Clicked)
