You did not place your destroy code in a function. Create a new function that waits for a few seconds before destroying the model, and connect that function to Humanoid.Died
local Humanoid : Humanoid = script.Parent:FindFirstChild("Humanoid")
local NPC = script.Parent
Humanoid.Died:Connect(function()
task.wait(3)
NPC:Destroy()
end)