Im working on something that spawns in parts using a “for i” function, and uses wait() to stop it from spawning everything instantly. The parts spawn in fast, but because there are so many parts i’m wondering if there is a way to make it even faster. Any help is appreciated, thanks! :3
you can spawn a part twice or thrice at once in the loop
1 Like
Alright, ill try that. Thanks :3
wait()
is deprecated and should be replaced with task.wait()
, it is equivilent to RunService.Heartbeat
and it should be much faster than wait()
when handling smaller numbers, you can also try other RunService
stuff if that helps.
Another thing you can do is use coroutines
and task.spawn
/task.defer
to prevent yielding when spawning stuff, that however can come with lag because of stuff executing at the exact same time if not yielding.
2 Likes
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.