Advertisement
ksaw000

Untitled

Jan 8th, 2025
9
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.16 KB | None | 0 0
  1. local timer_id = os.startTimer(2)
  2. local event, id
  3. repeat
  4. event, id = os.pullEvent("timer")
  5. until id == timer_id
  6. print("Timer with ID " .. id .. " was fired")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement