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

Can someone describe to me how to use require()? with an assetid

Asked by 5 years ago

Hey, I am making an Anti-Exploit but I don't want to give away the Source code, because then it could maybe get Bypassed/Stolen. so I am using a module. So would I put my script into a module script then upload it with an assetid then say in a script.

require(12345)--AssetId Will go there

Thanks, Enomphia

1 answer

Log in to vote
2
Answered by 5 years ago

Hi!

This is a very simply process! First, create a ModuleScript in your Workspace in Studio. Rename this Module to "MainModule", right click on it and click "Save to ROBLOX". The way you name it there is not important, as long as the script itself is called MainModule.

Once you've done that, get the ID of that model and put it into the required code.

In order to UPDATE your module, insert it into your game via My Models, edit the code, and once again click "Save to ROBLOX", selecting your previously made model.

Doing this will overwrite your old Module, and new servers will automatically use the new code!

Hope this helps

0
Thanks, I found it out before. But thank's so much. I would upvote if I could :C Enomphia 39 — 5y
0
I upvoted now. :D Enomphia 39 — 5y
0
Thanks! :) User#20989 0 — 5y
Ad

Answer this question