Task.[function] vs "normal"

Hello devforum,
I see there is normal “functions” like spawn(function()), wait(), delay(), and so on
Then there’s task (task.spawn, task.wait, task.delay, and so on)

I know most people suggest using task.wait() over wait() but what about the others?
Can using the task manager for all these cause performance issues?

And, should I be using task.[function] over the “normal” versions?
(I use “” because I know they probably aren’t considered normal, rather a different method.)

1 Like

If you want accuracy, and don’t want to use deprecated functions, you should use the task library.

6 Likes

Oh are they deprecated? I did not know that lol.
I am going for accuracy and/or performance.
Thanks btw

Non of these functions are deprecated, yet.

The task library is just more optimized and recommended for use by Roblox

I believe delay() is deprecated. wait() is not. I may be wrong.

The task library is generally more supported by roblox and is more accurate.

If I’m correct (Someone correct me if I’m wrong) but the task library uses the server’s heartbeat (See Here on that.)

The server’s heartbeat is generally better as it’s what is for all cients meaning it’s more accurate and more quicker. I’ve heard for the spawn function (See this) that task.spawn (Instead of just spawn) is 2x faster as well!

TL;DR: Task is more accurate and quicker than “Regular / Normal” functions.

They’re not deprecated, it’s just performance and speed efficiency.