Advertisement
Guest User

startup.lua

a guest
Oct 8th, 2023
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.27 KB | None | 0 0
  1. rednet.open("top")
  2.  
  3. local light = false
  4. while (true) do
  5.   local senderId, message, protocol = rednet.receive()
  6.   if (message == "light") then
  7.     if (light == false) then
  8.       light = true
  9.       for i=1,sx do
  10.         m
  11.       end
  12.     else
  13.       light = false
  14.     end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement