Creating a magnetic field on pickup that attracts certain objects

Hi!
You can quickly achieve this with timeline and lerp.
See the images attached.
The static mesh component is the mesh or bp you want to magnet to your character.
Good Luck!!