I’m trying to make an admin system for my API, and my it is saying that there isn’t a table,
function Swift.SetAdmin(player, List)
for i,v in pairs(List) do
if player.playerID == v then
local Admin = Instance.new("BoolValue", player)
Admin.Value = true
end
end
end
local Swift = require(script.Parent)
local Admin = {
200357169,--twichman123
1, --Roblox
}
--Make sure you put the ID of a player, not their name
game.Players.PlayerAdded:Connect(function(player, Admin)
Swift.SetAdmin(player)
end)