Cant seem to figure out why the clone is moving to first node and not node given

Code:

for Num = NodeNumber.Value , #Nodes:GetChildren() do
    Hum:MoveTo(Nodes:FindFirstChild(NodeNumber.Value).Position)
    Hum.MoveToFinished:Wait()
    NodeNumber.Value = NodeNumber.Value + 1
end

I told it to move to the node number that was given not the 1st one. any advice?

1 Like

Maybe a part interfered with it when the NPC moved to the first node thus Hum.MoveToFinished:Wait() stopped it from incrementing nodes. What happens when you add a print(NodeNumber.Value) at the beginning of your loop?

I forgot to set the node before I cloned the bloon. So the script ran before it was set. I fixed it.