Agent... He said a random door open! Here!
while true do
txt = math.random(1, 2) -- Change two to how many doors you have!
if txt == 1 then
wait(120) -- Two mins
game.Workspace.>DoorNameHereNoSpaces<.Transparency = 0.5
game.Workspace.>DoorNameHereNoSpaces<.CanCollide = false
wait(5)
game.Workspace.>DoorNameHereNoSpaces<.Transparency = 0
game.Workspace.>DoorNameHereNoSpaces<.CanCollide = true
end
if txt == 2 then
wait(120) -- Two mins
game.Workspace.>OtherDoorNameHereNoSpaces<.Transparency = 0.5
game.Workspace.>OtherDoorNameHereNoSpaces<.CanCollide = false
wait(5)
game.Workspace.>OtherDoorNameHereNoSpaces<.Transparency = 0
game.Workspace.>OtherDoorNameHereNoSpaces<.CanCollide = true
end
end |