Illprotectjew

ChattyMC

Jul 7th, 2013
128
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.29 KB | None | 0 0
  1. c = peripheral.wrap("right")
  2.  
  3. while true do
  4. event, player, message = os.pullEvent("chat") -- Now you got the event, which player, and which message.
  5. if message == "hi" then
  6.  
  7. c.say("Hey buddy! Im ready to Tap!") -- if the message from chat is hi , the chatbox will say "Hi there!"
  8. end
  9. end
Advertisement
Add Comment
Please, Sign In to add comment