I'm working on a tornado formation script, and I was wondering if there was a way to have a loop like this go through parts in a certain order:
local parts = script.Parent:GetChildren()
for i, part in pairs(parts) do
if part:IsA("BasePart") then
repeat
part.Transparency = part.Transparency - 0.07
wait(0.1)
until
part.Transparency <= 0.3
end
end
What I tried to do was name the parts in a certain way so that they would be cycled through in alphabetical order, which is what I thought it would do. Is there a way I can have the loop cycle through parts in a certain order?
