How to connect a script to another script that is attached to a gameObject

I have an Inventory at my game, and if pick an Item it will go to the inventory but when I drag and drop the item I want the script to setactive to true an object that the script is attached to but if I find object with tag
it drops all the item I pick up.hope you guys understand.

Is this what you’re looking for?

yea but if I find the tag it will detect all of my items that has a tag.