Advertisement
Guest User

Untitled

a guest
Feb 21st, 2014
114
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.23 KB | None | 0 0
  1. function cycletable(b,orig)
  2.   if b:lower() == "next" then
  3.     table.insert(orig,orig[1])
  4.     table.remove(orig,1)
  5.   elseif b:lower() == "previous" then
  6.     table.insert(orig, 1, orig[#orig])
  7.     table.remove(orig, #orig)
  8.   end
  9. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement