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

How can I make a list of something in a server-script?

How can a make a list in a script? I am trying to make an admin commands feature to check if the player is the allowed player, how can I list the allowed players?

local AllowedPlayers = ("zomspi","example")

The "," doesn't work? Thanks!

1 answer

✓ Accepted answer

I believe you are trying to create a table! To do this replace the '( )' with '{ }' e.g.

local AllowedPlayers = {"zomspi","friend"}

Here is the wiki Tables

2 comments

1

Thanks!

1

No problem!

This discussion is preserved as it was. New answers, comments, and votes are closed.