I don't know why the double table hasn't been working, but it was working previously with just a single table like this:
local stats = {}
if stats[0] then
-- Do stuff with stats
else
stats[0] = true
end
Here is what I am trying to change it into:
local pn = "playerName"
local stats{[pn]={}}
if stats[pn][0] then
-- Do stuff with stats
else
stats[pn][0] = true
end
The problem with the new piece of code is that the if stats["PlayerName"][0] then brings an error instead of saying it's true or false. Also, while I was tryig to fix this, the script is acting like if the "PlayerName" table doesn't exist..
Any help is appreciated, thanks!

2 comments
Do stats[pn][1]
It still brings an error with your idea, the number value doesn't make the error change.