if not fs.exists("lamps.txt") then print("Expected lamps.txt. Create a file with space seperated names of each redstone integrator in the network. Each line represents one row in the theater.") return end local function set(p, enable) local sides = peripheral.call(p, "getSides") for i = 1, 6 do peripheral.call(p, "setOutput", sides[i], enable) end end local function animate(speed, enable) for line in io.lines("lamps.txt") do for p in line:gmatch("%S+") do set(p, enable) end sleep(speed) end end local speed, enable = ... speed = tonumber(speed) enable = enable == "true" if speed and type(enable) == "boolean" then animate(speed, enable) else printError("animate ") end