function Clear()print("\067\108\101\097\114\101\100")Input=""end script.Parent.Clear.ClickDetector.MouseClick:connect(Clear)function Enter()if Input==Code then print("\069\110\116\101\114\101\100")Input=""local I=script.Parent.Parent.Door I.Anchored=false I.Transparency=I.Transparency+.1 wait(.1)I.Transparency=I.Transparency+.1 wait(.1)I.Transparency=I.Transparency+.1 wait(.1)I.Transparency=I.Transparency+.1 wait(.1)I.Transparency=I.Transparency+.1 wait(.1)I.Transparency=I.Transparency+.1 wait(.1)I.Transparency=I.Transparency+.1 wait(.1)I.Transparency=.8 wait(3)I.Transparency=I.Transparency-.1 wait(.1)I.Transparency=I.Transparency-.1 wait(.1)I.Transparency=I.Transparency-.1 wait(.1)I.Transparency=I.Transparency-.1 wait(.1)I.Transparency=I.Transparency-.1 wait(.1)I.Transparency=I.Transparency-.1 wait(.1)I.Transparency=I.Transparency-.1 wait(.1)I.Transparency=0 return end Input=""print("\087\114\111\110\103 \067\111\100\101")end script.Parent.Enter.ClickDetector.MouseClick:connect(Enter)
------------------------------------------
--Clear And Enter

function Clear()
	print("Cleared")
	Input = ""
end

script.Parent.Clear.ClickDetector.MouseClick:connect(Clear)

function Enter()
	if Input == Code then
		print("Entered")
		Input = ""

		local door = script.Parent.Parent.Door

		door.Anchored = false
		door.Transparency = door.Transparency + 0.1
		wait(0.1)
		door.Transparency = door.Transparency + 0.1
		wait(0.1)
		door.Transparency = door.Transparency + 0.1
		wait(0.1)
		door.Transparency = door.Transparency + 0.1
		wait(0.1)
		door.Transparency = door.Transparency + 0.1
		wait(0.1)
		door.Transparency = door.Transparency + 0.1
		wait(0.1)
		door.Transparency = door.Transparency + 0.1
		wait(0.1)
		door.Transparency = 0.8
		wait(3) --
		door.Transparency = door.Transparency - 0.1
		wait(0.1)
		door.Transparency = door.Transparency - 0.1
		wait(0.1)
		door.Transparency = door.Transparency - 0.1
		wait(0.1)
		door.Transparency = door.Transparency - 0.1
		wait(0.1)
		door.Transparency = door.Transparency - 0.1
		wait(0.1)
		door.Transparency = door.Transparency - 0.1
		wait(0.1)
		door.Transparency = door.Transparency - 0.1
		wait(0.1)
		door.Transparency = 0

		return
	end
	Input = ""
	print("Wrong Code")
end

script.Parent.Enter.ClickDetector.MouseClick:connect(Enter)
