You do not have a child named “line0”; double check that it’s there and that the script is being called from the parent of “line0”.
EDIT: ahh found it I see. The distinction is that “transform.find” will find a child of that transform, whereas GameObject.Find will find any object in the scene, not just children. (though it can if you give it a hierarchy path)