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
4 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?

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

The "," doesn't work? Thanks!

1 answer

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

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

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

Answer this question