you can do like @COUNTYL1MITS but with a nil check…
local whitelist = {whatever}
game.Players.PlayerAdded:Connect(function(plr)
If table.find(whitelist, plr.Name) == nil then
plr:Kick("Developers Only")
end
end)