So lets i have 3 parts, each are called, part1, part2, part3. Now lets say i use a for loop. Is there a way to change the part within the for loop? For example:
for i = 1,3 do
part[i].Name = 'hello'
end
Is there anyway to do that?
So lets i have 3 parts, each are called, part1, part2, part3. Now lets say i use a for loop. Is there a way to change the part within the for loop? For example:
for i = 1,3 do
part[i].Name = 'hello'
end
Is there anyway to do that?
Parts = {
workspace.Part1,
workspace.Part2,
workspace.Part3
}
for _,v in pairs(Parts) do
-- code here eg; v.BrickColor = ()
end
I'm guessing this is what your asking?
If there's any errors just let me know, but I guess this is a decent way to do it? (If this is what your asking)
This discussion is preserved as it was. New answers, comments, and votes are closed.
2 comments
yes it is thank you!
The explanation?