I am trying to use this script to make a GUI invisible. It says it expected an assignment or function call.
GUI = game.StarterGui.Frame
button = script.Parent
if button.MouseButton1Click
then
GUI.Visible false
end
Just to be clear I want to change .visible to false.
Edit: The screengui is in a frame, I was told to do that

1 comment
If it's in a localscript, it won't work.