Creating a magnetic field on pickup that attracts certain objects

It worked! Thank you so much! Brilliant help and quick answers!