Advertisement
Guest User

gayalarm.lua

a guest
Aug 25th, 2019
281
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.35 KB | None | 0 0
  1. c = peripheral.wrap("left")
  2.  
  3. while true do
  4.  
  5.     event, player, msg = os.pullEvent("chat")
  6.     if msg == "I'm gay" then
  7.     rs.setOutput("right", true)
  8.     c.say("Warning:" ..player.. " is Gay! Alert Status: Red")
  9.     sleep(7)
  10.     c.say("Gay levels nominal; Alert Status recinded")
  11.     rs.setOutput("right", false)
  12.     sleep(1)
  13.     end
  14.    
  15. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement