local playersToNotKick = {
"Name",
"Name",
"Name"
}
game.Players.PlayerAdded:Connect(function(plr)
if not table.find(playersToNotKick, plr.Name) then
plr:Kick("Kicked")
end
end)
This should only kick players whos USERNAME, not displayName are not in the playersToNotKick array/table