So, i have a table with a bunch of players names and i have a little Admin type script i made. How would i make it so that if one of the players in my table of admins chats it does it?
if Player.Name == admins[]
what do i put in the []?
So, i have a table with a bunch of players names and i have a little Admin type script i made. How would i make it so that if one of the players in my table of admins chats it does it?
if Player.Name == admins[]
what do i put in the []?
Instead of having a table of strings, have a table of values set to true, then check if admins[Player.Name] exists.
admins={["1waffle1"]=true,["starkiller523"]=true}
...
if admins[Player.Name]then
...
This discussion is preserved as it was. New answers, comments, and votes are closed.