Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

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

Asked by 7 years ago
Edited 7 years ago

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

0
Hackers can still get to it even this way, it's just more difficult. Kampfkarren 215 — 7y
0
@kingdom5 But how do I turn my model into a module? I am so confused Wilbob30 69 — 7y
0
Is there a way to unhide that script? JohnnyTheGamer_YT -17 — 6y

1 answer

Log in to vote
0
Answered by 7 years ago

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.

0
This didn't work sorry Wilbob30 69 — 7y
Ad

Answer this question