Item does not spawn at targetpoint

I created an inventory from this person’s channel: https://www.youtube.com/playlist?list=PLXAwKe8ok5itsisDOQTmSbzFLv-XKpK (I modified it a bit to fit my needs)
I created some items and assigned them items ID’s ranging from one to six.

I am trying to have a random item selected. The Item ID that matches the random integer number is supposed to be spawned. After 5 seconds, a new value will be picked and a new item will be spawned, destroying the older one.

What is the problem?