title: Sleep Lua script without halting entire program?
body: <p>I'm writing a GUI that's meant to be easily customizable by the end-users. The functions are in C++ and are called from Lua. I'm trying to make a Sleep() type function that will pause the script but not the program itself.</p>
  
  <p>I was able to get it working by using threads and making one for each function. However, I want it to be an individual function. As in, instead of having it part of the CreateButton function and every other function, simply having a Delay or Sleep function that only halts the script, not the entire program.</p>
  
  <p>Me being a novice at Lua, I really don't know how to go about this. Any help is appreciated.</p>