Answers for "roblox chat filter in text label"

2

roblox chat filter in text label

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
Posted by: Guest on June-23-2021

Browse Popular Code Answers by Language