Printing the content of a table?
I have a script that adds to the table, but what I'm trying to do is that every 10 seconds, it will print out the contents.
02 | game:GetService( 'Players' ).PlayerAdded:connect( function (player) |
03 | player.CharacterAdded:connect( function (character) |
04 | character:WaitForChild( "Humanoid" ).Died:connect( function () |
05 | table.insert(deadPlayers, player.Name) |
12 | print (#deadPlayers:GetFullName()) |
But I don't know how to fix it.
My error
1 | 21 : 04 : 48.821 - ServerScriptService.Script: 12 : attempt to call method 'GetFullName' (a nil value) |
2 | 21 : 04 : 48.823 - Stack Begin |
3 | 21 : 04 : 48.825 - Script 'ServerScriptService.Script' , Line 12 |
4 | 21 : 04 : 48.827 - Stack End |