I need help with my script. I’m making a script and I’m trying to see how many objects I have in a table. I created my table in the script (That means I didn’t create a folder).
fyi this is in a Function
print("Done imageID")
for i, v in pairs(GroupInfo) do
print("For loop")
print(v)
end
print("End of Function...")
So I do know my script skips my For Loop because in my Output I get “Done imageID”,"End of Function..."
Okay - {} means that your table is empty, it has nothing inside of it. Obviously, it now makes sense why your for loop gets skipped: Roblox runs your for loop, but sees that the thing you’re looping over is empty - there isn’t anything to loop over. That is why it seems like it just gets “skipped” (as the people above me explained correctly).
The issue seems to be with the way you’re inserting data into your table, that’s where you have to investigate further.