Is profanity actually allowed in scripts?

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:

  1. My swear-word table will be inside a Server Script
  2. The table itself won’t be shown and is not accessible to any client
  3. The script is NOT open-sourced, will not be shared anywhere
  4. 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?

Edit: wording.

2 Likes

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

1 Like

Yeah, it’s not like no one does that.

Comments and identifiers only. Roblox will go through your string literals (for localization purposes), so don’t do anything there.

2 Likes

Nah its fine Nah its fine Nah its fine (had to be thirty letters)

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?

If it is a string then, regardless of whether the client will see it or not, it’s most likely not allowed.

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.

1 Like

Roblox has actually addressed how code in scripts gets handled in the past. They won’t action on code that wasn’t designed with any malicious intent.

You do not need to filter randomly generated strings that aren’t shown to players.
It’d also be painfully slow and a waste of resources to do so.

Note how this statement in the filter scenarios regarding randomly generated strings specifically mentions “displays them to users”.
image

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.

2 Likes

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.