Filter String within studio (plugin development) (TOS issue?)

Well that sucks.
Maybe what you could do is grab a random player in the server and use their UserID?

The thing is that I think <13 users get more filtering when their UserID is used, so maybe try to find a >13 player if possible, otherwise just grab an <13 player?
Though I don’t remember if it’s possible to get if somebody is >13 or not.

5 Likes

My only question with that is Does this count against the player is it filters out a bad result? Like for example lets say my random string generate filtered a bad result. Is this added into a log that a roblox moderator sees against that user, out of context? Not understanding that it wasn’t User generated, If that makes sense?

3 Likes

I don’t think they do this, to prevent abuse.
If you really wanted to, you could try making it filter some pretty harsh stuff on an alt.

I really don’t believe this is the case though, as-in I don’t believe it counts towards moderation.
People would probably seriously abuse it like they did with spoofing/misfiring chatting events to get people banned.

4 Likes

What are you gonna use this string for? Are you displaying it to other users?

4 Likes

Displaying it to other developers for a plugin

4 Likes

Can u like get the player this way? Using StudioService:

local playerId = game:GetService("StudioService"):GetUserId()

Then you’ll have the UserID to filter the text.

1 Like

Yes and I already have something like that in my script.

It just is silly to me to connect the user using the plugin to the filter result considering its not generated from them

Since the roblox docs mentions that you can filter:

"Random Words - If your experience generates words from random characters and displays them to users, there is a chance that it creates inappropriate words. "

3 Likes

I don’t think it is possible to filter text without a UserId.

3 Likes

So Uh new issue. It won’t filter out bad results? Because its studio and chat filters don’t work in studio and I forgot about that… so Uh how do I go about this new found issue :no_mouth:

2 Likes

Oh yeah, I totally forgot to mention that.

I remember swearing in Roblox Studio and got scared for my account.

2 Likes

Well yea, but the plan is to make this plugin public, meaning that I kinda need a way to filter out results because technically I’m responsible as the creator of the plugin

3 Likes

Lemme research and try to find if there’s any way to filter text in Studio.

3 Likes

Apparently, you can’t use the function at all.

3 Likes

Well like. It won’t filter at all. I used the output and put in the test string what should be a filter result and it printed without filtered. No errors were outputed because the user was connected to the server as a studio user (aka myself)

3 Likes

Did you like play the game while using the command?

2 Likes

nope. Its a plugin button you click which makes ~500 random results

3 Likes

I got an error when I tried filtering text.

Tried it with a plugin and in edit mode.

3 Likes

I didn’t

local  result : TextFilterResult = game.TextService:FilterStringAsync("Lol Test", game:GetService("StudioService"):GetUserId())
	print(result:GetNonChatStringForBroadcastAsync())

I connected this with a plugin widget so it fires when my plugin is actively working and is fired in a plugin script so that studio service is available

3 Likes

And it prints out unfiltered strings?

Sry, I noticed you marked your post as a solution. Then got the mark removed.

3 Likes

Yup. I tried some strings that should filter for under 13 year old accounts (just to make sure my account was safe, but wasn’t worried about it), and it was not filtered. I tired more and I haven’t gotten a filtered result (around 15 different results). At all. I am certain that the filter doesn’t work in studio, as I remeber it doesn’t work in a play test result. Only issue is again, this plugin would be public meaning I’m kinda responsible as the creator of the plugin for what it randomly generates

Meant to edit my post, and misclicked it as a Solution lol

4 Likes