1 | local frame script.Parent.Parent.Shop |
2 |
3 | script.Parent.MouseButton 1 Click:connect( function () |
4 | if frame.Visible = = false then |
5 | frame.Visible = true |
6 | else |
7 | frame.Visible = false |
8 | end |
9 | end ) |
1 | local frame = script.Parent.Parent.Shop -- forgot an equal sign :P |
2 | script.Parent.MouseButton 1 Click:connect( function () |
3 | if frame.Visible = = false then |
4 | frame.Visible = true |
5 | else |
6 | frame.Visible = false |
7 | end |
8 | end ) |
An underline in red simply means a syntax error. Just because I didn't really like that the last answer didn't really say anything about it, I'll mention that you can toggle "Script Analysis" in View and it'll define errors for you and explain what's going on. Another thing is you can hover over text with red underlines and it'll describe the problem, somewhat.