📜  文本标签中的 roblox 聊天过滤器 - 任何代码示例

📅  最后修改于: 2022-03-11 14:56:01.827000             🧑  作者: Mango

代码示例1
local TextService = game:GetService("TextService")
    local filteredText = ""
    local success, errorMessage = pcall(function()
        filteredTextResult = TextService:FilterStringAsync(text, fromPlayerId)
    end)
    if not success then
        warn("Error filtering text:", text, ":", errorMessage)
        -- Put code here to handle filter failure
    end