I have been thinking about including multi-threading into my framework (as in multiple cpu cores). I would I need to do this with only a single script? I feel like I wouldn’t because in most examples I saw parallel luau was used for multiple scripts, not one.
Well, the purpose for multi-threading would be to divide up the work of different tasks.
If you are using a single script, and you are not needing to process separate things at once, then its probably not necessary.
You can efficiently use one thread if you don’t use thread spawning. Instead of creating spawn threads, time them efficiently and have a RunService.Stepped in the code. The timing will replace task.wait and other yielding statements like task.delay.
However, I advise you to use an actor model (but from the documentation it appears to be a model where it contains BaseParts).