How Can I Check The tag ?

How can I check the tag that a game object holding this script has? thank you for your time…

so it will b a random new script that just checks for the tag of the parent game object

In order to get the tag of the GameObject your script is attached to you only need to write: gameObject.tag

… void Update() { string tag = transform.parent.tag; } :confused:

Use GameObject.tag in combination with transform.parent.

var parentsTag = transform.parent.gameObject.tag;

sounds like your asking for three different things, might want to reword your question.

but the link above will help you for any question(s) you may have.