Hi. I Want to make a zombie climb over a small wall. This is a ServerScript inside a part, behind the wall
local climbing = false
script.Parent.Touched:Connect(function(hit)
if climbing == false then
print("yes")
if hit.Parent.Name == "HumanoidRootPart" or hit.Parent.Name == "LowerTrorso" or hit.Parent.Name == "UpperTorso" then
print("Yes")
local zom = hit.Parent.Zombie
local anim = zom:LoadAnimation(script:FindFirstChildOfClass("Animation"))
anim:Play()
anim.Looped = false
climbing = true
wait(2.2)
climbing = false
print("YES")
end
else
print("no")
end
end)
The script prints yes a lot of times, but nothing else. No error codes

2 comments
THANKS YOU SO MUCH!!
(The 2.2 is the animation length, so if I want to run something after the animation, I can just insert there. Thank you again)