I need a function to pause my addon for about a second without locking up the game for the duration, this is one thing I've found that does it, but it locks up the game for the duration of the time it waits, ultimately it isn't good. Is there a better way of doing it?
Thanks!Code:local function wait(seconds) local _start = time() local _end = _start+seconds while (_end ~= time()) do end end