I am using a table to get every single item, and I only want it to print the last item inserted instead of every item in a row
note that:
autseletcion is the table
cool is the item
I am using a table to get every single item, and I only want it to print the last item inserted instead of every item in a row
note that:
autseletcion is the table
cool is the item
Why would you not just print(cool)
? You already have that value (whatever it is) as a variableā¦
Anyways:
local num: number
for i,autoselected in ipairs(autselectcion) do
num = i -- this will overwrite the "num" variable 1 by 1 until the loop is done!
end
print(num)
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.