Hello I have this plugin called Ez monetization. It simplifies making gamepasses for people and is
especially helpful to devs who cant script but want to quickly set up a game with monetization.
I am having some trouble publishing the plugin. The plugin has both scripts that I want to insert inside the game and a script called “Plugin code” which is the code for the plugin.
Right now, I have these contents of the plugin:
I am confused on how I publish the plugin. Do I right click on the folder or the script? does the folder have to be inside of the script (like modules) I need to use the content in those folders and stuff
Click Save To Roblox. I think it might export as a script, though
edit: Oops, publish as plugin by selecting it all with CTRL+Mouse1click so you can select it. To be faster, do Shift+click
I know I press publish as a plugin I am just not sure what part to publish. When I tried publishing the entire folder all the scripts inside my plugin (the ones meant to run in game not in studio) ran. but when I published the script it didnt know what I was referencing when I said thing like script.parent.parent.EZMonetizationGUI.
maybe I publish all of it but have the scripts meant to run in-game be disabled then I renable it in the plugin code and distribute it to the playergui section
Okay…
You can disable the scripts that are meant to run in a game instance until they are run in a game instance by using RunService:IsEdit() and RunService:IsRunMode() to detect if it’s in edit mode or run mode.
You can do whatever you want from there - Just have a handler script that does the detections and enables whichever scripts are meant to be run from what mode.
My plugin is a plugin that monetizes peoples games for them. It interacts with the actual server (not roblox studio) quite often. The only way for me to interact with the actual server is if I distribute script objects in different areas. (such as a script that manages the sales or a script that manages prompting items to be bought)
Thank you for the help! Your reply was useful for me with my code. I would mark it as a solution but it was not the answer for my post question. I ended up figuring that out on my own so I want to make sure people looking for answers get relevant information.
Still, thank you very much for the help! you were helpful outside of the post