how to make Items get close to character like magnet?

Hi, im working in some scripts that when an objetc or item came closer to the character the item go to that position, like if the character just absorb it like an magnet. So the question is, how can i get the position of the player? is this script must be in the item or in the char? and can i give some radius to the item like a limit to be absord? thanks

You can achieve that magnet effect by using an inverse explosion force like shown here: