Filter textlabel

  1. Filtering a text label

  2. I can’t figure out how to filter it

function DisplayMessage(FrameToOutput,Message)
	FrameToOutput.LineSix.Text = FrameToOutput.LineFive.Text 
	FrameToOutput.LineFive.Text = FrameToOutput.LineFour.Text 
	FrameToOutput.LineFour.Text = FrameToOutput.LineThree.Text 
	FrameToOutput.LineThree.Text = FrameToOutput.LineTwo.Text 
	FrameToOutput.LineTwo.Text = FrameToOutput.LineOne.Text 
	FrameToOutput.LineOne.Text = Message
end

function ConfigMessage(Player,Message,Channel)
	local RadioGui = script.Parent
	local FrameToOutput = RadioGui:FindFirstChild(Channel)
	local ConfiguredMessage = Player.Character.Value.Value..": "..Message
	DisplayMessage(FrameToOutput,ConfiguredMessage)
end
remote.OnServerEvent:Connect(function(Player,Message,Channel)
	

	ConfigMessage(Player,Message,Channel)

end)
2 Likes

Can you explain what you mean by filter? Like you want it to go through the roblox chat filter like “#################” or some other filtering. Please give more context and explanation, or else we can’t help you so much.

Hi there, could you please explain more on what you mean by ‘filtering’? Thank you :slight_smile:

I want it to do the hashtags if it finds a word that should be filtered

From the TextService call the function FilterStringAsync(), it will return a TextFilterResult instance, with which you should use to call the function GetChatForUserAsync() which will return a string value which has been correctly filtered.