check=true 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 Q=script.Parent.Parent.Door for c=1,35,1 do Q.CFrame=CFrame.new(Q.Position+Vector3.new(0,0,.1))wait(.01)end wait(5)for c=1,35,1 do Q.CFrame=CFrame.new(Q.Position-Vector3.new(0,0,.1))wait(.01)end return end Input=""print("\087\114\111\110\103 \067\111\100\101")end script.Parent.Enter.ClickDetector.MouseClick:connect(Enter)
--created by
------------------------------------------
--Clear And Enter
check = true -- Global

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

		for i = 1, 35 do
			door.CFrame = CFrame.new(door.Position + Vector3.new(0, 0, 0.1))
			wait(0.01)
		end

		wait(5) --Closes

		for i = 1, 35 do
			door.CFrame = CFrame.new(door.Position - Vector3.new(0, 0, 0.1))
			wait(0.01)
		end

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

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