Page 3 of 3

Re: How do I remove drawn images & printed text?

Posted: Wed Mar 18, 2015 4:27 am
by RBXcpmoderator12345
not os.sleep i mean this function

Code: Select all

local clock = os.clock
function sleep(n)  -- seconds
  local t0 = clock()
  while clock() - t0 <= n do end
end

Re: How do I remove drawn images & printed text?

Posted: Wed Mar 18, 2015 7:40 am
by s-ol
RBXcpmoderator12345 wrote:not os.sleep i mean this function

Code: Select all

local clock = os.clock
function sleep(n)  -- seconds
  local t0 = clock()
  while clock() - t0 <= n do end
end
Same effect as os.sleep, except it also wastes CPU power.

Clearly, here love is getting stuck in a loop that will take n seconds - it therefore can't do anything else.