I am trying to filter a string that goes from a local script, to a script, to all clients. The remote event works fine, but now that I have to filter it, it makes the output string "Nil". I am completely lost and I have tried every combination I could think of.
Script:
game.ReplicatedStorage.RadioSend.OnServerEvent:Connect(function(player, test)
testsend = tostring(test) --Test is the string I am trying to filter
print(testsend)
local FiSuccess, FiError = pcall(function()
radioFilterResult = TextService:FilterStringAsync(testsend, player.UserId)
return
end)
local radioFilterDone = radioFilterResult
if FiSuccess then
print(radioFilterDone)
game.ReplicatedStorage.RadioReceive:FireAllClients(radioFilterDone)
return radioFilterResult
end
if FiError then
warn("Filter Error")
end
end)

2 comments
I hope this helps out if you still get nil or an error send it here. k thx bye!
Still getting nil :/