Hey guys, just a quick question. How would I put my scripts and assets into a loader? Like, how would I put it in a github script or something. So when I want to use the script, I just make a new serverscript and it would be a require script
I’m confused on what you’re asking for? Are you asking how to get scripts off of other sites through require
? If so, you don’t use require
as it’s only for scripts in the game or on the roblox website.
To get a 3rd party script, you need to use HTTPService and send a Request to github for the script.
What do you mean by getting scripts off the roblox website?
If you create a ModuleScript and name it MainModule
and upload it as a model, you can use require
on it. But if it’s private, you would have to own it to use it, otherwise, it will give you an error.
-- example
local moduleId = 109028213 -- the module script's asset id (for this example, I just typed random numbers)
local myModule = require(moduleId) -- this would get the module script from the roblox website with the provided id
-- do whatever you want with it
1 Like
Thanks, I’ll definitely keep this in mind
1 Like