--Event

ClickDetector.MouseClick:Connect(function()
	if ClickReady.Value == true then
		ClickReady.Value = false
		ButtonClick:Play()
		Button.Size = Size1
		Button.Material = Material1
		DigitNumber.Value = DigitNumber.Value + 1
		if DigitNumber.Value > Max then
			DigitNumber.Value = Min
		end
		NumberGUI.Text = DigitNumber.Value
		EnteredCode.Value = tostring(Digit1.Value)..""..tostring(Digit2.Value)..""..tostring(Digit3.Value)
		wait(.5)
		Button.Size = Size0
		Button.Material = Material0
		wait(.25)
		ClickReady.Value = true
	end
end)
