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


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)
