I am trying to create parts of tables many times but with different arguments. To do so, I have created a new function that takes a parameter, which is then used in a function in the table. My IDE shows the use of the parameter value inside the function as an "Up-value" problem.
Is there any way I can achieve this functionality without that issue?
function createTable(value)
myTable = {
name = 'Table',
args = {
time = 0,
score = {
function()
return value / 2
end
},
},
}
return myTable
end