How can i get table name?

local Ex = {
	["How can i get this name?"] = 12
}

for _, x in pairs(Ex) do
	print(x.Name) -- ERROR
end
1 Like

You’re close, use

for key, x in pairs(Ex) do
	print(key) -- Prints the key or as you said, name.
end
1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.