Ok there’s 2 type of errors here. The first one is saying that you are trying to access the pawn that your controller has but it’s unable to find it. Maybe you destroyed the player pawn in some way? and at this moment of code that you are trying to access the pawn, it hasn’t respawned yet or something like that.
The other bunch of errors are saying that you can’t access cockroaches because they are pending to kill meaning that they were destroyed/killed. Perhaps your there’s something killing the cockroaches instantly or you are calling the OnDeathCallback event way too early?
If you show some more screenshots with this code, I could be able to pinpoint the problem better.
The funny thing is that i did restart the engine and it actually worked. But i am still trying to figure out why it did not wanted to spawn, i had the same problem once in the past and i remember that i was not killing them intentionally, so how can it says that that actor is gonna die, when in fact there is no instruction to delete it.