Select, Update, Insert, and Delete is tagged as UI while Akira, Kiel, Kuro, Helper 1, and Helper 2 is tagged as Buttons Here's how it works when either select, or Delete is pressed anything that tagged in UI is disabled or not interactable while Buttons are interactable When one of them is pressed the UI is enabled and the Buttons is disabled The problem is whenever I press select or delete I get this error. Here's the code Code (CSharp): bool[] spawns = {true, true, true, false, false}; int count = 1; private bool cooldown = false; public void select() { Button[] chars = { GameObject.Find("Akira").GetComponent<UnityEngine.UI.Button>(), GameObject.Find("Kiel").GetComponent<UnityEngine.UI.Button>(), GameObject.Find("Kuro").GetComponent<UnityEngine.UI.Button>(), GameObject.Find("Helper 1").GetComponent<UnityEngine.UI.Button>(), GameObject.Find("Helper 2").GetComponent<UnityEngine.UI.Button>() }; if (count == 1) { count = 2; for (int x = 0; x < chars.Length; x++) { if (spawns[x] == true) { chars[x].GetComponent<Button>().interactable = true; } else if (spawns[x] == false) { chars[x].GetComponent<Button>().interactable = false; } } cooldown = false; } } Edit: I tried removing Akira from the equation and it works normally