It is hard to simplify it, but I am making a script for a math game because my sister is struggling in math.
Basically there is a math center, and when you walk in you touch a block as you walk through, which generates 2 random numbers and copies them off to the question board.
But something is not working right, and I believe it has to do with
math.randomseed(tick)
Anyways here is the script, I will label what each thing is.
game.Workspace.Detector.Touched:connect(onTouched) -- Detector is the invisible block you walk through
function onTouched(part)
math.randomseed(tick) -- What I suspect to be causing the problem
local Multiply1 = math.random(1,9) -- The random number
local Multiply2 = math.random(1,9) -- The OTHER random number
game.Workspace.QuestionSign.SurfaceGui.SIGN.Text = "What Is The Answer; "..Multiply1" + "..Multiply2"" -- What the text is supposed to change to.
end
I hope you could help me, I would really appreciate it.
Thank you in advance
- SupernalAura or Ment34591
