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.