local check = script.Parent.Parent.AnswerBox.Text:toNumber()
AnswerBox is a TextBox where the user will input a number, that I'm going to compare in a separate function with another int, but I can't use the string value that that variable is giving me, and :toNumber() doesn't seem to work.
That's not the right way of doing it, sir. Try this:
local check = tonumber(script.Parent.Parent.AnswerBox.Text)