I want to do something like this.
for i = 1, 10 do number += 1 game.part[number] end What this is for is that I have a bunch of parts called part1, part2, part3, etc. and I want a for loop to count up that number, thus calling a different part while keeping the name normal.
for i = 1, 10 do number += 1 game.part[number] end
You can try to either use that i and search it on their name, or use the special key %d to get the numbers.
i
%d
You could do that or…
for _, part in ipairs(Folder:GetChildren()) do -- By Using ipairs you are able to go in order end
could you explain further? I don’t think I quite get it
It is a loop that goes through every child in a folder (all of the parts in a folder)
As for your bit of code, you can use this:
for i = 1, 10, 1 do — start number, stop number, count interval