Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

I have error( Humanoid NPC walking script) how to fix it?

Asked by 3 years ago
Edited 3 years ago

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
0
Please put your code in lua code block Soban06 410 — 3y
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? AlexanderYar 788 — 3y

Answer this question