i'm making a game kinda like tower defense simulator where zombies follow a winding path
however, the zombie only moves once and doesn't turn and continue
here's the script:
for i, v in pairs(game.Workspace.Path:GetDescendants()) do
if v:IsA("Part") then
script.Parent.Torso.AlignPosition.Attachment1 = v.ZPos
repeat wait() until script.Parent.HumanoidRootPart.Position == v.Position
script.Parent.Torso.AlignOrientation.Attachment1 = v.ZRot
end
end

2 comments
the position isn't the same
Well theres the problem, your checking the position of the part to see if it matches position of path, bu5 if its never the same it wont run thr next part in the loop