So I tried this to open and close my shop GUI, ~~~~~~~~~~~~~~~~~
Box = script.Parent.Box --Frame
Button = script.Parent.OpenAndClose --TextBox
Open = false
Button.MouseButton1Down:connect(function(open)
if Open == false then
Button.Text = "Close"
Box.Visible = true
esleif Open == true then
Button.Text ="Open"
Box.Visible = false
Open = false
end
end)
but it didn't do anything, what's wrong with the script, or is it not in the part it should be in? Is it old, not supported in newer roblox?
Here's the Output:
15:49:20.063 - Players.Player1.PlayerGui.ScreenGui.LocalScript:9: '=' expected near 'Open'
Sorry, i'm new to scripting on roblox, so i'm not experienced.

6 comments
This definitely threw an error. See: "esleif". Always include your output in your questions, and always check the output first.
http://wiki.roblox.com/index.php?title=Output
I put the text the output said, that help?
Dude just read your code, your error is EXTREMELY simple. Look on the line it tells you, and look at the color coding.
I'm new to scripting, so IDK what the colors means, and what's wrong, that's why I need help.
Well since this doofus just gave you the code, the issue was that you misspelled 'elseif'. READ your code