Run it
Copy the script and paste it into your executor.
local path = workspace:WaitForChild("Map"):WaitForChild("Functional"):WaitForChild("Screen")
local gui = path:WaitForChild("SurfaceGui"):WaitForChild("MainFrame")
local container = gui:WaitForChild("MainGameContainer"):WaitForChild("MainTxtContainer")
local questionText = container:WaitForChild("QuestionText")
local replicatedStorage = game:GetService("ReplicatedStorage")
local gameEvent = replicatedStorage:WaitForChild("Events"):WaitForChild("GameEvent")
local function solveExpression(expression)
local a, operator, b = string.match(expression, "(%d+)%s*([%+%-x/])%s*(%d+)")
a = (a)
b = (b)
result
operator ==
result = a + b
operator ==
result = a - b
operator ==
result = a * b
operator ==
result = a / b
answerStr = (result)
args1 = { , answerStr }
gameEvent:((args1))
.(, ()
args2 = { , answerStr }
gameEvent:((args2))
)
(questionText.Text)
questionText:():(()
(questionText.Text)
)Auto Answer Math Questions