--Hello, And welcome to the math factor experice, Today i code stuff :D
--Function Time :D
right = script.Parent.Math.Correct
fail = script.Parent.Math.Fail
script.Parent.Main.TextButton.MouseButton1Click:connect(function()
	a = script.Parent.Main.Get.Text
	script.Parent.Main:TweenPosition(UDim2.new(1, 0, 0, 0), "Out", "Bounce", 3)
	script.Parent.Math:TweenPosition(UDim2.new(0, 0, 0, 0), "Out", "Bounce", 3)
	--Math Learning Part
	script.Parent.Math.Fact.Text = ""..a.."X1="
	script.Parent.Math.Check.MouseButton1Down:connect(function()
		if script.Parent.Math.Answer.Text == (a*1) then
			right.Visible = true
			wait (2)
			right.Visible = false
			script.Parent.Math.Fact.Text = ""..a.."X2="
		else
		   fail.Visible = true
		wait (5)
			fail.Visible = false
		script.Parent.Math.Check.MouseButton1Down:connect(function()
		if script.Parent.Math.Answer.Text == (a*1) then
			right.Visible = true
			wait (2)
			right.Visible = false
		end
		end)
		end
	end)
end)