so i i am creating a game where you need to find keys and pick them up. although i will need to assign a tag or make many different scripts for each key
carryingBlue = true;
GameObject.Find(‘key’).transform.parent = GameObject.Find(‘MainCamera’).transform;
this is just a sample but i would like to change the gameobject.find(key) to find a tag