adomybruh
(100percentnotalt)
June 24, 2024, 7:15pm
#1
I am making a tower defense tho i have frames named one, two, three, four, five
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
adomybruh
(100percentnotalt)
June 24, 2024, 7:26pm
#3
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
adomybruh
(100percentnotalt)
June 24, 2024, 7:29pm
#5
uh
mostly works?
why did it skip 1 and went to 5
here is what i have
1 Like
Reparent the frames to the Towers frame one after another and retry.
1 Like
Why are you using ipairs in your loop? Maybe thats the problem.
Try just using pairs.
1 Like
adomybruh
(100percentnotalt)
June 24, 2024, 7:37pm
#11
tryed using pairs and ipairs and nothing and still doesnt work
1 Like