Moving an NPC using Vector3/CFrame

Hello! I am making a game where a monster (npc) goes in the front direction.
I tried using MoveTo, the NPC somehow climbs on the roof of the building so the NPC won’t stay inside, when I used Vector3, only HumanoidRootPart moved, nothing else, not a single foot, arm… Also, I don’t want to use pathfinding, it would not work since there are barricades for players only but the NPC counts it as a barricade for NPC too, canCollide for the NPC is set to false.

Thanks for help!

Have you tried LookVector?

local step = 2
HumanoidRootPart.CFrame = HumanoidRootPart.CFrame +  HumanoidRootPart.CFrame.LookVector * step
1 Like

Let me try it it out now, I will let you know in a minute if it won’t work.

1 Like

It is working, thank you for saving me! (:

1 Like