Local Script
script.Parent.MouseButton1Click:connect(function()
game.ReplicatedStorage.Event.Crew1:FireServer(script.Parent.Parent.CrewName.Text)
end)
Server Script
game.ReplicatedStorage.Censor.Event1.OnServerEvent:Connect(function(Player,CrewName)
local TextService = game:GetService("TextService")
local text = CrewName
local success, errorMessage = pcall(function()
filteredTextResult = TextService:FilterStringAsync(text, Player.UserId)
end)
if not success then
warn("Error filtering text:", text, ":", errorMessage)
elseif success then
local PlayerData = game.ServerStorage.DataStore.PlayersData:FindFirstChild(Player.UserId)
PlayerData.MainData.CrewName.Value = text
end end)
The server script should filter the text from a textbox and then put the filtered text into String value. The problem is that it puts the value inside string, but without filtering it.

1 comment
ROBLOX Studio doesn't filter anything. It will only work in live servers.