I am trying to make the whole Prison door follow the script. Ive tried having the parts of the door into a model then changing "door1" to the model name and it didnt work. Also, I tired adding like:
local door = script.Parent.Parent.Parent.Parent.Parent.door1,door2,door3,door4,door5,door6,door7
Also, I tired changing "local door=" to "local doors" didnt work
local doors = script.Parent.Parent.Parent.Parent.Parent.door1,door2,door3,door4,door5,door6,door7
Please someone help me!! I gave what I need.
Goal: To have door1-door7 to open and shut with the script.
Model: http://prntscr.com/3xz2al Look of the Model: http://prntscr.com/3xz24f Only script:
local door = script.Parent.Parent.Parent.Parent.Parent.door1
script.Parent.MouseButton1Down:connect(function()
script.Parent.Visible = false
script.Parent.Parent.Fake.Visible = true
door.Transparency = 0.1
wait()
door.Transparency = 0.2
wait()
door.Transparency = 0.3
wait()
door.Transparency = 0.4
wait()
door.Transparency = 0.5
wait()
door.Transparency = 0.6
wait()
door.Transparency = 0.7
wait()
door.Transparency = 0.8
wait()
door.Transparency = 0.9
wait()
door.Transparency = 1
door.CanCollide = false
wait(3)
door.Transparency = 0.9
wait()
door.Transparency = 0.8
wait()
door.Transparency = 0.7
wait()
door.Transparency = 0.6
wait()
door.Transparency = 0.5
wait()
door.Transparency = 0.4
wait()
door.Transparency = 0.3
wait()
door.Transparency = 0.2
wait()
door.Transparency = 0.1
wait()
door.Transparency = 0
door.CanCollide = true
script.Parent.Visible = true
script.Parent.Parent.Fake.Visible = false
end)
