Is this?
Brick = script.Parent
Door1 = game.Workspace.Door.Left
Door2 = game.Workspace.Door.Right
function onTouched(hit)
if hit.Parent then
Door1.Move = Right 1
Door2.Move = Left 1
wait(3)
Door1.Move = Left 1
Door2.Move = Right 1
end
end
Brick.MouseButton1Click:connect(onTouched)

2 comments
You mean script.Parent.
No. This script works perfectly fine. Just change the names to what you need. :)