Okay, so I've been testing out scripts recently in terms of me learning to script, and for some reason this script is failing.
I cannot seem to find the problem with it, as it's worked with other things before.
((The script does not work in or out of the part, and will not work in the Command Bar.
function onTouched(Touched)
script.Parent.Parent.DoorPiece.CanCollide= false
script.Parent.Parent.DoorPiece.Transparency= 0.4
wait(3)
script.Parent.Parent.DoorPiece.CanCollide= true
script.Parent.Parent.DoorPiece.Transparency= 0.0
end
Help? |