As u see in the title, I want to know how to make bad words get filtered in a textbox.
TextService provides you a way to filter text with the roblox filter. Use TextService:FilterStringAsync(string, playerWhoWroteTheStringUserId)
Make sure to call this function in a pcall and only display the string if the filtering was successful.
Example:
local TextService = game:GetService("TextService")
local success, result = pcall(function()
return TextService:FilterStringAsync("Some text", playerWhoWroteTheStringUserId)
end)
if success then
someTextLabel.Text = result
else
--do something if the filtering fails
end