I made a script that generates a math problem but I can’t print it it keeps printing the problem but not the answer
Script:
CurrentQuestion.Changed:Connect(function()
if CurrentQuestion.Value == 1 then
First_half_of_Question = Randomobj:NextInteger(0,15)
Second_half_of_Question = Randomobj:NextInteger(0,15)
chooseaway = Randomobj:NextInteger(1,#ways_to_do_problem)
choosenway = ways_to_do_problem[chooseaway]
QuestionText.Text = "SOLVE MATH Q"..CurrentQuestion.Value..""
Mathquestiontext.Text = First_half_of_Question..choosenway..Second_half_of_Question.." ="
print(First_half_of_Question..choosenway..Second_half_of_Question)
end
end)