ErnestaLightOn = false
DanLight2On = false
AquiziviteLight3On = false
LovelyLightOn = false
QuinnKennithLightOn = false
if ErnestaLightOn == true and DanLightOn == true and AquiziviteLightOn == true and LovelyLightOn == true and QuinnKennithLightOn == true then
local DarklightDoor = script.Parent
if game.Workspace.ActivationLights.Material == Enum.Material.Neon then
game.Workspace.DarklightDoor.Transparency = 1
game.Workspace.DarklightDoor.CanCollide = false
game.Workspace.PlayOpening()
end
end
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)

6 comments
Any information given in the output?
What do you mean Feahren?
are there any errors/ warinings?
the last end has a red line under it, and in the output it says "Workspace.DarklightDoor.Script:21 Expected got end
That means you're trying to close a scope that was never created; remove the third end keyword, there are only two if scopes.
But then two of the light names have a red underline under them.