Can i start a for loop at a specific point?

i have a for loop that i want to start from a chosen address in a folder, in my folder i have many values called 1, 2, 3, 4 ect. I want to be able to start from a specific address like instead of starting at 1 start at 3.

1 Like

this would be a normally running for loop:

for count = 0, 10, 1 do

end

the first number is the starting point of the count, the second is when it ends, and the third is how much it goes up. if you want it to start at 3 just change the first number to 3:

for count = 3, 10, 1 do

end
1 Like

do i make 10 the # in my table?

1 Like

like this right?

1 Like

yes, if you dont want to count how much stuff are in your table, you can do #table

yes correct, but the thing with getchildren() is that it doesnt put the children in order in the table, so thats something to keep in mind.

Don’t use GetChildren, if the instances are named 1, 2, 3 index directly or use FindFirstChild:

local V = game.ReplicatedStorage.RAM.Assembly:FindFirstChild(tostring(count))
--or
local V = game.ReplicatedStorage.RAM.Assembly[tostring(count)]

Maybe thats why my code is not working, lemme try it