If you have an idea or tip please write it in the answers. It doesn't write that there is a problem with the script or at least I can't find it. As ever any help will be appreciated. Here is the script.
script.Parent.MouseButton1Down: connect (function()
script.Parent.Parent.ShopFrame.Visible = not script.Parent.Parent.ShopFrame.Visible
end)

3 comments
Where is the script located?
in the script button
Is it a LocalScript? And there is a space between the :, connect, and (function(). So remove the spaces. And connect is deprecated so use Connect.