Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

How do you make a player force chat something?

i don't want custom guis and ChatSystemMakeMessage. just chatspeaker (i need help with it)

1 comment

1

It's not possible to force someone to say something. You would have to go the Custom Gui route to make it look like the message legitimately came from a player. ChatMakeSystemMessage would be your next best option.

2 answers

-- Hope it works
game:GetService("ReplicatedStorage").DefaultChatSystemChatEvents.SayMessageRequest:FireServer("hmm", "All")
local asdf = require(game.Players.LocalPlayer.PlayerScripts.ChatScript.ChatMain)
asdf.MessagePosted:fire("hmm");

An easy way to do this is to use MessageSender:SendMessage(), but you will have to use MessageSender:RegisterSayMessageFunction() first.

local MessageSender = require(game.Chat.ChatScript.ChatMain.MessageSender)
MessageSender:RegisterSayMessageFunction(game.ReplicatedStorage.DefaultChatSystemChatEvents.SayMessageRequest)

MessageSender:SendMessage("Hello!", "All")

This discussion is preserved as it was. New answers, comments, and votes are closed.