So I seen where people can use EXAMPLE OF RDS(ROBLOX DEV SERVICES)
require(123)
and it hides there GUI coding, etc.. How do they do that exactly? What does require mean? I want to do the exact same thing but I do not understand this. If you would help me this is for my group just tell me how to use it, etc..
Going on to explain my comment,
require() is a function for Module Scripts, and ROBLOX has provided the functionality to use the require() function on assets on the ROBLOX website. These assets can then make changes to the game (this method is also used in hiding Scripth's admin commands.
The require function is used on Module Scripts. They are scripts that run once and that is when they are being called. With ROBLOX they have allowed for you to upload a module script to the site, and be able to run it in game.
Say I had a game setup like this.
require(123456789)
Well, in the module script under the asset "123456789", say I had a script that said this:
print('This is a module script running code.') local module = {} return module
Well, when the script loads it will run the code in the module script, and functions can be ran through it as well when they are called. Though, that's a completely different question to ask.
require()
is used to load Module scripts ID's into game. --Hope this answered your question require() is a specific function
Marked as Duplicate by ImageLabel
This question has been asked before, and already has an answer. If those answers do not fully address your question, then please ask a new question here.
Why was this question closed?