I'm pretty new at coding and I've kind of had to teach myself, so my coding isn't very good. I tried making a door opening script which basically makes one door transparent and non-collideable and makes the other door visible and collideable. I really didn't want to have to list out all of the parts in each model(labelled Door1 and Door2), so I tried doing this:

local Door2 = script.Parent
local Door1 = script.Parent.Parent.Door1
local desDoor2 = Door2:GetDescendants()
local desDoor1 = Door1:GetDescendants()

function onclick()
	desDoor2.Transparency = 1
	desDoor2.CanCollide = false
	desDoor1.Transparency = 0
	desDoor1.CanCollide = true
end
script.Parent.ClickDetector.MouseClick:Connect(onclick)

(Door1 and Door2 are under the same model) I've gone into the game and when I click, nothing happens. No error, just nothing.