local Table1 = { } game.Players.PlayerAdded:connect(function(player) Table1[player] = { } end)
or
--In ModuleScript local Table1 = { } return Table1
The reason I ask this is because the for loop I'm using doesn't recognize the tables in both of those ways, I can't think of a different way to create a table specifically for the player, without using their ID which doesn't work:
local player.userId = { } --Expected identifier got, '.'
If it is possible how so?
By what it sounds like you're trying to do, no, there's not.
The issue with tables is of course that they are just value holders. You'd have to give extra context to fully understand what you wanted to get from it of course, but you also need to consider why your loop doesn't recognise them.
Perhaps you should try using pairs()
to iterate through tables?