Hello, I am making a players table so I can easily access players, but here is my problem:
local playersTable = {}
game.Players.PlayerAdded:Connect(function(player)
table.insert(playersTable, table.getn(playersTable) + 1, player)
end)
print(playersTable)
Once I run this script I get this in the output: table: 0x51474be0bb02eb5c I probably shouldn't use table.getn I'm guessing? If not then what could I use? Sorry if this question is easy, but I look over the developer hub and couldn't find anything

1 comment
Thank you!