You can write your topic however you want, but you need to answer these questions:
What do you want to achieve? I am trying to implement a RP name system that filters when inappropriate text is imputed. Quite literally the most generic RP name system, just with filtering.
What is the issue? I straight up can not find anything that filters. The name system always seems to work, but filtering is never present. Tutorials? Do not work. Devforum or other forums? Either old or deprecated, also does not work. My own script? Wuddya know, doesn’t work. A weird mishmash of multiple resources? Still does not work. Roblox resources? Tried applying them, filter does not work. No matter if a resource is 8 years old, or 9 months old, it does not work. I have tried so many things, and am frankly exhausted.
By the way, this is not a studio only issue, as this also occurs in the roblox client, and not just studio’s.
Any pointers to something or some tactic that actually works, please let me know of. I’m not necessarily asking for a whole new system, just a couple pointers to some things to try, but if you want to provide a system you use, go for it. I’m desperate, at this point.
You have to filter names on the server, not the client.
Send the raw name from the player to the server using a RemoteEvent.
On the server, use TextService:FilterStringAsync(rawName, player.UserId) and then call :GetNonChatStringForBroadcastAsync() on the result
(this is the one that works for RP names and billboards).
Always wrap it in a pcall so it doesn’t break if something glitches. Store the filtered name and apply it to the player’s character.
Biggest mistakes people make: testing only in Studio
Filtering is turned off there.
You have to test in a real Roblox client, using the wrong filter method like GetChatForUserAsync, or trying to do it on the client.
Filter once when they submit the name, save the clean version, and you’re good.
That’s what actually works right now.
If you want, paste your current scripts and I’ll point out the exact fixes.
Anyway, text service should have a filtering function and you have to send text via remote events and have it filtered on the server. Last I checked, text filtering just doesn’t work in studio so it’d have to be tested in live servers. You and your game are fine as long as no one reports it when it doesn’t work. Just make sure to get it working as quick as you can once its available in live servers, and remove it for safety if you can’t get it working.
For safety, you could just create an alternative place on an alternative account (account is optional) to create the system and get it working, then move it to the official place once you know it works and filters text correctly.
Yea, but the filtering problems weren’t just a studio thing. They were an in-game thing, too. Currently reading through everyone’s posts RN, so I’ll get back to you guys if I have any questions.
Sadly, I don’t have the scripts I made myself. It just straight up wasn’t working, so I wiped them, and went back to looking for other resources.
Also, huh, I tried using :GetNonChatStringForBroadcastAsync() before I made the post. Maybe I applied it in the wrong place, or forgot to set up something for it beforehand.
Yeah, I’m aware that filtering does not work in studio. What I did for playtesting was straight up privating the game and testing it in said private instance.
Test in the roblox CLIENT, not in studio. (everyone here knows this, but just in case someone else views this)
If you use this, be sure to offset bubblechat’s Y value by 0.5.
The UI can act off when scaling, so, if needed, specific scripts can be moved into more stable UI, which you can then customize and edit to fit the script and/or theme of your game.
I tried implementing TextService:FilterStringAsync and GetNonChatStringForBroadcastAsync() on the server and the names were still tagged. Im using name selection options like “John Smith”
The system does tag, that’s the point. I needed a system with proper filtering, and 99% of resources didn’t work.
If you want a system that doesn’t tag, but does filter out inappropriate content, the only thing I can suggest is having a set of preselected options that the user can choose from, so that way you don’t have to go through the effort of implementing filtering.