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

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

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

✓ Accepted answer

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

3 comments

0

Thanks, I found it out before. But thank's so much. I would upvote if I could :C

0

I upvoted now. :D

0

Thanks! :)

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