So I have been working on a script that basically takes a message sent from client, filters it on the server and then it fires it back to all clients. However, instead of filtered message, I am getting nothing but “Instance”. Any help would be very appreciated.
The server script:
game.ReplicatedStorage.AnnounceMessage.OnServerEvent:Connect(function(plr, MC)
local TextService = game:GetService("TextService")
local filteredTextResult = TextService:FilterStringAsync(MC, plr.UserId)
local Message = tostring(filteredTextResult)
game.ReplicatedStorage.AnnounceMessage:FireAllClients(Message)
end)