So I tried doing [1] but it just errors
--[[
Script
--]]
function Crate(player,users)
local nn = PlayersDataBase:GetAsync(player.UserId,users)
PlayersDataBase:SetAsync(player.UserId,users)
for i,v in pairs(nn.Foxy_Lover213) do
print(v[1])
end
end
Here's the table
Players = {
["5_zn"] = {
Enabled = false,
UserID = "",
UserName = "",
Rarity = 5,
Amount = 0,
},
BOF = {
Enabled = false,
UserID = "",
UserName = "BOF",
Rarity = 5,
Amount = 0,
},
["Foxy_Lover213"] = {
Enabled = false,
UserID = "343563692",
UserName = "Foxy_Lover213",
Rarity = 1,
Amount = 0,
},
["Lord_Baconnn"] = {
Enabled = false,
UserID = "429533714",
UserName = "Lord_Baconnn",
Rarity = 1,
Amount = 0,
}
}

1 comment
print(nn.Foxy_Lover213.Enabled)