tommy2805

porta treni

Mar 5th, 2023 (edited)
877
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.00 KB | None | 0 0
  1. stato = true -- true se aperta
  2. while true do
  3.     a, b = os.pullEvent(player)
  4.     if b == "tommy2805" or b == "stefy25" then
  5.         if stato then
  6.             stato = false
  7.             redstone.setBundledOutput("bottom", colors.magenta)
  8.             sleep(0.2)
  9.             for i = 0, 2 do
  10.                 redstone.setBundledOutput("top", colors.white)
  11.                 sleep(1)
  12.                 redstone.setBundledOutput("top", 0)
  13.                 print("abbasso")
  14.                 sleep(0.1)
  15.             end
  16.             redstone.setBundledOutput("bottom", 0)
  17.         else
  18.             stato = true
  19.             for i = 0, 2 do
  20.                 redstone.setBundledOutput("top", colors.lightBlue)
  21.                 sleep(1)
  22.                 redstone.setBundledOutput("top", 0)
  23.                 print("alzo")
  24.                 sleep(0.2)
  25.             end
  26.             redstone.setBundledOutput("bottom", colors.blue)
  27.             sleep(0.2)
  28.             redstone.setBundledOutput("bottom", 0)
  29.         end
  30.     end
  31. end
Advertisement
Add Comment
Please, Sign In to add comment