How to read table output

So let me take it simple.
I once remember that it prints out a table which contain a data value of each table value. But now it prints out “table: 0xaa30a3d202dffc8a” which makes me frustrating since I cant fix a code without knowing whats inside the table. Help me!

1 Like

What your saying it prints out is just the memory address of a table, just use a for loop with ipairs to print out the index and values of your table

2 Likes

I tried:

local stuff = {Name = "Wolf",Equip = true}

for index,value in ipairs(stuff) do

print(index,value)

end

it doesnt print anything :frowning_face:

Also forgot to mention. I used a variable too. Ex {A = 134.43,B = 53.28} Not {134.43,53.28}

Alright I figured out by this document Tables (roblox.com)
on the part of “Reading the dictionaries”

This may or not be what you would be looking for since you already found a solution but you can print out dictionaries like this

local tbl = {[1] = "Wolf", [2] = true}

for i,v in ipairs(tbl) do
	print(tbl[i])
end
1 Like

Turning off ‘Log Mode’ in the output settings will make tables expandable and viewable in the output.

Click the 3 dots in the top left of the output window and uncheck ‘Log Mode’.

2 Likes

This is a better explanation, i’ll mark this as a new solution. Thanks everyone for helping me!

Because your using ipairs, ipairs only works for arrays, use pairs Instead.