Why I can't create widget in moduleScript, which is under model of plugin?

Hello, I’m making my own plugin. But I have 1 little big problem with module, which don’t allow me create widget:


image
Can someone say me, what i’m doing wrong here?

1 Like

You need to pass plugin through to the module script.

What you mean with this? Explain a bit please…

The module script doesn’t know what plugin is. You need to pass the plugin variable from the main script to the module script.

This is evidenced by the attempt to index nil with [...]. If you couldn’t call plugin from the module script, it would have instead been because of a script security error.

1 Like

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