local spotlightorange = workspace.OrangeLightSignal.SpotLight
local spotlightred = workspace.RedLightSignal.SpotLight
local spotlightgreen = workspace.GreenLightSignal.SpotLight
local function turnGreen()
workspace:WaitForChild("GreenLightSignal").Material = Enum.Material.Neon
spotlightgreen.Enabled = true
workspace:WaitForChild("OrangeLightSignal").Material = Enum.Material.SmoothPlastic
spotlightorange.Enabled = false
wait(8)
end
local function turnOrange()
workspace:WaitForChild("RedLightSignal").Material = Enum.Material.SmoothPlastic
spotlightred.Enabled = false
workspace:WaitForChild("OrangeLightSignal").Material = Enum.Material.Neon
spotlightorange.Enabled = true
wait(8)
end
local function turnRed()
workspace:WaitForChild("OrangeLightSignal").Material = Enum.Material.SmoothPlastic
spotlightorange = false
workspace:WaitForChild("RedLightSignal").Material = Enum.Material.Neon
spotlightred.Enabled = true
wait(8)
end
local function turnFlashingOrange()
local OrangeLightSignal = workspace:WaitForChild("OrangeLightSignal")
workspace.GreenLightSignal.Material = Enum.Material.SmoothPlastic
OrangeLightSignal.Material = Enum.Material.Neon
spotlightorange.Enabled = true
wait(0.5)
OrangeLightSignal.Material = Enum.Material.SmoothPlastic
spotlightorange.Enabled = false
wait(0.5)
OrangeLightSignal.Material = Enum.Material.Neon
spotlightorange.Enabled = true
wait(0.5)
OrangeLightSignal.Material = Enum.Material.SmoothPlastic
spotlightorange.Enabled = false
wait(0.5)
OrangeLightSignal.Material = Enum.Material.Neon
spotlightorange.Enabled = true
wait(0.5)
OrangeLightSignal.Material = Enum.Material.SmoothPlastic
spotlightorange.Enabled = false
wait(0.5)
OrangeLightSignal.Material = Enum.Material.Neon
spotlightorange.Enabled = true
wait(0.5)
OrangeLightSignal.Material = Enum.Material.SmoothPlastic
spotlightorange.Enabled = false
wait(0.5)
OrangeLightSignal.Material = Enum.Material.Neon
spotlightorange.Enabled = true
wait(0.5)
OrangeLightSignal.Material = Enum.Material.SmoothPlastic
spotlightorange.Enabled = false
end
while true do
wait(1)
turnOrange()
turnGreen()
turnFlashingOrange()
turnRed()
end
COMMUNITY QUESTION
Please help, it says a bool value error when there was no mistake in the script?
0 answers
No public answers were preserved for this question.
This discussion is preserved as it was. New answers, comments, and votes are closed.

4 comments
Please add this in a lua code block, it's unreadable
Okay, sure
What line are you getting the error on?
On line 15.