So, I have a door which is MEANT to open when a button is clicked, but only ONE button. So, when OPEN is visible CLOSED is not, and when CLOSED is visible OPEN is not.
local LO = script.Parent.Parent.L.Open
local LC = script.Parent.Parent.L.CLOSED
local RO = script.Parent.Parent.R.OPEN
local RC = script.Parent.Parent.R.CLOSED
local L1O = script.Parent.Parent.L1.OPEN
local L1C = script.Parent.Parent.L1.CLOSED
local R1O = script.Parent.Parent.R1.OPEN
local R1C = script.Parent.Parent.R1.CLOSED
function onClicked()
if R1C.Transparency == 1 then
LC.Transparency = 1
RC.Transparency = 1
L1C.Transparency = 1
R1C.Transparency = 1
LC.CanCollide = false
RC.CanCollide = false
L1C.CanCollide = false
R1C.CanCollide = false
LO.Transparency = 0
RO.Transparency = 0
L1O.Transparency = 0
R1O.Transparency = 0
LO.CanCollide = true
RO.CanCollide = true
L1O.CanCollide = true
R1O.CanCollide = true
script.Parent.Parent.Status = "Open"
elseif R1O.Transparency == 1 then
LC.Transparency = 0
RC.Transparency = 0
L1C.Transparency = 0
R1C.Transparency = 0
LC.CanCollide = true
RC.CanCollide = true
L1C.CanCollide = true
R1C.CanCollide = true
LO.Transparency = 1
RO.Transparency = 1
L1O.Transparency = 1
R1O.Transparency = 1
LO.CanCollide = false
RO.CanCollide = false
L1O.CanCollide = false
R1O.CanCollide = false
script.Parent.Parent.Status = "Closed"
end
end
script.Parent.ClickDetector.MouseClick:connect(onClicked)

1 comment
For properties, you must have correct capitalization. So, you need to capitalize the T in transparency and the 2 C's in cancollide.