-- Get the NPC's Humanoid

local humanoid = npc:FindFirstChild("Humanoid")

if humanoid then
	-- Set the NPC's health to the new value
	humanoid.MaxHealth = newHealth
	humanoid.Health = newHealth
else
	warn("This NPC does not have a Humanoid.")
end
