-- Variables
local ActivationLights = game.Workspace.ActivationLights
local DarklightDoor = script.Parent
local function updateDoor()
local isAllNeon = true
for _,light in pairs(ActivationLights:GetChildren()) do
if light.Material ~= Enum.Material.Neon then
isAllNeon = false
break
end
end
if isAllNeon then
DarklightDoor.Transparency = 1
DarklightDoor.CanCollide = false
else
end
end
for _,light in pairs(ActivationLights:GetChildren()) do
light:GetPropertyChangedSignal("Material"):Connect(updateDoor)
end
Anyways, here is an example of what I'm trying to do. I want the door to become transparent and CanCollide = false when ErnestaLight, DanLight, AquiziviteLIght, LovelyLight, and QuinnKennithLight are neon/activated. Please help! (For a myth game) Before you ask, nothing is underlined, nothing comes out in the output.

2 comments
Didn't you already ask this?
Yes, I’ve been trying to get an answer and have been working to find the right code, but I cant.