Payers = game:GetService("Players")
Outgame = {}
table.remove(Outgame,Payers.Name)
✓ ANSWER ACCEPTED
How do you remove something from a table??
1 answer
✓ Accepted answer
Here's an example of how to do it:
ValueToRemove = "Player3"
Table = {"Player1", "Player2", "Player3"}
for i = 1, #Table do -- Iterates through the table
if Table[i] == ValueToRemove then -- If the value it's currently on is the same as the value you are attempting to remove then...
table.remove(Table[i]) -- The value gets removed
end
end
This discussion is preserved as it was. New answers, comments, and votes are closed.
