#NPC keeps bobbing up and down when using MoveTo with walk to part second argument

7 messages · Page 1 of 1 (latest)

drowsy crest
#

local Player = game.Players:WaitForChild("Fischbones")
local Character = Player.Character or Player.CharacterAdded:Wait()
local CharacterHRP = Character:WaitForChild("HumanoidRootPart")
local CharacterHead = Character:WaitForChild("Head")

local Rig = script.Parent
local RigHRP = Rig:WaitForChild("HumanoidRootPart")
local RigHumanoid = Rig:WaitForChild("Humanoid")

for i, Part in ipairs(Rig:GetChildren()) do
if Part:IsA("BasePart") then
print(Part)
Part:SetNetworkOwner(nil)
end
end

RigHumanoid:MoveTo(CharacterHead.Position, Character)

RigHumanoid.MoveToFinished:Connect(function()
RigHumanoid:MoveTo(Character.PrimaryPart.Position, Character.PrimaryPart)
end)

#

This is the code

#

And this happens even when the NPC is far away from the target, it still bob up and down

bright copper
#

hes climbing you

#

get the unit and subtract it by 1

drowsy crest
#

Actually you could be right, there is some sort of delay on my side but it’s definitely climbing even though NPC doesn’t appearing to be touching