Yes you might remember me, the guy who made the border game. My PC was reset due to a ransomware virus but thats not what I'm talking about here, it's just to let you know.
Now, moving on to my problem. Basically I am trying to make it so the Text button can reach from the control frame to the TeamsFrame, means when I click the GUI in-game (team button) It will show the GUI, and close once clicked again. !enter image description here Now I'll show the script, this is a normal, not a local and this was an attempt, I am not sure about the top line.
local frame = script.Main.Main.TeamsFrame function onClick(mouse) if frame.Visible == true then --CloseOpen.Text = "O" frame.Visible = false else frame.Visible = true --CloseOpen.Text = "C" end end script.Parent.MouseButton1Click:Connect(onClick)