local match = {
“12345678910” = { – Here = nil works and it will be deleted
“1324” – Here = nil dont works and it will be not deleted
},
“10987654321” = { – Here = nil works and it will be deleted
“2413” – Here = nil dont works and it will be not deleted
}
}
Im using match[tostring(player.UserId)] = nil but in some cases this dont works.
Could somoene explain why?
Doing so,
the player’s ID becomes a Key and {} becomes its value, meaning, match will become a dictionary now. So be careful not to be confused with arrays
I mean one guy creates a Game and his UserId is in the Table and if People want to join him their UserIds will be inside the UserId who created the Game.
If the Player Who Joined the Guy, who created the Match is leaving, the UserId inside the UserId will delete. I tryed it with = nil but it dont worked its just worked if i nil the UserId from the Guy who Created the Match.