Humanoid:Move() Going random directions

  1. What do you want to achieve?
    For the Humanoid to move in the correct and given direction.
    The Humanoid should move somewhere to this position
    image

  2. What is the issue?
    The Humanoid goes in the strangest directions, and usually the opposite direction but vertically.
    image

  3. What solutions have you tried so far?
    Humanoid:MoveTo() Also doesn’t work.

-- This is the moving and offset part
local AddOffset = script.Parent.Torso.Position + Vector3.new(-300,0,0)
print(script.Parent.Torso.Position)
warn(AddOffset)

script.Parent.Humanoid:Move(AddOffset)
Full Code
local PhysicsService = game:GetService("PhysicsService")
for i, object in ipairs(script.Parent:GetDescendants()) do
	if object:IsA("BasePart") then
		PhysicsService:SetPartCollisionGroup(object, "NPC1")
	end
end

script.Parent.Humanoid.Died:Connect(function()
	local RandomNum1 = math.random(1, #script.Parent.Death.Blood:GetChildren())

	script.Parent.Death.Blood:FindFirstChild("Blood"..RandomNum1).Transparency = 0
	for i, object in ipairs(script.Parent:GetDescendants()) do
		if object:IsA("BasePart") then
			object.Anchored = true
		end
	end
end)

task.wait(5)
local AddOffset = script.Parent.Torso.Position + Vector3.new(-300,0,0)
print(script.Parent.Torso.Position)
warn(AddOffset)

script.Parent.Humanoid:Move(AddOffset)
script.Parent.Torso.Position

Model itself also has Position value. And if R15, HRP is correct one.

That’s why I using CharacterRootPart.

It’s R6. What do I do then? (character limit)

:Move() uses a normalized direction. If you want the humanoid to move to a certain vector3 position, use :MoveTo().

Doesn’t work.


The part next to the Humanoid is 300 studs, and I’m telling it to move 500 studs. It stops at around 100.

Humanoids can only move for 8 seconds at a time using :MoveTo(), so you’ll need to break up the move function into more commands. Also, your script is subtracting only 300 X, not 500.

2 Likes

I changed it, but I forgot to update it. Thank you.

1 Like