-
I need to make the NPCs move with animations
-
The NPC(which i got from the rig builder) arent using animations when walking.
-
I tried to look at other forums and asked ChatGPT but it didnt work
After that, you should include more details if you have any. Try to make your topic as descriptive as possible, so that it’s easier for people to help you!
local function MoveNPC(folder, NPC)
local Checkpoints = {}
for _, part in folder:GetChildren() do
if part:IsA("Part") then
table.insert(Checkpoints, part)
end
end
table.sort(Checkpoints, function(a,b)
return a:GetAttribute("Order") < b:GetAttribute("Order")
end)
for _, part in Checkpoints do
local Pos = part.Position
NPC:WaitForChild("Humanoid"):MoveTo(Pos)
NPC:WaitForChild("Humanoid").MoveToFinished:Wait()
end
end
Here is the model in the expreince:


