This one works perfectly:
local Front = script.Parent.Front local FrontLeftLower = Front:WaitForChild("DownFrontLeft") local FrontRight = Front:WaitForChild("UpFrontRight") local FrontLower = Front:WaitForChild("DownFront") local FrontLeft = Front:WaitForChild("UpFrontLeft") local FrontRightLower = Front:WaitForChild("DownFrontRight") local Front = Front:WaitForChild("Front") local F = { FrontLeft, Front, FrontRight, FrontLeftLower, FrontLower, FrontRightLower } for index = 1, #F do local value = F[index] print(index, " = ", value) end
This one gives an infinite yield:
local Front = script.Parent.Front local FrontRight = Front:WaitForChild("UpFrontRight") local FrontLeft = Front:WaitForChild("UpFrontLeft") local Front = Front:WaitForChild("Front") local FrontLeftLower = Front:WaitForChild("DownFrontLeft") local FrontLower = Front:WaitForChild("DownFront") local FrontRightLower = Front:WaitForChild("DownFrontRight") local F = { FrontLeft, Front, FrontRight, FrontLeftLower, FrontLower, FrontRightLower } for index = 1, #F do local value = F[index] print(index, " = ", value) end
The only difference between these 2 is that the second one is more organized than the first one. Can someone explain why?