Can I use parallel lua in a module based framework?

The title says it all. For both the server and client, I have a single script that requires a “top level” module script that will then essentially branch down and require smaller module scripts. When I started working on this parallel lua wasn’t even a thing and I only just now started seeing stuff about it and it’s too late to change the way my game is structured. Is it even possible to use parallel lua with this?

1 Like

You could dynamically create Actors and then Clone some Scripts into them, which would likely be the simplest method to modify any specific section of your code to take advantage of parallel Luau. Keep in mind, there is no easy way to handle multithreading in any system.

If you have a specific part of your game that you think would benefit from being multithreaded, ask about that in specific.