good morning! so today i made a menu screen with a settings button and a play button when i click the settings button it keeps giving me this error:
Players.NexterDev.PlayerGui.Menu.PLAY.SETTINGS.LocalScript:2: Expected 'end' (to close 'function' at line 1), got <eof>
here is my script:
1 | script.Parent.MouseButton 1 Click:connect( function () |
2 | game.StarterGui.Menu.PLAY.SETTINGS.SettingsFrame.Visible = true |
You need to add an end with a closing bracket at line 3 to let the script know when to end a function.
1 | script.Parent.MouseButton 1 Click:connect( function () |
2 | game.StarterGui.Menu.PLAY.SETTINGS.SettingsFrame.Visible = true |
3 | end ) |