Hi, I made a local admin script for one of my games and I'm trying to add a table for names who can be admin but it's giving me the error. Heres the 2 parts doing it but I'm not sure how to fix it.
local settings = { whitelist = {"PLAYER1", "PLAYER2"}, prefix = ";" }
local plrs = game:GetService("Players") local plr = plrs.LocalPlayer local whitelist = plrs[settings.whitelist] local prefix = settings.prefix

2 comments
Thanks, it worked. How would I make a command that would add a player to that whitelist, like ;whitelist PLAYER3
Write: table.insert(settings.whitelist, "PLAYER3")