Which is Better?
while task.wait(1) do
end
or
while true do
task.wait(1)
end
Which is Better?
while task.wait(1) do
end
or
while true do
task.wait(1)
end
(post deleted by author)
Long story short, and without ChatGPT (Looking at you, @xavocs), there really is no difference whatsoever, besides a millisecond.
The first loop takes 1 second to start and the second one is instant.
Stop using Chat-GPT to generate answers!
task.wait()
returns elapsed time (a number), not a boolean. See task.wait reference.