Running table through for loop?

Hello! I am trying to get the player name out of a list with a for loop, but it is only giving me true.

    local TPList = {}
    for i, v in pairs(PlayerList.ElevCheck) do
        if v == true then
   	        print(v)
            local TruePlayer = game.Players:GetUserIdFromNameAsync(v)
            TruePlayer = game.Players:GetPlayerByUserId(TruePlayer)
            table.insert(TPList, TruePlayer)
            print(TruePlayer)
        end
    end

The code I used to add this stuff to the table is

table.insert(PlayerList.ElevCheck, Player.Name)
PlayerList.ElevCheck[Player.Name] = false

I will elaborate if necessary.

It’s probably easier to do what your trying to do using a dictionary rather than an array:

table.insert(PlayerList.ElevCheck, {Name=Player.Name, Id=Player.UserId, TruePlayer=false})


local TPList = {}
for i, v in pairs(PlayerList.ElevCheck) do
	if v.TruePlayer == true then table.insert(TPList, game.Players:GetPlayerByUserId(v.Id))  end
end