game:GetService('Teams'):GetChildren()
I want to remove a team from this table(I think this is a table) But I don't know how to do so.
Attempt 1 (Using table.remove())
Code :
local team = game:GetService("Teams"):GetChildren()
table.remove(team , "Lobby")
Output :
ServerScriptService.Script:2: bad argument #2 to 'remove' (number expected, got string)
Attempt 2 (Finding the position and then removing it with table.remove())
Code :
local team = game:GetService("Teams"):GetChildren()
print(team)
Output :
table: 0xe3a8b27dd6e99e38
Help is really appreciated!!!

1 comment
table.remove() take two argument. First one is the table, second one is the position of the key. But :GetChildren() is alway return a random order table, so it hard to know the position of "Lobby".