using gameobject.find('key') but i want to make it with a tag

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

Please look at the documentation.

Note: Don’t use GameObject.Find too much if your on Android or iPhone,also don’t use it in Update function. Use a public array instead.
@Jrusso17