local door = script.Parent.Parent.Door
local text = script.Parent.Parent.Numbers.SurfaceGui.TextLabel
if text.Text == "1234" then
script.Parent.ClickDetector.MouseClick:Connect(function()
door.Transparency = 0.5
door.CanCollide = false
wait(3)
door.CanCollide = true
door.Transparency = 0
end)
end
my script wont work I think its because the click detector part but I dont know

5 comments
0 is the opposite of Transparent if you want it to be Transparent set door = 1
no, because i want it to be where if the code is 1234 then when you click the green button "Enter" it makes the door a little transparent but not all the way. then after 3 seconds it goes back to normal
Then they can't go though
I will fix that hold up
Little transparent means translucent and translucent means light opague