I cannot loop through an array inside an array? or maybe its just roblox heres my code.
if datastore:GetAsync("Items") then
local items = datastore:GetAsync("Items")
local item = items["Items"]
for i, #item do
print("item looped")
end
print("Success on Giving Items")
end
It wont print “item looped” it just full on ignores the code and prints success still.
the only thing it can print is the array with all the data like print(item) or print(items) and shows me that it does have things to loop through but it still doesn’t. If you have answers please help.
if datastore:GetAsync("Items") then
local items = datastore:GetAsync("Items")
local item = items["Items"]
for i,v in pairs(item) do
print("item looped")
end
print("Success on Giving Items")
end