Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

How can I make my whole model into a 'require()' script to stop people stealing it?

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

5 comments

0

Hackers can still get to it even this way, it's just more difficult.

0

@kingdom5 But how do I turn my model into a module? I am so confused

0

Is there a way to unhide that script?

1 answer

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.

1 comment

0

This didn't work sorry

This discussion is preserved as it was. New answers, comments, and votes are closed.