Advertisement
PeaPattern

chat art

Jun 5th, 2024
2,344
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.02 KB | None | 0 0
  1. local ReplicatedStorage = game:GetService("ReplicatedStorage")
  2. local TextChatService = game:GetService("TextChatService")
  3. local IsLegacy = (TextChatService.ChatVersion == Enum.ChatVersion.LegacyChatService)
  4. local ChatRemote = ReplicatedStorage:FindFirstChild("SayMessageRequest", true)
  5. local Channel = not IsLegacy and TextChatService.TextChannels.RBXGeneral
  6.  
  7. local Chat = function(Message)
  8.     if IsLegacy then
  9.         ChatRemote:FireServer(Message, "All")
  10.     else
  11.         Channel:SendAsync(Message)
  12.     end
  13. end
  14.  
  15. local gen = function(length)
  16.     return " " .. string.rep("ৌ", length)
  17. end
  18.  
  19. local chats = getgenv().Chats
  20.  
  21. local function Length(Table)
  22.     local counter = 0
  23.     for _, v in pairs(Table) do
  24.         counter =counter + 1
  25.     end
  26.     return counter
  27. end
  28.  
  29. local full = ""
  30. for _, info in chats do
  31.     local msg = info[1]:gsub("⬛","✕✕"):gsub("✅","⬛")
  32.     local length = info[2]
  33.     full = full .. msg
  34.     if _ ~= #chats then
  35.         full = full .. gen(length)
  36.     end
  37. end
  38. Chat(full)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement