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 q.CanCollide=false q.Transparency=q.Transparency+.1 wait(.1)q.Transparency=q.Transparency+.1 wait(.1)q.Transparency=q.Transparency+.1 wait(.1)q.Transparency=q.Transparency+.1 wait(.1)q.Transparency=q.Transparency+.1 wait(.1)q.Transparency=q.Transparency+.1 wait(.1)q.Transparency=q.Transparency+.1 wait(.1)q.Transparency=.8 wait(3)q.Transparency=q.Transparency-.1 wait(.1)q.Transparency=q.Transparency-.1 wait(.1)q.Transparency=q.Transparency-.1 wait(.1)q.Transparency=q.Transparency-.1 wait(.1)q.Transparency=q.Transparency-.1 wait(.1)q.Transparency=q.Transparency-.1 wait(.1)q.Transparency=q.Transparency-.1 wait(.1)q.Transparency=0 q.CanCollide=true return end Input=""print("\087\114\111\110\103 \067\111\100\101")end script.Parent.Enter.ClickDetector.MouseClick:connect(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.CanCollide = 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
door.CanCollide = true



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




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