daily pastebin goal
47%
SHARE
TWEET

daemon.lua

a guest Nov 22nd, 2017 51 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. local script,delay = ...
  2. if delay == nil then
  3.  delay = 2
  4. end
  5. print("Running " .. script .. " every " .. delay .. " seconds")
  6. while true do
  7.   os.sleep(delay)
  8.   dofile(script)
  9. end
RAW Paste Data
Top