VSCPlays
(VSCPlays)
April 16, 2023, 12:37pm
#1
What do you want to achieve? I am making a Framework that will require a lot of modules
What is the issue? I’m worried about the requiring limit I will experience on the Framework
What solutions have you tried so far? I looked for it here and it doesn’t tell how many modules I can only require
-- this is a scripting question, I don't need help debugging the code
I am making a framework which will require a lot of modules and I am wondering if I can require hundreds of modules
1 Like
I don’t understand. Can you Explain a little bit? What do you mean with require limit? You can require as much modules as you want.
1 Like
VSCPlays
(VSCPlays)
April 16, 2023, 12:40pm
#3
I found a topic when someone have a lot of modules and they can’t require all of it because of the limit
Hi!
I wish to load a lot of module scripts using a single script from the serverscript service and StarterPlayerScripts.
There seems to be a limit to how many module scripts i can require from a single script. This is an issue, since the framework i made almost solely uses modulescripts as plugins.
Here are some pictures of the Framework structure:
[image]
[image]
[image]
Once the Core modulescript is required from the client and server, it will being requiring the rest of the modules:
[…
There is not a limit. Probably, some modules weren’t running because of a loop. If that happens to you, you can always use coroutines
2 Likes
DasKairo
(Cairo)
April 16, 2023, 1:14pm
#6
You can only require()
a ModuleScript
once per Script, otherwise, there is no limit like what @pitateelpirata said.
2 Likes
VSCPlays
(VSCPlays)
April 16, 2023, 1:27pm
#7
then why the topic I provided talks about the modulescript require limit?
DasKairo
(Cairo)
April 16, 2023, 1:31pm
#8
Thats just a Method to Load all of the Modules Together to be used, and the issue was apparently a Module that yielded, which can pause the Loop.
But a ModuleScript
(as in the Instance) can only be required once per Script, if you have a Module required by a Module, it can still be required by another Script, just not the One that it was required in, as it was already required.
2 Likes
system
(system)
Closed
April 30, 2023, 1:31pm
#9
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.