Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

Does this door script work?

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

✓ Accepted answer

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

2 comments

0

Okay, so I change the name of the part for jt to be more accurate?

0

Okay. Edited.

This discussion is preserved as it was. New answers, comments, and votes are closed.