Try something like this then if his doesn’t work:
local Message = " ";
local Textbox = script.Parent;
local Filter = remotes.Filter;
Textbox.FocusLost:Connect(function()
local newMessage = Filter:InvokeServer(Textbox.Text);
Message = newMessage;
Textbox.Text = Message;
end)
On the server:
function remote.OnServerInvoke(player, String)
return TextService:FilterStringAsync(String, player.UserId);
end