Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local chatbox = peripheral.find("chatbox")
- chatbox.setLabel("myChatbox")
- while true do
- local event, side, playerName, message = os.pullEvent("chat_message")
- print(playerName .. " said: " .. message)
- chatbox.tell(playerName, "Hello!")
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement