Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local chatMsg = ""
- local chatBox = peripheral.wrap("left")
- local speaker = peripheral.wrap("right")
- function getChat()
- eventTyp, chatPlr, chatMsg = os.pullEvent("chat")
- end
- function sayChat()
- speaker.speak(chatMsg,0)
- end
- while true do
- getChat()
- sayChat()
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement