Advertisement
PeaPattern

reset filter

Jun 5th, 2024
799
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.44 KB | None | 0 0
  1. local PlayerService = game:GetService("Players")
  2. local HttpService = game:GetService("HttpService")
  3. local ReplicatedStorage = game:GetService("ReplicatedStorage")
  4. local TextChatService = game:GetService("TextChatService")
  5.  
  6. local IsLegacy = (TextChatService.ChatVersion == Enum.ChatVersion.LegacyChatService)
  7. local ChatRemote = ReplicatedStorage:FindFirstChild("SayMessageRequest", true)
  8. local Channel = not IsLegacy and TextChatService.TextChannels.RBXGeneral
  9.  
  10. local Chat = function(Message)
  11.     if IsLegacy then
  12.         ChatRemote:FireServer(Message, "All")
  13.     else
  14.         Channel:SendAsync(Message)
  15.     end
  16. end
  17.  
  18. local Fake = function(Message)
  19.     if IsLegacy then
  20.         PlayerService:Chat(Message)
  21.     else
  22.         Channel:SendAsync(("/e %s"):format(Message))
  23.     end
  24. end
  25.  
  26. local chars = {}
  27. for i=97,122 do chars[#chars+1]=string.char(i) end
  28. for i=65,90 do chars[#chars+1]=string.char(i) end
  29.  
  30. local RNG = function(length)
  31.     local str = ""
  32.     for i = 1, length do
  33.         str = str .. chars[math.random(#chars)]
  34.     end
  35.     return str
  36. end
  37.  
  38. local ResetFilter = function()
  39.     for i = 1, 10 do
  40.         local GUID = RNG(i)
  41.         local Filler = "i love asians so much"
  42.         local Reset = ("%s %s"):format(GUID, Filler)
  43.         task.spawn(function()
  44.             Fake(Reset)
  45.         end)
  46.     end
  47. end
  48.  
  49. ResetFilter()
  50. wait(0.2)
  51. Chat(getgenv().pre or "pre")
  52. wait(0.2)
  53. ResetFilter()
  54. wait(0.2)
  55. Chat(getgenv().post or "post")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement