I see it in RAE and almost any admin script. But I can't find it in ROBLOX API either, I dont want like a example just like a basic description.
✓ ANSWER ACCEPTED
What is require() used for?
1 answer
✓ Accepted answer
ModuleScripts are essential when trying to avoid using the same functions over and over again. Functions, tables, and just about any variable set in a ModuleScript can be used in multiple scripts without the need to re-write them all over again.
Modules scripts only run once no matter how many times called in a server, therefore, the results will never change. When called from LocalScripts, however, it runs once for each individual client that calls require.
Check out the source the above is snatched from here
This discussion is preserved as it was. New answers, comments, and votes are closed.
