Hello, I am needing help with this Open/Close button for my GUI. This is my current script:
script.Parent.MouseButton1Click:connect(function()
if script.Parent.Parent.Frame.Visible == false then
script.Parent.Parent.Frame.Visible = true
script.Parent.Text = "Close"
if script.Parent.Parent.Frame.Visible == true then
script.Parent.Parent.Frame.Visible = false
script.Parent.Text = "Open"
end
end
end)
It isn't working when I go in test mode and click on it.
Can you help me?

2 comments
The question is quite broad. Post more information. Script type? Location?
Ok, The script is a normal script, and It's in a textbutton in a startergui.