Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
1

Does this door script work?

Asked by 10 years ago
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

1 answer

Log in to vote
1
Answered by
c0des 207 Moderation Voter
10 years ago

Yes. "Part" is a common name though, you should probably change it to remove the chance of confusion.

0
Okay, so I change the name of the part for jt to be more accurate? bloonblaster2000 55 — 10y
0
Okay. Edited. bloonblaster2000 55 — 10y
Ad

Answer this question