------------------------------------------------------------


function ClickDecimal()
	onSecond()
		if (onSec == true and input2Dec == false) then
			input2 = input2.."."
			input2Dec = true
			disp = disp.."."
			script.Parent.Display.Text = disp
		end
		if (onSec == false and input1Dec == false) then
			input1 = input1.."."
			input1Dec = true
			disp = disp.."."
			script.Parent.Display.Text = disp
		end
end

script.Parent.ClDec.MouseButton1Down:connect (ClickDecimal)

function Click0()
	onSecond()
		if (onSec == true) then
			input2 = input2.."0"
		end
		if (onSec == false) then
			input1 = input1.."0"
		end
		disp = disp.."0"
		script.Parent.Display.Text = disp
end

script.Parent.Cl0.MouseButton1Down:connect(Click0)

function Click1()
	onSecond()
		if (onSec == true) then
			input2 = input2.."1"
		end
		if (onSec == false) then
			input1 = input1.."1"
		end
		disp = disp.."1"
		script.Parent.Display.Text = disp
end

script.Parent.Cl1.MouseButton1Down:connect(Click1)

function Click2()
	onSecond()
		if (onSec == true) then
			input2 = input2.."2"
		end
		if (onSec == false) then
			input1 = input1.."2"
		end
		disp = disp.."2"
		script.Parent.Display.Text = disp
end

script.Parent.Cl2.MouseButton1Down:connect(Click2)

function Click3()
	onSecond()
		if (onSec == true) then
			input2 = input2.."3"
		end
		if (onSec == false) then
			input1 = input1.."3"
		end
		disp = disp.."3"
		script.Parent.Display.Text = disp
end

script.Parent.Cl3.MouseButton1Down:connect(Click3)

function Click4()
	onSecond()
		if (onSec == true) then
			input2 = input2.."4"
		end
		if (onSec == false) then
			input1 = input1.."4"
		end
		disp = disp.."4"
		script.Parent.Display.Text = disp
end

script.Parent.Cl4.MouseButton1Down:connect(Click4)

function Click5()
	onSecond()
		if (onSec == true) then
			input2 = input2.."5"
		end
		if (onSec == false) then
			input1 = input1.."5"
		end
		disp = disp.."5"
		script.Parent.Display.Text = disp
end

script.Parent.Cl5.MouseButton1Down:connect(Click5)

function Click6()
	onSecond()
		if (onSec == true) then
			input2 = input2.."6"
		end
		if (onSec == false) then
			input1 = input1.."6"
		end
		disp = disp.."6"
		script.Parent.Display.Text = disp
end

script.Parent.Cl6.MouseButton1Down:connect(Click6)

function Click7()
	onSecond()
		if (onSec == true) then
			input2 = input2.."7"
		end
		if (onSec == false) then
			input1 = input1.."7"
		end
		disp = disp.."7"
		script.Parent.Display.Text = disp
end

script.Parent.Cl7.MouseButton1Down:connect(Click7)

function Click8()
	onSecond()
		if (onSec == true) then
			input2 = input2.."8"
		end
		if (onSec == false) then
			input1 = input1.."8"
		end
		disp = disp.."8"
		script.Parent.Display.Text = disp
end

script.Parent.Cl8.MouseButton1Down:connect(Click8)

function Click9()
	onSecond()
		if (onSec == true) then
			input2 = input2.."9"
		end
		if (onSec == false) then
			input1 = input1.."9"
		end
		disp = disp.."9"
		script.Parent.Display.Text = disp
end

script.Parent.Cl9.MouseButton1Down:connect(Click9)
