So I've made a 'Roleplay name' overhead GUI that shows information about a player. Players can input anything into this, so I made a script on the server to filter it. But for some reason, it's not working and seems to be showing the unfiltered text either way. I've only tested this in studio (Since I'm working on a friend's place who is offline and can't make it active atm) So not sure if that's why, but this is the code I used:
local success,message = pcall(function()
local text = game.Chat:FilterStringForBroadcast(baseText, player)
roleplayBase[player.Name]=text
changeRoleplayName(player,text)
end)
if not success then
return;

1 comment
Theres a lot of programming missing, could I see the whole Script?