Textbox filtering problem

so basically im trying to filter a textbox gui

LocalScript:

local player = game:GetService("Players").LocalPlayer
local textservice = game:GetService("TextService")
local remote = game.ReplicatedStorage.FilterRE
script.Parent.FocusLost:Connect(function(enterPressed)
	local message = script.Parent.Text
	remote:FireServer(message)
end)

Server Script

local remote = game.ReplicatedStorage.FilterRE
local textservice = game:GetService("TextService")
remote.OnServerEvent:Connect(function(player,message)
	local filteredtext = textservice:FilterStringAsync(message,player.UserId)
	print(filteredtext)
end)

idk if im stupid its just printing
image

To get the message you need to use GetChatForUserAsync

its not hashtagging it
image

local remote = game.ReplicatedStorage.FilterRE
local textservice = game:GetService("TextService")
remote.OnServerEvent:Connect(function(player,message)
	local filteredtext = textservice:FilterStringAsync(message,player.UserId)
	local result = filteredtext:GetChatForUserAsync(player.UserId)
	print(result)
end)

this what i did

Text filtering is not functional within Roblox Studio.

It does not filter in Studio. Test it in a live game.

1 Like

ohh thanksssssssssssssssssssssssss

Please mark @COUNTYL1MITS as the solution if resolved.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.