Killing enemy while targeted gives "Is Pending Kill" error"

Currently when I try and destroy an enemy I get that error. After googling around they said it’s because of the event tick. So I replaced event tick with a timeline. The problem with that though is 1) it didn’t fix the problem and 2) the timeline is too slow and the camera rotation “Lags” behind. The error leads into the “Camera rotation when targeted” function(third picture).

Thanks in advance for any help!