Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
1

How to Filter text in GUI elements?

Asked by 6 years ago

I was reading the following wiki page: http://wiki.roblox.com/index.php?title=Text_Filtering

It notes the following:

"Any and all text that a developer utilizes in their game, or processes in their game should be filtered to ensure that their games are compliant with the Roblox filtering rules designed to keep our player communities safe. Here is an excerpt from our Community Rules:

Filter all chat and text. Developers must pass all chat and/or game text through Roblox’s filtering system. Roblox scans all chat communication and player inputted text for the safety of our users and legal compliance reasons, including the Children's Online Privacy Protection Act (COPPA). All chat and content must also be reportable through the Report Abuse system."

I am using the default chat in my game. So I assume my chat is fine? My concern is GUI elements. I have a shop for example with many items with different names. How do I make sure this is filtered properly to avoid any rule issues and moderation issues?

1 answer

Log in to vote
1
Answered by
GingeyLol 338 Moderation Voter
6 years ago
Edited 6 years ago
local text = "hmmm"
local playerID = game.Players.LocalPlayer.UserId
local filteredTextResult = TextService:FilterStringAsync(text,playerID)
script.Parent.Text = filteredTextResult
0
do I have to add this for every piece of text in my shop?  I would appreciate an explanation on the process involved in filtering GUI text. Zeustice 41 — 6y
0
read the wiki page you put above 5 times like everyone else did GingeyLol 338 — 6y
Ad

Answer this question