Why wont this piece of code work

That means the TextButtons didn’t exist at the time of initially setting the variable (most likely not loaded in).