Is there a way to ignore a warning?

I think my title is straight forward. How can I ignore a warning, just like the pcall() function, but ignoring a warning instead of an error.

Just don’t call warn()? Pretty sure that’s the only way stuff can be warned lol. Just don’t call the function

I mean in the script analysis. I am not quite sure how it is named. I never called the warn() function.

Could you share a screenshot or something of what you’re looking at in the script analysis?

Well, I am posting this for my future self because I know it will be useful

The way to suppress them all would be to add --!nolint and --!nocheck at the top of your scripts but those will suppress the linter and type checker entirely which may not be what you want.

The better way would be to simply resolve them but we need more context as there are many possibilities.

odd question … you could filter it out in the output box if you really wanted to.
You should fix your warnings.

Do you mean the Output window? You cannot suppress warnings raised by internal functions. pcall is meant to be used to avoid crashing your script from unavoidable internal errors. It is not meant to be used outside of that context. If your code has the chance to error outside of intentional error calls, you’re meant to refactor your code to be more robust. The same principles are applied to warnings; if you’re receiving warnings from Roblox’s API, look at refactoring your code rather than silencing them