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 11 years ago
01Door = game.Workspace.DoorPart
02 
03function onTouch(DoorPart)
04Door.Transparency = 0.5
05Door.CanCollide = false
06wait(5)
07Door.Transparency = 0
08Door.CanCollide = true
09end
10 
11script.Parent.Touched:connect(onTouch)

Just checking. :3

1 answer

Log in to vote
1
Answered by
c0des 207 Moderation Voter
11 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 — 11y
0
Okay. Edited. bloonblaster2000 55 — 11y
Ad

Answer this question