Ways to store instances for plugins?

I am trying to make a plugin that has interactable UI (not made with coding) which means storing the GUI while having a neat script behind the plugin.

The problem is that it is hard to somewhat efficiently store instances like GUIs as you have to do all in one script and you cannot have any other children in the script (well, you can, but it doesn’t save upon exporting the plugin). A solution to this would be converting them into script, though remember that it is one script. Since you have to put the Gui creator script into the script, another problem appears, which is clutter and mess. I’m trying to avoid putting Gui creator script into the script.

What are other ways to store and unpack Gui without having to clutter the plugin loader script?

Sorry if i misunderstood this question but couldn’t you just parent an existing GUI in your plugins folder to CoreGUI? You could arrange your plugin like this:
image

1 Like

I apologize. I have not known plugins can be stored in form of RBXMX through folder instead of Lua as of now. Previously, I was exporting by one script and this helped me realize.

1 Like

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