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

What does the require(IDHERE) do? Why do we use it?

Asked by 7 years ago

Hello, I see lots of moderation services with the scripts only with 1 line...

require(550063113) This happens to be the one I use.

What does the require do? And what are those numbers in it?

Thanks, Vincent Lauro

1
require gets an external script and the numbers are the id. This may be used for malicous purposes so you should never fully trust the scripts that have this in them Volodymyr2004 293 — 7y
0
Where can I find the external script? vinniehat54 18 — 7y
0
Require is for modules. As Volodymyr said, you can also require modules if you upload them to ROBLOX and use their ID. OldPalHappy 1477 — 7y

1 answer

Log in to vote
0
Answered by 7 years ago

The require() function is used to activate module scripts in-game or call external scripts. The external script is usually uploaded as a freemodel; the code in the parameter of the require() function is the ID of the free model. If you want to find the external script enter the ID into the ROBLOX asset link on the website and it should send you to the model. In order for a module script to be called externally it must be named "MainModule" before being uploaded.

Ad

Answer this question