Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

is it possible to remove a value from an array using its value?

local t = {1,potato,2,3,4}
table.remove(t,1) --removes first position of the array
-- i was wondering if it was possible to remove potato without using table.remove(t,2), could i remove potato using the word itself (potato)?

thank you

1 answer

✓ Accepted answer

table.remove will be expecting a number value in its parameter so that likely won't work syntax wise. That being said there is more than likely a way to remove it from the table but I'm personally not too sure on the syntax for it. If I find anything while reading about it I'll message you.

This discussion is preserved as it was. New answers, comments, and votes are closed.