I have several multi-line comments in my script. I deleted a chunk of them since I thought they were all commented, then I realized I deleted some code that I needed so I reset to an earlier version of the place. Looking through the code (with the help of Ctrl+F) I realized that the part of the code that I needed was colored green like it was a comment, but it was not enveloped by a comment.
Red is the commented section, and the blue part is not surrounded by a comment (as you can see by the ]] before it). The latter (blue-circled) block of code still runs (otherwise stuff would be spitting out errors and breaking).
Is this something I did to mess up the comment or a real glitch?
That didn’t fix it. I even restarted Studio and it was still there.
I have quite a bit of code that I was hoping to remove from this script, but I don’t want to now since I don’t now what all is really commented out and what isn’t, and I don’t want to go through looking at every line to see what I need since the script is 900 lines long.
In the original post I circled the closed brackets. Also in the original post I said that that code is recolored but still runs. It’s not commented out.
That’s not the whole script though – even at the top of the line that’s halfway cut off you can see double closing brackets at the end of it which means you didn’t include all of your comments in the OP. Double check to make sure all of them have a set of closing brackets, and if they do, post the entire source in the OP as a repro if you haven’t already in confidential tags. If you can cut and paste the code into a different script and still see the same issue, it’s almost guaranteed that it’s because you have an extra comment block somewhere.
Does it still happens if you copy everything and paste it into a new script? If yes, post the whole source in the OP and I’ll try to see what’s causing it.