Ad
Still have questions? Join our Discord server and get real time help.
Log in to vote
0

Can you help my text filtering error returning Instance?

Asked by
uhTeddy 101
2 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 — 2y
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 — 2y
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 1937 — 2y
0
there is no error being returned uhTeddy 101 — 2y

1 answer

Log in to vote
0
Answered by 2 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 — 2y
Ad

Answer this question