ok so i follow all the guide and i think im ok but it still doesnt work :
the local script
and the server script
ok so i follow all the guide and i think im ok but it still doesnt work :
the local script
This is the problem:
Replace this with:
Event.OnServerEvent:Connect(onSendMessage)
i got this error …
Replace this (Line 34 of main script):
Event:FireClient(player, filteredMessage)
Also, add this to the start of the chat gui:
script:FindFirstAncestorOfClass("ScreenGui").Enabled = false
script:FindFirstAncestorOfClass("ScreenGui").Enabled = game:GetService("Chat"):CanUserChatAsync(game.Players.LocalPlayer.UserId)
This is required by Roblox as it respects parental controls.
Sorry, you should replace this with (again another Roblox requirement):
if game:GetService("Chat"):CanUsersChatAsync(sender.UserId, player.UserId) then
Event:FireClient(player, filteredMessage)
end
This is so blocked players cannot chat with each other, Roblox prohibits blocked users chatting to each other…
OKAY ! ITS WORK ! Thank you a lot man <3