local VotingUIs = {
script.Parent:WaitForChild("Classic"),
script.Parent:WaitForChild("Combat"),
script.Parent:WaitForChild("Double Killers")
}
for i, v in ipairs(VotingUIs) do
print(v)
end
using both pairs and ipairs work here, but i want to know which is better to use in this situation.
even though the forum says that ipairs() is for arrays, pairs() seem to work for arrays as well

1 comment
they would be the same for that i think. pretty sure ipairs and pairs are the same but ipairs stops when something is nil https://scriptinghelpers.org/questions/2725/difference-between-pairs-ipairs-and-next