How to ignore syntax errors

I remember there being specific lines you could put at the top of your scripts to make it ignore certain syntax recommendations. For example:

--!ignoresomething

function x()
     hi = true
end

x()

I am 99% sure I have seen this on roblox. In the example above, normally the script would show a red underline under hi and say something like “variable only used in the enclosing function, consider changing to local”. But when the first line im trying to remember is there, that red underline wouldnt even show up.

1 Like

That first line was most likely something like local hi;

1 Like

I just found what I was referring to. It is called linting, and is further documented here: Linting - Luau

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.