Freeze while picking up an object

Hello and thank you for taking the time to help me. I have a problem in my project when I pick up an object to put it in my inventory. When I interact with the object my screen zooms and freezes and I can’t do anything. However my code can be compiled and until now it worked normally. I don’t understand what is wrong. Thanks again for helping me.

Hi, in your second image you use DestroyActor and destroy the BP_Piggy character (if thats the pawn the player is currently possessing, then that would explain the freezing). Maybe you wanted to destroy the item instead?

Hello chrudimer,
Yes that was the problem thank you very much. I actually wanted to destroy the object and not the pawn of my character. Thanks again for helping me.