This code:
function foo() return 1, 2, 3 end bar = {} bar = {a, b, c = foo()}
produces:
bar.a = nil bar.b = nil bar.c
If you can, have foo() return a table formatted the right way.
function foo() return {a = 1, b = 2, c = 3} end bar = foo()