Hi there. I recently made an anti exploit gui, which allows users to call agents via HttpService-Trello, and they come to stop exploiters, etc. I was wondering if I could make it all into one script, which would say something like this:
-- blah blah blah, info require(AssetId)
Could anyone help me with this? Thanks
Alright, I let me go ahead and help you out with this. First up, create a Module Script and call it 'MainModule' - If it's not called that this will NOT work.
Now, inside that MainModule drag your model into the script so that the parent of the model is MainModule. Now, here's how the module script's code should look:
local m = {} m.load() script["WSP Server Protection"].Parent = workspace end return m
Now, go ahead and publish this script to roblox and make sure to save the ID somewhere. Now inside of a regular script you can do this:
local module = require(ID) module.load()
Now, that's it. That will simply put your model into the workspace but you don't have to give it to anyone. Hope I helped.