I am not sure what exactly is wrong with the code, but I found a few problems that may be the source of the issue.
Line 47: function Open()end
There is not supposed to be an end there. Right now, the function "Open" has no code in it. Remove that end and place it near at the end of the function.
Line 91: Button.ClickDetector.MouseClick:connect(function() Open() end)
This is close, but not exactly right. When calling a function with a connect line, you only need to say the name of the function. No need to over complicate things! This is how it should be:
Button.ClickDetector.MouseClick:connect(Open)
Hopefully this helps! If you have any other issues, feel free to contact me by commenting or sending me a message on Roblox! Good luck, and happy coding!
1 comment
I edited my answer.