Door = game.Workspace.DoorPart
function onTouch(DoorPart)
Door.Transparency = 0.5
Door.CanCollide = false
wait(5)
Door.Transparency = 0
Door.CanCollide = true
end
script.Parent.Touched:connect(onTouch)
Just checking. :3
Door = game.Workspace.DoorPart
function onTouch(DoorPart)
Door.Transparency = 0.5
Door.CanCollide = false
wait(5)
Door.Transparency = 0
Door.CanCollide = true
end
script.Parent.Touched:connect(onTouch)
Just checking. :3
Yes. "Part" is a common name though, you should probably change it to remove the chance of confusion.
This discussion is preserved as it was. New answers, comments, and votes are closed.
2 comments
Okay, so I change the name of the part for jt to be more accurate?
Okay. Edited.