How do i remove lag on looping 500+ objects

what’s the difference between the two?

It’s just that task.delay has a built in task.wait() that you can pass a parameter for.

So instead of this:

task.spawn(function()
task.wait(2)
end)

You can do

task.delay(2, function()

end)
1 Like