FireMageLynn

once per pause state

May 8th, 2013
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.14 KB | None | 0 0
  1. local runs = 0
  2. if runs == 0 and game.paused then
  3. do_the_thing()
  4. runs = 1
  5. end
  6. if runs == 1 and (not game.paused) then
  7. runs = 0
  8. end
Advertisement
Add Comment
Please, Sign In to add comment