For i, v in pairs loop doesn't continue as its supposed to

So basically the code I’m about to show u happens when a player touches the goal checkpoint which is supposed to teleport everyone but them out of the arena, here is the code:
The code:


Remove player function:
image
Result:
image
What am I missing here, what is supposed to happen is my removal but it just doesn’t happen

table.remove(Players, table.find(Players, Player))

1 Like

I am using table remove but the issue is that the for i,v loop doesnt work as expected and i have no idea why. from recent tests it seems that it happens after it goes through the winning player then id just remove 1 player and not the next one after (tested with another 2 players)

(If I remember correctly) If you remove the player in the loop, it will not loop properly and will skip the player after it.