Error:Zombie is not a valid member of Humanoid "Workspace.Terrain.Mapa1.NPC.Zombie1.Zombie" Humanoid name is:Zombie

local NPC = script.Parent.Zombie

while true do
	NPC.Zombie:MoveTo(script.Parent.Point1.Position)
	NPC.Zombie.MoveToFinished:Wait()
	wait(1)
	NPC.Zombie:MoveTo(script.Parent.Point2.Position)
	NPC.Zombie.MoveToFinished:Wait()
	wait(1)
	NPC.Zombie:MoveTo(script.Parent.Point3.Position)
	NPC.Zombie.MoveToFinished:Wait()
	wait(1)
	NPC.Zombie:MoveTo(script.Parent.Point4.Position)
	NPC.Zombie.MoveToFinished:Wait()
end

2 comments

0

Please put your code in lua code block

0

is "Workspace.Terrain.Mapa1.NPC.Zombie1.Zombie" where this script is located? or is it just refrencing the npc? also whats the name of the humanoid?