-
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
-
What is the issue?
The Humanoid goes in the strangest directions, and usually the opposite direction but vertically.
-
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)