Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

Why I Can't Print the Players in the table?

(MapChanger is the Folder's Name) Workspace.MapChanger:78: invalid value (table) at index 1 in table for 'concat' Why I Can't Print the Players in the table?

local allThePlayers = game.Players:GetChildren()
local playersInRound = {}
	
table.insert(playersInRound, allThePlayers)
 print("Currently players in the table are: "..table.concat(playersInRound, (", ")))

1 answer

So, table.concat won't work for this. I recommend doing this:

print(Players in game:)
for i, plr in pairs(playersInRound) do
	print(plr.Name)
end

You can't print a whole table matrix. So, you have to print name by name. Which is what I did.

2 comments

0

I Get error at the first line at the In, I have never seen someone Print like this?

0

Then just try printing all the players in game first

This discussion is preserved as it was. New answers, comments, and votes are closed.