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

How would I go about removing strings from an array instead of the index number?

Because when players are going to be added to the table then it's all up to variables

1 answer

✓ Accepted answer

You can do a for i,v loop on the table and check if v is equal to the string then remove it using i.

for i,v in pairs(table) do
	if v == "StringHere" then
		table.remove(table, i)
	end
end

1 comment

0

table.find exists

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