The Code I tryed is this:

script.parent.parent.Button.ClickDetector.Mouseclick:Connect (Function() script.parent.parent.Door.Transparency = 0.5 script.parent.parent.Door.CanCoild = true Wait(2) script.parent.parent.Door.Transparency = 0 script.parent.parent.Door.CanCoild = false End))

1 comment

0

Misspelled "CanCollide" as "CanCoild" two times, didn't capitalize "parent" , said "End))" instead of "end)" , didn't capitalize "click" in "MouseClick", "Function" starts with a lowercase letter, also true means that you can touch it and false means that you can't.