I’m not a big fan of player userids set by Roblox so I want to make a randomized player userid system in a game of my own. Most of the time a randomized string of 16 characters won’t make any sense however considering the game might be played by thousands or even millions there’ll be a chance for this randomized string to contain swear words. For that reason I want to run my randomized playerid by a table of swear word combinations and re-generate enough times to ensure the string is safe.
Obviously to do so I’d have to make a table of swear words in my script
I’ve read countless posts made by either fellow developers or answers Roblox gave to them however everything I read was conflicting one other
So in my case:
My swear-word table will be inside a Server Script
The table itself won’t be shown and is not accessible to any client
The script is NOT open-sourced, will not be shared anywhere
Only I and other members of my team-create has access to said script
Considering all of the above. Am I allowed to make such a table using profanity words in my game or am I risking moderation action?
If its just in scripts and isn’t shown anywhere in-game then yeah its allowed. I think lots of people swear in their scripts like adding a “fix this shit code” comment or something like that
At least, I’ve never heard of anyone getting in trouble for that and I don’t see why they would
It’s technically bunch of strings stored inside a table. but again as I said; they’re server sided and the table nor the contents are not accessible to any clients. Still an issue?
For cases like these, you should really be using TextService:FilterStringAsync():GetNonChatStringForBroadcastAsync() to filter generated text.
However, given Roblox’s stubborn stance on gutting arbitrary text filtering, I’m not sure what the endorsed solution is now. Even though GetNonChatStringForBroadcastAsync still works, there’s no telling what they’ll do next.
A possible solution for you could be to just limit yourself to a few consonants like "ghlmnwxz". That should be constrained enough to not produce anything profane.
I’d like to thank everyone for their replies. I further digged into this and learnt that using profanity (as in strings or comments) is allowed AS LONG AS clients can’t access it (meaning no players can see them and they’re not present in client-sided scripts (Feel free to let me know if I’m wrong)
With that being said; Overall text filtering is a better method to do this. I just wanted to test this out with tables to see the results because of my curiosity.
For any developers looking to do something similar in the future I highly advise them to use text filtering instead.