Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Can you help my text filtering error returning Instance?

Asked by
uhTeddy 101
6 years ago

Hey, So I am trying to filter chat text for my custom chat. The message is returning back as "Instance" I have no idea why as no error is logged. Please help me.

local ChatSent = game:GetService("ReplicatedStorage"):WaitForChild("Chat"):WaitForChild("ChatSent")
local RecieveChat = game:GetService("ReplicatedStorage"):WaitForChild("Chat"):WaitForChild("RecieveChat")
local TextService = game:GetService("TextService")

ChatSent.OnServerEvent:Connect(function(from,chat)
    local filteredTextResult = game.Chat:FilterStringForBroadcast(chat, from)
    RecieveChat:FireAllClients(from,filteredTextResult) 
end)
0
the Chat isn't teh chat service its the folder I have uhTeddy 101 — 6y
0
maybe "chat" is an inbuilt value try using other variables , For example if you type "local end = " then it won't work. (I told "maybe") TheSkyofIndia 150 — 6y
0
This is quite non descriptive (not enough for moderation tho) so I doubt you will get an answer. Post the actual errors and the client-side code. cabbler 1942 — 6y
0
there is no error being returned uhTeddy 101 — 6y

1 answer

Log in to vote
0
Answered by 6 years ago

You're using "FireAllClients" when it must fire to the server.

0
Players.Asuf_o.PlayerGui.CustomChat.Client:29: attempt to concatenate local 'chat' (a userdata value) - Error Im getting nwo uhTeddy 101 — 6y
Ad

Answer this question