Is there a way to make this npc walk to the point instead of teleporting?

I am trying to make something were a zombie moves to a part, but instead it teleports. Script

local Zombie = game.ReplicatedStorage.Enemies.Zombie
local Part1 = game.Workspace.Part1
function wave()
	local ZombieClone = Zombie:Clone()
	ZombieClone:SetPrimaryPartCFrame(CFrame.new(-108.33, 0.5, -27.21))
	ZombieClone.Parent = workspace
	wait(1)
	ZombieClone:MoveTo(Part1.Position)
end
wave()

no errors

1 Like

You are setting the PrimaryPart’s CFrame. Is that what you want to do? Is it for spawning the zombie in?

yes, it’s for spawning the zombie at a specific spot

Hey there, you’re using :MoveTo on the model and not the humanoid, this will teleport the model.

To fix this use zombieclone.HUMANOIDNAMEHERE:MoveTo(vector3)

5 Likes