local chatEvent = game.ReplicatedStorage:WaitForChild("Chat")

chatEvent.OnServerEvent:Connect(function(message,player)
	
	local filteredMessage=game.TextService:FilterStringAsync(player,message,Enum.TextFilterContext.PublicChat)
	
	print(filteredMessage)
	
end)

2 comments

0

To be honest i never used the 'stock' chat i always scripted a custom and i know nothing about how to modify the original one, sorry.

0

I'm closing this question because it doesn't fit in with the sites purpose. This question is not constructive or descriptive and is most likely a dupilicate since these types of questions have been answered several of times. Do some RESEARCH before giving us an enquiry. Make sure you're following the site's guideliness etc.