Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

Trying to filter the textlabel it's not working?

why is this not filtering the text label?

game.ReplicatedStorage.SetBio.OnServerEvent:Connect(function(player,bioText)
	local FilteredString = game:GetService("Chat"):FilterStringForBroadcast(bioText,player)
	game.Workspace[player.Name].Head:FindFirstChild("BioTag").TextLabel.Text = FilteredString
end)

2 comments

0

Are you testing this on roblox studio? if yes, test in your game not in studio

0

k let me try

1 answer

✓ Accepted answer

It actually is filtering the TextLable, the FilterService isn't technically available in Studio, you have to play in-game to see the results, this also must be done ServerSide due to deprecation of LocalScript methods

This discussion is preserved as it was. New answers, comments, and votes are closed.