Title is pretty self-explanatory. I’m just wondering - what’s the most efficient way to write a while loop without causing memory leaks or exhausting the game’s resources?
while true do
task.wait(num)
end
or
while task.wait(num) do
end
Title is pretty self-explanatory. I’m just wondering - what’s the most efficient way to write a while loop without causing memory leaks or exhausting the game’s resources?
while true do
task.wait(num)
end
or
while task.wait(num) do
end