Will it work?
H = game.Workspace.Part function onClick(Part) H.Transparency = 0.5 H.CanCollide = false wait(5) H.Transparency = 0 H.CanCollide = true end script.Parent.ClickDetector.MouseClick:connect(onClicked)
Yep, seems to work. Although you may want to name your door something else, or put it into a model. Having it named as "Part" may confuse your script if other bricks are called Part.
Insert a click detector into the part you put this script in and change line 11 to
script.Parent.ClickDetector.MouseClick:connect(onClicked)