Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Expected 'end' (to close 'function' at line 1), got <eof>?

Asked by 4 years ago

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:

script.Parent.MouseButton1Click:connect(function()
game.StarterGui.Menu.PLAY.SETTINGS.SettingsFrame.Visible = true

1 answer

Log in to vote
1
Answered by 4 years ago
Edited 4 years ago

You need to add an end with a closing bracket at line 3 to let the script know when to end a function.

script.Parent.MouseButton1Click:connect(function()
game.StarterGui.Menu.PLAY.SETTINGS.SettingsFrame.Visible = true
end)
0
i know this may seem picky but that non indented line 2 makes my eyes burn TickoGrey 116 — 4y
0
it works now, thanks! NexterDev 13 — 4y
Ad

Answer this question