Advertisement
Guest User

Untitled

a guest
Aug 29th, 2014
227
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.52 KB | None | 0 0
  1. require('timers')
  2.  
  3. ...the rest of your code
  4.  
  5. //this function happens when the clock counts down to zero and the game begins
  6. function GameMode:OnGameInProgress()
  7. print("[BAREBONES] The game has officially begun")
  8.  
  9. //this is the actual line to create a timer
  10. Timers:CreateTimer(30, -- Start this timer 30 game-time seconds later
  11. function()
  12. print("This function is called 30 seconds after the game begins, and every 30 seconds thereafter")
  13. return 30.0 -- Rerun this timer every 30 game-time seconds
  14. end)
  15. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement