ok so im trying to make a game where the players character walks to a point within the game. (without them manually controlling the player)
now i am trying to make a model of this, for later use, and i have a part named aaa in the workspace, and a part in the workspace with a script:
script.Parent.Touched:Connect(function(s) local humanoid = s.Parent:WaitForChild('Humanoid') humanoid.WalkToPoint = Vector3.new(91, 0.5, 131.75) end)
it works, the player walks to the aaa, but theres this issue when player tries to control themselves, they snap and are able to control themselves again, can somebody help me please?
You got the right idea going. You actually just have to do this:
-Get the humanoid from the player's character;
-Use the Humanoid:MoveTo() method
script.Parent.Touched:Connect(function(s) local position = Vector3.new(91, 0.5, 131.75) local humanoid = script.Parent:WaitForChild("Humanoid") --parented to character humanoid:MoveTo(position) --call MoveTo() on humanoid end)