How do I check if they are in the table?

I am trying to add a reward system for this round system, there is a table named “AlivePlrs”
how do I check if the local players name is in it? (this is from server)

Loop through game.Players and compare with the name

Maybe use for i, v in pairs loop.

like this

for i, v in pairs(AlivePlrs) do
    -- oh yeah this is how you will get the player's name
    for i, player in pairs(game.Players:GetPlayers()) do
    if player.Name == v then
        -- code here
    end
end

Thank you! I struggled to understand for loops

Same too when I don’t understand for i, v in pairs loop.

Also thank you!