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