Rotate child of gameobject

so i have a gameobject with a chase script so it follows the player, and for some reason if i apply rotation to this gameobjet it breaks the chasing script so, i was thinking about rotating a child of this gameobject(which is the graphics).

at the start void i have:
graphicsTransform = transform.Find(“Graphics”).gameObject;

and then while chasing i have this:
graphicsTransform.transform.LookAt (player.transform); //this is the line where i get the ERROR:

to be honest i dont understand why it isn’t working i am kinda new to unity and scripting

ERROR: NulReferenceException: object reference not set to an instance of an object

nvm, found a solution, i dont know how to delete or close the thread

Threads here aren’t deleted or closed (I mean I guess a moderator/staff could do that, but that would probably be if it was obscene.) Regular ones aren’t ever closed/deleted … At least, not that I’ve ever seen :slight_smile:
Glad you got your solution, though.