I want to randomize a character but

I was making an npc that turns into a random roblox player. I was testing this and realized a problem. One of the players that popped up had a really inappropriate username, and I don’t know how to filter it out so it won’t show banned users. What is an alternate solution that I could do?

If showing the actual name doesn’t matter, you always have the option of naming the NPC something random and generic, or just omitting the name entirely. Otherwise, I’m sure there’s a Roblox endpoint that you can call using rprxy or something similar to check for banned state.

Yeah, I was originally gonna make it one of the player’s friends using local scripts and GetFriendsAsync but, I don’t really understand those 2 much yet.

Try filter what name and if it tagged then change to new random name.

1 Like

How do I add a filter to text such as names and guis?