vitu0089
(vitu0089)
September 8, 2021, 1:01pm
#21
I’m sorry, I have no clue. You might be able to look it up on google though.
samjay22
(Dev)
September 8, 2021, 1:20pm
#22
In this case while true is okay to use. It may actually be slower to invoke the disconnect method. Your prior method appeared to be better performance-wise.
0V_ex
(vex)
September 8, 2021, 1:27pm
#23
in the line:
local nextPart = parts[i - 1] or parts[#parts]
change it to:
if i - 1 < 1 then return end
local nextPart = parts[i - 1]
vitu0089:
“while true do”
The script I sent is more efficient and less resource-intensive.
Hey developers,
We have just enabled a brand new library that you can use in your projects. The task library allows you to talk directly with our engine’s task scheduler to manage and schedule code. It features a number of new methods as well as some improvements to existing methods.
Details
task.spawn
Takes a thread or function and resumes it immediately through the engine’s scheduler. Additional arguments are passed to the thread or function being resumed.
void task.spawn(function | thread,…