Whenever I try to update my question label for the quiz I am creating, I keep on getting the error Invalid set index "text" on base null instance with value of type "String", originally I was not getting this error, but as soon as I made the script global I started to get this error, so I don't know if that is what's affecting my program, the code is below
$Question.text = questions[current_question][0]
$Answer1.text = questions[current_question][1]
$Answer2.text = questions[current_question][2]
$Answer3.text = questions[current_question][3]
$Answer4.text = questions[current_question][4]
as for the nodes I have a control node called quiz as the root node, the questions and answers are all direct children of quiz and the script is attached to the quiz node, would appreciate any help