So my script is supposed to make the NPC jump when it touches a part but not when it touches a part in a player but it doesn't work. Can anyone help me out?
local zombo = script.Parent.Parent:WaitForChild("Zombie") -- Name of NPC's Humanoid
zombo.Touched:Connect(function(Hit)
if Hit.Parent.Name ~= {"Torso","Left Arm","Right Arm","Left Leg","Right Leg","Head"} then
zombo.Jump = false
else
zombo.Jump = true
end
end)
