The title is a little vague, but in the Developer Help article of “Moving NPCa between points” nothing moves, and there is no real animation.
I am using a Noob model (has everything I need) and I’ll show the script down below
local Noob = script.Parent
local NoobHumanoid = Noob.Humanoid
while wait(2) do
NoobHumanoid:MoveTo(Vector3.new(Noob.PrimaryPart.Position.X + math.random(-10,10),-10,Noob.PrimaryPart.Position.Z+math.random(-10,10),-10))
end
If anyone can help me with this problem, please let me know.
Also, there are no errors in the output.
Updated Script:
local Noob = script.Parent
local NoobHumanoid = Noob.Humanoid
while task.wait(2) do
NoobHumanoid:MoveTo(CFrame.new(Noob.PrimaryPart.Position.X + math.random(-10,10), -10, Noob.PrimaryPart.Position.Z + math.random(-10,10)))
end
is the problem occuring because of the vector3 you defined? im not entirely familiar with the syntax of vectors, but try moving it to vector3.new(10,0,10) or something like that.
local Noob = script.Parent
local NoobHumanoid = Noob.Humanoid
while task.wait(2) do
NoobHumanoid:MoveTo(CFrame.new(Noob.PrimaryPart.Position.X + math.random(-10,10), -10, Noob.PrimaryPart.Position.Z + math.random(-10,10)))
end