I see spawn(), delay(), wait() still being used a lot and they’re not officially deprecated - are there any use cases where they would be preferred over the task or coroutine libraries?
1 Like
Yeah, they are pretty useful for making scripts with unintended behaviour.
6 Likes
Not anymore, they’re all being deprecated in favor of the task library.
task.wait() for wait, task.defer() for spawn (task.spawn() is for fastSpawn), task.delay() for delay. The task library is more performant than those functions.
6 Likes
The task library is objectively better than the old spawn() , delay() , wait(), so whenever you are going to use any of those, make sure to use task instead.
As the others said, its going to be deprecated so just use the newer methods, deprecated means it won’t receive any more updates
