hey guys I have a problem in a 2D game i have where the guys swings his axe and it should break a tree and it comes with this error. MissingComponentException: There is no 'Animation' attached to the "Tree 1(Clone)" game object, but a script is trying to access it. You probably need to add a Animation to the game object "Tree 1(Clone)". Or your script needs to check if the component is attached before using it. UnityEngine.Animation.Play (System.String animation) Hotbar.Update () (at Assets/Scripts/Hotbar.cs:66) And I don't get why the error is there, when I try adding a animation to the tree piece every thing works but the tree spins in a circle whenever I swing my axe. Script One Called Hotbar Code (CSharp): public class Hotbar : MonoBehaviour { private treemouse TM; public bool TreeBroke = false; public GameObject hach; public AnimationClip axe; public int hotbar = 0; void Start () { TM = gameObject.AddComponent<treemouse>(); TM = GetComponent<treemouse>(); } void TreeBreak () { TreeBroke = true; } void Update () { if(Input.GetKey(KeyCode.Alpha1)) { hotbar = 0; } if(Input.GetKey(KeyCode.Alpha2)) { hotbar = 1; } if(Input.GetKey(KeyCode.Alpha3)) { hotbar = 2; } if(Input.GetKey(KeyCode.Alpha4)) { hotbar = 3; } if(Input.GetKey(KeyCode.Alpha5)) { hotbar = 4; } if(Input.GetKey(KeyCode.Alpha6)) { hotbar = 5; } if(Input.GetKey(KeyCode.Alpha7)) { hotbar = 6; } if(Input.GetKey(KeyCode.Alpha8)) { hotbar = 7; } if(Input.GetKey(KeyCode.Alpha9)) { hotbar = 8; } if(Input.GetKey(KeyCode.Mouse0)) { if(hotbar == 0) { if(TM.TreeMouse == true) { Invoke("TreeBreak", 1); } animation.Play("axe"); } } } } Script Two Called treemouse Code (CSharp): public class treemouse : MonoBehaviour { public bool Broke = false; public Transform Main; public GameObject woodI; private Hotbar HB; public bool TreeMouse = false; void Start () { HB = gameObject.AddComponent<Hotbar>(); HB = GetComponent<Hotbar>(); } void OnMouseDown () { TreeMouse = true; } void Update () { if(HB.TreeBroke == true) { Instantiate(woodI, Main.position, Main.rotation); Instantiate(woodI, Main.position, Main.rotation); Instantiate(woodI, Main.position, Main.rotation); Destroy(gameObject); } } } I hope you can help.