Reinified

simple

Jun 17th, 2017
142
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. local persons = {
  2. ["Alex"] = {rank = "Teacher"; PremissionLevel = 3};
  3. ["Paul"] = {rank = "Student"; PremissionLevel = 0};
  4. }
  5.  
  6. teachers = {}
  7. student = {}
  8. function check()
  9. for k,v in pairs(persons) do
  10. if v.rank == "Teacher" then
  11. table.insert(teachers, k)
  12. elseif v.rank == "Student" then
  13. table.insert(student, k)
  14. end
  15. end
  16.  
  17. end
Advertisement
Add Comment
Please, Sign In to add comment