Try My Game!

I think the function gets an item depending on the cursors position, by getting every items position and checking if it’s close. what I want is getting an items position, which can be used with that?