Help with table of players

Hello everyone! well my problem was how to make a table or list of players, since when doing this script it doesn’t work

local playerlist = {"ezelike2017"}

script.Parent.Triggered:connect(function(player)
 if player.Name == playerslist then
        Player.Team = police
  end
end)

(I did the script from here, but the script I have in studio is the same)

2 Likes
local playerlist = {"ezelike2017"}

script.Parent.Triggered:connect(function(player)
 if table.find(playerlist, player.Name) ~= nil then
        player.Team = police
  end
end)

niceee!! thanks bro! very thanks for the help!

if table.find(playerlist, player.Name) then