I have programmed a world generator and
while true do wait () end
already generates too much delay and ensures that the world is generated very slowly
local amount = 0 local MaxAmount = 20 -- 10,20,100 while true do if amount+1 > MaxAmount then amount = 0 wait() -- Set Amount return end amount = amount+1 if amount == MaxAmount then amount = 0 wait() -- Set amount return end -- Do rest end