Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

then expected near = ?

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?

1 answer

✓ Accepted answer
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.

1 comment

0

Thanks!

This discussion is preserved as it was. New answers, comments, and votes are closed.