A game object i created i can't get the transform of for some reason...

obj_currentTarget = getObjectOfTarget(“Player”);
trans_currentTarget = obj_currentTarget.transform;

Object getObjectOfTarget(string targetName)
{
    return GameObject.Find(targetName);
}

i get the error UnityEngine.Object doesn’t have a definition for transform… i just used something similar…

you’re right, Object does not contain a definition for transform

 GameObject getObjectOfTarget(string targetName)
 {
     return GameObject.Find(targetName);
 }

try this