Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

(Solved)Why MoveTo Function Dosent Work For Me?

Asked by 5 years ago
Edited 5 years ago

I have inserted an NPC into the workspace with the roblox Rig Builder Plugin Then I inserted a script To it , this is was what i writed in the script : ~~~~~~~~~~~~~~~~~ Script.Parent.Humanoid:MoveTo(vector3.new(32,0,0 ~~~~~~~~~~~~~~~~~ Here is what the NPC Has : HumanoidRootPart(The Primary Part Of the Model),Joints(Motor6D)

2 answers

Log in to vote
1
Answered by 5 years ago
Edited 5 years ago

Try WalkToPoint

script.Parent.Humanoid.WalkToPoint = Vector3.new(32,0,0)

Hopefully this helps, I tried using MoveTo() but I have a feeling it is depricated... Cause it never works.. I then found out about WalkToPoint...

The parent must be a humanoid in order to walk to the point.

Ad
Log in to vote
0
Answered by 5 years ago

you have to move the character model

Script.Parent:MoveTo(vector3.new(32,0,0)

Answer this question