Line 13 (the function line) is erroring and says " ')' expected near '' "
a = script.Parent.Frame b = script.Parent function run() if a.Visible == false then a.Visible = true b.Text = "<" else a.Visible = false b.Text = ">" end script.Parent.MouseButton1Down:connect(run)
Try this:
a = script.Parent.Frame b = script.Parent script.Parent.MouseButton1Down:connect(function() if a.Visible == false then a.Visible = true b.Text = "<" else a.Visible = false b.Text = ">" end))