How can I make a fake chat?

How can I make a fake chat? Like this =
YO TIS

RobloxScreenShot20200304_010738285
It’s for my game.
I want to do it for a player who is not in the game or does not exist.

2 Likes

Can you please provide more information your post? Thanks!

Use the SetCore method: StarterGui | Documentation - Roblox Creator Hub
Scroll down to the part about ChatMakeSystemMessage.

1 Like

Done, I added another screenshot.

Creating a chat speaker has been discussed quite a lot before, as well as simply using ChatMakeSystemMessage.

If you’d like to have chat messages from the “fake chat” to look just like normal chat then I suggest taking a look at this:

4 Likes

What you have to do is:

  • Fire a remote event via server
systemMessage:FireAllClients({sender = "[Server]"; text = "Hello"})
  • Then implement .OnClientEvent event on client
  • Create the system message using starterGui:SetCore(“ChatMakeSystemMessage”)
local createMessage = function(tab)
	starterGui:SetCore("ChatMakeSystemMessage", {
		Text = (tab.sender..": "..tab.text) or "";
		Font = Enum.Font.SourceSans; --use the font of your choice
		Color = Color3.fromRGB(255, 255, 255); --use the colour of your choice
	})
end

systemMessage.OnClientEvent:Connect(createMessage)

Edit: Didn’t notice the guy above already replied with a solution while I was typing

4 Likes

I know this might sound dumb, but does systemMessage:FireAllClients({sender = "[Server]"; text = "Hello"}) work with or without the CreateMessage function? And if it doesn’t, where or what do I do with the CreateMessage function?

No, nothing would happen at all if you removed createMessage function.

Basically what I did in this piece of code is connect .OnClientEvent to createMessage function, which means it will run each time .OnClientEvent event fires.

1 Like