local Left = script.Parent.Left local LeftFront = Left:FindFirstChild("UpFrontLeft") local Left = Left:FindFirstChild("Front") local LeftRear = Left:FindFirstChild("UpFrontBack") local LeftFrontLower = Left:FindFirstChild("DownFrontLeft") local LeftLower = Left:FindFirstChild("DownFront") local LeftRearLower = Left:FindFirstChild("DownFrontBack") local L = { LeftFront, Left, LeftRear, LeftFrontLower, LeftLower, LeftRearLower } for index = 1, #F do local value = F[index] print(index, " = ", value) end
It only prints:
1 = UpFrontLeft 2 = Front
If I change #F to 5, for example, it gives me:
1 = UpFrontLeft 2 = Front 3 = nil 4 = nil 5 = nil
You should use:
WaitForChild: -- instead of FindFirstChild:
This will allow things to load before your script just goes and rushes through everything. You could also put like a wait before the table so everything can load, but waitforchild is better.
So I found a very weird solution for this which could be found here, if you know why, please explain it to me!