After I require modules (30) in the row in one script only 2 first ones work. I’m not sure why if somebody knows can you tell me.
How do I know that only 2 first run. → I added print at the start of most modules and only 2 first printed what I wanted to print the rest didn’t show anything.
If you need more info feel free to ask, Thx for the help .
It is possible that your second module contains an infinite loop or something that prevents the others from running. To run each module in their own thread, you can use the spawn function so that each module can run simultaneously.
spawn(function() require(module) end)
There are better and more efficient ways to solve this, but this is a quick fix. You should try utilizing things like BindableEvents, which also execute in separate threads.