How to make a script look at one till x

I am making a tower defense tho i have frames named one, two, three, four, five
image
i want it to start looking from one to five


in the circle i want to count from one to five because it goes to five in instant or four which i dont want
if you dont understand somthing please ask me
if you have discord this is my username “aadomy21”

2 Likes

Roblox Studio always sorts children in an alphabetical order. Instead of “Five”, “Four”, “Three”, … rename them to the actual numbers 1, 2, 3, 4, 5.

1 Like

ok and how do i get from 1 to 5

1 Like

Roblox does that automatically for you.

This also applies to getting children from a script.

1 Like

uh


mostly works?

why did it skip 1 and went to 5

here is what i have

image

1 Like

Reparent the frames to the Towers frame one after another and retry.

1 Like

rejoined and it aranged
image

1 Like

same problem :sob:

1 Like

Why are you using ipairs in your loop? Maybe thats the problem.

Try just using pairs.

1 Like

tryed using pairs and ipairs and nothing and still doesnt work

1 Like