The way to do this is pretty simple, as long as you have only one script. If you have more, I'll get to that later. Anyway, what you need to do is publish your script to the Catalog. You can do this by right-clicking your script and clicking "Save to ROBLOX". Then, fill out the details. Next, go to your Develop page, and click on "Models". Click the gear icon, click "Configure", and quickly just make sure "Publish for free public use" is NOT checked. Then, go back to the Develop tab, and go back to models. Now, click on your model. You will be brought to a page. Click on the address bar (the long and thin box at the top of your web browser window) and go to the very end. There should be a number. Highlight that number, and copy. Now create a new script in your place. Inside it place this script:
Just replace id here
with the number you copied. Finally, you need to do one more thing. In the Studio Explorer (on the left of your screen) there should be a little blue box that says "HttpService" next to it. Click that. In the Properties menu (right of your screen) check the box that says "HttpServiceEnabled". (If you don't see the Explorer or Properties menu, go to the View tab and click both of the big buttons on the left that say "Explorer" and "Properties".) Now, you have finished your module thingie!
On the other hand, if you have more than one script, it is a tiny bit more complicated. First, upload ALL your scripts separately. Now, make the script, copy the first script's id as shown above, and put the following into your script:
Make sure you have a require
line for each script your anti-exploit script needs. Also, you must make sure each require
line has the correct ID. DO NOT make two require
calls to the same script or your game could get messed up.
Closed as Not Constructive by Shawnyg, Kryddan, TheHospitalDev, DevSean, and Nickoakz
This question has been closed because it is not constructive to others or the asker. Most commonly, questions that are requests with no attempt from the asker to solve their problem will fall into this category.
Why was this question closed?