Question about require() and private modules

Hey, I had a question for ya all.

You have require() for module scripts and I have a friend who doesn’t believe what I say therefor I am coming here to hopefully show that I am right. Therefor I will not say what I mean.

You have the function called require() to well require module scripts.
When you make a module script you can upload it to your profile and call it MainModule. Then it can stay private and it can still be used. (Ye, I know this is getting disabled)
Anyways as of now in working state here is my question:

Do you need HTTP service enabled to require() a private module?
I would want those who use this and knows this well to reply. I hope you can help.

3 Likes

If you’re conferring that a private module is a 3rd party module which you do not own or isn’t owned by the group which you may be editing then either way you don’t need HTTP service

3 Likes

You don’t need to have HTTP service enabled to use Roblox assets in general, HTTP service is only for remote connections, hence why roblox doesn’t allow you to make API calls with it either. When you require a private module it fetches it from roblox’s servers like it would with any other asset.

4 Likes

HTTPService is used to connect your game to external servers which you may use as an alternative to things like DataStores.

Modules do not require HTTPService in order to function.

6 Likes

I swear, this used to be a requirement for 3rd party modules, was it changed recently?

3 Likes

It wasn’t a requirement in 2015 and hasn’t been for now. I don’t know if they ever required it to be enabled, but I doubt it did.

3 Likes

to be honest it should be.

1 Like

HttpService.HttpEnabled has never been a requirement for private modules.

3 Likes

There’s no reason to force HTTP to be enabled for private modules anyways. It’s like forcing HTTP to be enabled for the methods under the Players service (eg. GetUserThumbnailAsync), not practical to force it and no technical reason to.

2 Likes

Do open-sourced modules load in studio? I don’t know if its just me but adonis by Sceleratis loads in studio, and fully works.

4 Likes

yes modules fully load in studio.

3 Likes

Open sourced modules will continue to work through require(ID) as far as I know.

2 Likes

Please do not use development support for questions that you can find the answer to with a little bit of testing by yourself.