repeat task.wait() until game:IsLoaded()

local TCS = game:GetService("TextChatService")
local CoreGui = game:GetService("CoreGui")
local RStorage = game:GetService("ReplicatedStorage")
local Players = game:GetService("Players")
local TweenService = game:GetService("TweenService")
local HttpService = game:GetService("HttpService")
local UserInputService = game:GetService("UserInputService")

local LocalPlayer = Players.LocalPlayer
local PlayerGui = LocalPlayer.PlayerGui

local isLegacy = TCS.ChatVersion == Enum.ChatVersion.LegacyChatService
local ChatBar = CoreGui:FindFirstChild("TextBoxContainer", true) or PlayerGui:FindFirstChild("Chat"):FindFirstChild("ChatBar", true)
ChatBar = ChatBar:FindFirstChild("TextBox") or ChatBar

local function replace(str, find_str, replace_str)
 local escaped_find_str = find_str:gsub("[%-%^%$%(%)%%%.%[%]%*%+%-%?]", "%%%0")
 return str:gsub(escaped_find_str, replace_str)
            end

local letters = {
 ["a"] = "Ā", -- ["A"] = "𝘢⃨⃰",
 ["b"] = "Ɓ", -- ["B"] = "в",
 ["c"] = "Ƈ", -- ["C"] = "č",
 ["d"] = "D̽" ,-- ["D"] = "",
 ["e"] = "ℇ", -- ["E"] = "ē",
 ["f"] = "â‚£", -- ["F"] = "Ò’",
 ["g"] = "ԍ", -- ["G"] = "ԍ",
 ["h"] = "Ĥ", -- ["H"] = "ĥ",
 ["i"] = "I̼",-- ["I"] = "i",
 ["j"] = "J̋",-- ["J"] = "ј",
 ["k"] = "K̃̎̿", ["K"] = "κ",
 ["l"] = "â± ", -- ["L"] = "L",
 ["m"] = "M", -- ["M"] = "м",
 ["n"] = "И", -- ["N"] = "n",
 ["o"] = "0", -- ["O"] = "ο",
 ["p"] = "Ƥ", -- ["P"] = "р",
 ["q"] = "🆀", -- ["Q"] = "ԛ",
 ["r"] = "Ř",  -- ["R"] = "",
 ["s"] = "á¹ ", -- ["S"] = "ÅŸ",
 ["t"] = "Τ", -- ["T"] = "t",
 ["u"] = "ᴜ", -- ["U"] = "u",
 ["v"] = "Ѵ", -- ["V"] = "ѵ",
 ["w"] = "V", -- ["W"] = "ԝ",
 ["x"] = "X",  -- ["X"] = "x",
 ["y"] = "Ƴ", -- ["Y"] = "y",
 ["z"] = "Ź", -- ["Z"] = "ᴢ"
}

local wordReplacements = {
  ["cum"] = "çűm",
  ["people"] = "pęöpļē",
  ["cock"] = "cøčk",
  ["girl"] = "ĝìŕĺ",
  ["boobie"] = "ɓòöbıè",
  ["samsung"] = "šãmšūnğ",
  ["all"] = "āll",
  ["discord"] = "ɗiŝcòŕd",
  ["will"] = "wìļĺ",
  ["indian"] = "iñdìàn",
  ["bat"] = "ɓàt"
}

MessagePrefix = ""
MessagePrefix0 = '("̲L '
MessagePrefix0 = ' "Ř"̲öL '

local function Gen(message)
    for word, replacement in pairs(wordReplacements) do
        message = string.gsub(message, word, replacement)
    end
    for search, replacement in pairs(letters) do
        message = string.gsub(message, search, replacement)
    end
    return message
end

local Connection = Instance.new("BindableFunction")

for _, c in getconnections(ChatBar.FocusLost) do
    c:Disconnect()
end

ChatBar.FocusLost:Connect(function(enterPressed)
    if enterPressed then
        Connection:Invoke(ChatBar.Text)
        ChatBar.Text = ""
    end
end)

Connection.OnInvoke = function(Message)
    Message = Gen(Message)
    if isLegacy then
        local ChatRemote = RStorage:FindFirstChild("SayMessageRequest", true)
        ChatRemote:FireServer(MessagePrefix .. Message, "All")
    else
        local Channel = TCS.TextChannels.RBXGeneral
        Channel:SendAsync(MessagePrefix .. Message)
    end
end



loadstring(game:HttpGet("https://raw.githubusercontent.com/AnthonyIsntHere/anthonysrepository/main/scripts/AntiChatLogger.lua", true))()