Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Trying to filter the textlabel it's not working?

Asked by 5 years ago

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)
0
Are you testing this on roblox studio? if yes, test in your game not in studio yHasteeD 1819 — 5y
0
k let me try XcrossyYTBackup 14 — 5y

1 answer

Log in to vote
0
Answered by
Ziffixture 6913 Moderation Voter Community Moderator
5 years ago

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

Ad

Answer this question