Im trying to print the opposite of a, b, a, a but its not working, help
a = true
b = false
new={ }
bool = { a, b, a, a}
print(table.unpack(bool, 1, #bool))
for k, v in pairs(bool) do
for i = 1, #bool do
table.insert(new, not v)
end
end
print(table.unpack(new, #new))
Output : true false true true False
Edit(forgot to add iteration, changes to false once but wont insert the others.

1 comment
Thanks!