So I have an NPC follow script, and I've had this issue for a while. When you kill the NPC, the follow script just stops working with no errors in the output.
function ready(tmp_plr) game:GetService("RunService").Stepped:connect(function() local yes, error = ypcall(function() if (math.abs((tmp_plr.Character.Head.Position-script.Parent.Head.Position).magnitude)) < 90 then script.Parent.Humanoid:MoveTo()(tmp_plr.Character.Head.Position) else print("Humanoid not found") end end) end) end game.Players.PlayerAdded:Connect(function(p) ready(p) end)