Here is the coding
function admin()
if msg:sub(1,6) == "admin " and isAdmin(spkr) then
vic = msg:sub(1,9)
if findPlayer(vic) then
table.Insert(vic, #admins)
end

6 comments
Thanks, I will Mark this in case I forget, Thanks :D
Is it not table.insert(whichTable, where, whatThingToPutIn)? Where where is optional of course.
Can't you also do table:insert(whatThingToPutIn,where)?
Perci1: No.
a:b(c)is sugar fora.b(a,c), which would mean all tables would require ainsertproperty fort:insertto work; that would defy the assumption that{}has no values in it anywhere.But you can do stringname:sub() instead of string.sub(), so why should it be different for this?
Try it out! Strings have those things built in, so it works for them -- they also don't actually have properties, it's just magic for them (("cat").sub will error)