f = false
MouseButton1Click:connect(function() if Script.Parent.Text="Menu" then Script.Parent.Parent.FindFirstChild.Visible=true
Script.Parent.Text="Exit" then Script.Parent.Parent.FindFirstChild.Visible=f end
Can someone help me understand this error?
if Script.Parent.Text=="Exit" then Script.Parent.Parent.Visible=f end
You forgot your 'if' and you were also using a single equals to compare. You must use a double equals sign to compare values.
Also, I have no clue if you have 'f' defined or not.