it's meant to run from 0-8, but it runs from 8-0. ive already tried ipairs.
for _, v in pairs(pathfindingFolder.spotsInLine:GetChildren()) do
print(v)
if v.occupied.Value == false then
v.occupied.Value = true
followPath(v.Position)
if v.Name == "0" then
wait(3)
script.Parent.HumanoidRootPart.CFrame = v.CFrame
end
return
end
if v.Name == 8 then
print("not enough spots")
end
end
** You are now Level 7! **