How can i remove the item from my inventory system

So what I would like to happen is when I press E, after the timeline is finished, remove the item used to perform the timeline.

Couple things:

1 - You’re performing a cast that is apparently unnecessary in your first and third screenshot, that’s why there’s that light blue stripe at the bottom of it.

2 - Your remove item function doesn’t really work, because you’re creating a new Item and attempting to remove it from the item box (even though it’s not there). What you might want is to receive a reference to an item that IS inside the item box and remove that item instead (i’m guessing you have to use the index in the remove function to get the child at that index, and then remove it).