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)
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)