Silence "Unknown global 'plugin'"

I’m asking that Script Analysis and Intellisense recognize plugin as a global constant, because this8a16bf30fc869f4c36c13e1088aa8c29.png
is annoying to wade through when I’m looking for actual issues in my plugin.

6 Likes

Try placing this at the top of your script:

plugin = plugin
1 Like
plugin = plugin or PluginManager():CreatePlugin()

I haven’t been having this issue for the past couple of years when I started working with plugins, but I’ve been getting it for the past couple of weeks out of nowhere now:
Plugin%20Keyword%20Error

5 Likes