attempt to index a string value with bad key ('name' is not part of the string library)

Hello FP, we coded a script which uses a for table to create DLabels, and then we get the error, the table is built like
“local tbl = {name = “blah”, bool=false}”, and the DLablel is called name.

the for loop is like



for _, v in pairs do
    DLABEL STUFF
    name:settext(v.name)
end


What causes the error though?

v is a string, and you are trying to index it.
post full or at least more code with the full error