Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function cycletable(b,orig)
- if b:lower() == "next" then
- table.insert(orig,orig[1])
- table.remove(orig,1)
- elseif b:lower() == "previous" then
- table.insert(orig, 1, orig[#orig])
- table.remove(orig, #orig)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement