function ClickDecimal()onSecond()if onSec==true and input2Dec==false then input2=input2 .."\046"input2Dec=true disp=disp.."\046"script.Parent.Display.Text=disp end if onSec==false and input1Dec==false then input1=input1 .."\046"input1Dec=true disp=disp.."\046"script.Parent.Display.Text=disp end end script.Parent.ClDec.MouseButton1Down:connect(ClickDecimal)function Click0()onSecond()if onSec==true then input2=input2 .."\048"end if onSec==false then input1=input1 .."\048"end disp=disp.."\048"script.Parent.Display.Text=disp end script.Parent.Cl0.MouseButton1Down:connect(Click0)function Click1()onSecond()if onSec==true then input2=input2 .."\049"end if onSec==false then input1=input1 .."\049"end disp=disp.."\049"script.Parent.Display.Text=disp end script.Parent.Cl1.MouseButton1Down:connect(Click1)function Click2()onSecond()if onSec==true then input2=input2 .."\050"end if onSec==false then input1=input1 .."\050"end disp=disp.."\050"script.Parent.Display.Text=disp end script.Parent.Cl2.MouseButton1Down:connect(Click2)function Click3()onSecond()if onSec==true then input2=input2 .."\051"end if onSec==false then input1=input1 .."\051"end disp=disp.."\051"script.Parent.Display.Text=disp end script.Parent.Cl3.MouseButton1Down:connect(Click3)function Click4()onSecond()if onSec==true then input2=input2 .."\052"end if onSec==false then input1=input1 .."\052"end disp=disp.."\052"script.Parent.Display.Text=disp end script.Parent.Cl4.MouseButton1Down:connect(Click4)function Click5()onSecond()if onSec==true then input2=input2 .."\053"end if onSec==false then input1=input1 .."\053"end disp=disp.."\053"script.Parent.Display.Text=disp end script.Parent.Cl5.MouseButton1Down:connect(Click5)function Click6()onSecond()if onSec==true then input2=input2 .."\054"end if onSec==false then input1=input1 .."\054"end disp=disp.."\054"script.Parent.Display.Text=disp end script.Parent.Cl6.MouseButton1Down:connect(Click6)function Click7()onSecond()if onSec==true then input2=input2 .."\055"end if onSec==false then input1=input1 .."\055"end disp=disp.."\055"script.Parent.Display.Text=disp end script.Parent.Cl7.MouseButton1Down:connect(Click7)function Click8()onSecond()if onSec==true then input2=input2 .."\056"end if onSec==false then input1=input1 .."\056"end disp=disp.."\056"script.Parent.Display.Text=disp end script.Parent.Cl8.MouseButton1Down:connect(Click8)function Click9()onSecond()if onSec==true then input2=input2 .."\057"end if onSec==false then input1=input1 .."\057"end disp=disp.."\057"script.Parent.Display.Text=disp end script.Parent.Cl9.MouseButton1Down:connect(Click9)
------------------------------------------------------------

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)
