Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local DEAD = game.Workspace.YOU'R DOOR NAME
- game.Workspace.YOU'R DOOR NAME.Touched:Connect(function(hit)
- if hit.Parent.name == "YOU'R KEY NAME" then
- DEAD.Transparency = 0.5
- DEAD.CanCollide = false
- wait(2) -- time till door closes
- DEAD.Transparency = 0
- DEAD.CanCollide = true
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement