How to add a “sleep” or “wait” to my Lua Script?

I’m trying to make a simple script for a game, by changing the time of day, but I want to do it in a fast motion. So this is what I’m talking about:

function disco ( hour, minute)
setTime ( 1, 0 )
SLEEP
setTime ( 2, 0 )
SLEEP
setTime ( 3, 0 )
end

and so on. How would I go about doing this?

Leave a Comment