StreamerYT

OC : Robot Remote (Computer/Tablet) - color.lua

Aug 29th, 2020 (edited)
135
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.52 KB | None | 0 0
  1. local shell = require("shell")
  2. local args, options = shell.parse(...)
  3. local color = args[1]
  4. local comonent = require("component")
  5. local modem = comonent.modem
  6. if color then
  7. modem.broadcast(467,"component.proxy(component.list('drone')()).setLightColor(0x"..color..")")
  8. print("Установлено!")
  9. else
  10. print("Вы забыли ввести цвет!")
  11. print("color 000000 - установит черный цвет у дрона")
  12. print("Генератор цветов - https://colorscheme.ru/color-converter.html")
  13. end
Add Comment
Please, Sign In to add comment