|
>unknown global 'plugin'
>>Now, plugin is a global keyword when scripting. PluginManager():CreatePlugin() is no longer necessary to create a Plugin object and should not be used.
https://www.youtube.com/watch?v=onhFH7jpq2c |
|
|
Unless you're getting that error in an actual plugin, then of course it happens and who really cares?
|
|
|
gskwJoin Date: 2013-01-05 Post Count: 1364 |
If it's in a ModuleScript, you need to get it from a *Script's* environment. |
|
gskwJoin Date: 2013-01-05 Post Count: 1364 |
https://github.com/Anaminus/roblox-bug-tracker/issues/736 |
|
cntkillmeJoin Date: 2008-04-07 Post Count: 49450 |
That's common sense... |
|
|
but its in a regular script
https://www.youtube.com/watch?v=onhFH7jpq2c |
|
cntkillmeJoin Date: 2008-04-07 Post Count: 49450 |
I was talking to gskw, not you. |
|
|
oh
https://www.youtube.com/watch?v=onhFH7jpq2c |
|
gskwJoin Date: 2013-01-05 Post Count: 1364 |
The lack of warning on the Wiki can totally lead to oversights like in my case. I guess I expected Roblox to have done a special case for plugin ModuleScripts.
Anyways, show the script. |
|
|
i was literally starting off like this
local hasstarted = plugin:GetSetting("pluginHasStarted")
that's literally all
and right when I typed it, the blue line showed under 'plugin' saying "unknown global 'plugin'"
https://www.youtube.com/watch?v=onhFH7jpq2c |
|
gskwJoin Date: 2013-01-05 Post Count: 1364 |
Because you only use the "plugin" global in plugin scripts, not regular ones. |
|
|
how 2 make plugin scripts
https://www.youtube.com/watch?v=onhFH7jpq2c |
|
gskwJoin Date: 2013-01-05 Post Count: 1364 |
By saving the model into %LOCALAPPDATA%\Roblox\Plugins, iirc |
|
LightlimnJoin Date: 2010-05-09 Post Count: 4079 |
nononononono
it will say that error but it's fine in the actual plugin. |
|