So I scripted this local script in my shop GUI to pop up when you click it. (there are four parts to the shop GUI; Swords, Effects, and Coins). So that way when you click one of the (Swords, Effects, and coins) GUIs the list of items would pop up. I thought I got everything right when I received an error message in my output window:
17:27:43.681 - Players.sbob12345m.PlayerGui.Shop.Frame.Swords.LocalScript:10: unexpected symbol near '?'
So I went into the local script and it brought me to line 10 of this script:
button = script.Parent.Parent.Swords
image = script.Parent.Parent.Sword
visible = false
button.MouseButton1Down:connect(function()
if visible == false then
image.Visible = true
visible = true
end
end)?
What did I do wrong? if you need more details on my GUI just comment so I'll give a detailed list of how I put this together. thanks.

2 comments
https://forum.scriptinghelpers.org/topic/82/how-to-format-questions-answers-on-the-main-site
You have added a question mark on line 10, remove that. And by the way, connect is deprecated, use Connect instead.