Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Running multiple threads at once?

Asked by
MrFlimsy 345 Moderation Voter
9 years ago

I've recently delved into RBX.lua and there's one thing that bothers me. I can't seem to figure out how to run multiple threads of code at once.

For those of you who don't know what this means, Lua reads code from top to bottom. If I have an infinite loop somewhere near the top, any code below it will never run. I've tried a couple google searches but I can't find any documentation on how I would go about running code on a separate thread.

Is this possible in RBX.lua?

Answer this question