Why is this not working? The script is inside the CheckAnswer
function onButtonClicked()
if script.Parent.Parent.Answer.Text == "2" then
script.Parent.Parent.CheckAnswer.Text = "Correct"
else
script.Parent.Parent.Answer.Text = "Wrong"
script.Parent.Parent.CheckAnswer.Text = "Try agian"
wait(1)
script.Parent.Parent.CheckAnswer.Text = "Verify answer"
end
end
Thankss
