[SOLVED!] How does require works and how can I make a script like this?

Hi. I only know that require scripts exists, but I don’t know how can I make my own one.
What is a require script? Require scripts mostly used by new Roblox players in their own games via /console server-side command prompt, where you type your username while executing it, and then it creates a GUI where you can do everything (make your avatar scary, etc.).
So, the only question is: How does it work and how can I make my own one?

It’s encouraged that you search the forums and the Roblox documentations about simple inquiries like these first. The require method is usually used to load up ModuleScripts and allow access to their properties and custom functions. You can read more about them in the link provided

Already found that bro, thanks anyways!

require is a function that allows you to load and execute code from another script (module). This is a key element for organizing code, reusing functionality, and creating more complex systems. When you do require(ModuleScriptId), Roblox searches for the ModuleScript with the specified ID, executes its code once, and returns the value that the ModuleScript returned. This value can be a table, a function, a row, or any other data type.
image
image

I know now lol, thanks anyways