Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local persons = {
- ["Alex"] = {rank = "Teacher"; PremissionLevel = 3};
- ["Paul"] = {rank = "Student"; PremissionLevel = 0};
- }
- teachers = {}
- student = {}
- function check()
- for k,v in pairs(persons) do
- if v.rank == "Teacher" then
- table.insert(teachers, k)
- elseif v.rank == "Student" then
- table.insert(student, k)
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment