Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Please help, it says a bool value error when there was no mistake in the script?

Asked by 5 years ago
Edited 5 years ago
01local spotlightorange = workspace.OrangeLightSignal.SpotLight
02local spotlightred = workspace.RedLightSignal.SpotLight
03local spotlightgreen = workspace.GreenLightSignal.SpotLight
04local function turnGreen()
05   workspace:WaitForChild("GreenLightSignal").Material = Enum.Material.Neon
06spotlightgreen.Enabled = true
07   workspace:WaitForChild("OrangeLightSignal").Material = Enum.Material.SmoothPlastic
08spotlightorange.Enabled = false
09   wait(8)
10end
11local function turnOrange()
12   workspace:WaitForChild("RedLightSignal").Material = Enum.Material.SmoothPlastic
13spotlightred.Enabled = false
14   workspace:WaitForChild("OrangeLightSignal").Material = Enum.Material.Neon
15spotlightorange.Enabled = true
View all 65 lines...
0
Please add this in a lua code block, it's unreadable User#834 0 — 5y
0
Okay, sure ISkyLordDoge 37 — 5y
0
What line are you getting the error on? Skippy_Development 59 — 5y
0
On line 15. ISkyLordDoge 37 — 5y

Answer this question