Difference between wait() and task.wait()?

Hey devs!

I’ve seen people use task.wait() more frequently.

What’s the difference between:

wait()

--and

task.wait()

Thanks in advance!

12 Likes

This post explains all of the task library and its improvements over current systems.

11 Likes

Can we use task.Wait() in a loop?

Traditional Method:

while wait(0.25) do
end

Can we do this instead:

while task.wait(0.25) do
end
3 Likes

Yes you can.

In the future, refrain from bumping an old topic like this. You could’ve opened up a game in studio and pasted that in and that’d take less time than waiting for me to respond as well. But yes, you can use while task.wait() do

14 Likes