i want to understand how to use actor but idk what is parallel luau and i can't understand https://create.roblox.com/docs/ko-kr/scripting/multithreading
#What does Parallel Luau mean?
14 messages · Page 1 of 1 (latest)
sure
Parallel just means doing multiple things at once
For example
Normal Lua runs code line by line
And waits for the previous line to finish
Parallel Lua just means running separate "Threads" at the same time
You can think of threads like independent code pieces
For example, every script is it's own thread. This means that all scripts run at the same time, but inside the scripts code is executed in serial( line by line, waiting for last line to finish)
The simplest example of parallel Luau would be something like this
task.spawn(function() -- create a new thread for the function to run in
T
task.wait(3)
print("parallel")
end)
print("serial") -- will print immediately without waiting for the above function to run
Dawg I spent like 10 minutes writing that just for you to ignore me 😭