I have a zombie which is anchored when spawned, but after 3 seconds it gets unanchored and just falls down. I want the zombie to instantly start walking when he gets unanchored. I am trying to make an animation, where a zombie comes up from the ground, like in the game Zombie Attack. This is the code I have now:
function SpawnZombie()
local zombieTorso = script.Parent.HumanoidRootPart
--zombieTorso.Anchored = true
script.Parent.Torso.CanCollide = false
script.Parent["Left Leg"].CanCollide = false
script.Parent["Right Leg"].CanCollide = false
for i = -5.5, 4.5 do
zombieTorso.CFrame = CFrame.new(zombieTorso.Position.x, i, zombieTorso.Position.y)
wait(0.1)
end
--zombieTorso.Anchored = false
script.Parent.Torso.CanCollide = false
script.Parent["Left Leg"].CanCollide = true
script.Parent["Right Leg"].CanCollide = true
zombie:MoveTo(Vector3.new(0, 0, 0))
end

9 comments
I know how to make it walk, but after I unanchor the zombie it just falls down and after a few seconds starts to walk
If the CanCollide property is set to true, then i'd recommend sending your code in the question.
https://gyazo.com/149040d3ebd978165bb6edbf03dadf4f Here is what happens
Have you tried placing the zombie in the ground?
Yes, the zombie always falls down.
Maybe it's the code then, I don't know, since I can't see the code.
You can check the code now.
Can we see the whole script?
There is nothing else that controls the zombie in the script