Hello, I have a little code which is for my game. Take a look at the script:
players = game.Players:GetPlayers()
if table.getn(players) >= 4 then
crim = players[math.random(1, #game.Players:GetPlayers())]
table.remove(players, players[crim.Name])
plrs = tostring(players)
print(plrs)
print(players)
...
This is in a while true do loop. So I am selecting one player as a criminal, and then removing it from the 'players' table, to make everyone else a police. But when I try to convert the table to a string (to test if it worked), it gives me 'table:' and random characters, such as 13E2F21, both times: print(plrs) and print(players).
My question is, how to convert a table to a string? Sorry for my bad English EDIT: I have tried to comment table.remove(......) with --, but it still not converted the table to string

1 comment
Don't forget to accept my answer if it works.