Need help on word-based API

I am trying to make a typing-based game where random words are pulled from an Word Generator API in which the user has to type that word given.

However, I need a way to filter words via. ROBLOX’s filter so that I can moderate profanities etc…

I know there’s Text Filtering | Documentation - Roblox Creator Hub
documentation, but I don’t know what to do when the text gets filtered. Should I just recall the API to get another random word until there’s one that’s uncensored?

Or is there somehow a way to cache all the words and then remove the filtered ones? What would have the least impact in performance

1 Like

Using a loop that waits until a safe word is returned is probably the safest way to go! (pcall or Quenty’s Promise will help if you’re concerned about performance.)

There is a limit of 500 requests per minute for each game server, so if you have many players in a single server you may want to have a backup module that contains a list of “proven safe” words to draw from if you start to toe the line with requests per minute. <:^)

1 Like

Thanks! I’ll try this and see how it goes.

1 Like