Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local chatLog = {}
- for i = 1, 17 do
- table.insert(chatLog, "")
- end
- server.handleRequest("chat", function(page, vars)
- if page:match("^[^%?]+") == "chat" then
- if vars and vars.message then
- table.insert(chatLog, vars.message)
- table.remove(chatLog, 1)
- end
- return textutils.serialize(chatLog)
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement