-- 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

If you know why this isn't working, post it in the answers. Anyways, here is an example of what I'm trying to do, so you can fix my script. 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)

1 comment

0

You always come on here with "fix this right now". It's annoying. Start trying to figure it out, and come up to us when you find the problem yourself and can't fix it.