Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

Having a problem with tables..?

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 []?

1 answer

✓ Accepted answer

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.