Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
1

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

Asked by
zomspi 541 Moderation Voter
5 years ago

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?

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

The "," doesn't work? Thanks!

1 answer

Log in to vote
2
Answered by
DrShockz 233 Moderation Voter
5 years ago
Edited 5 years ago

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

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

Here is the wiki Tables

1
Thanks! zomspi 541 — 5y
1
No problem! DrShockz 233 — 5y
Ad

Answer this question