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 4 years ago
Edited 4 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 — 4y
0
Okay, sure ISkyLordDoge 37 — 4y
0
What line are you getting the error on? Skippy_Development 59 — 4y
0
On line 15. ISkyLordDoge 37 — 4y

Answer this question