thank you for your answer and it is true that I may not have been clear enough. To tell you the truth I watched this tutorial: Picking Up And Moving Objects | Inspect Item Part 1 - Unreal Engine 4 Tutorial - YouTube
to make an object inspector system. But when I finished there was a bug and this bug is that of not being able to drop the object after taking it. Then I saw the comments of the video and apparently several people had the same bug as me and one person then gave the solution (the one I put above) to solve this problem but I don’t know how to do it.