How can I make a fake chat? Like this =
It’s for my game.
I want to do it for a player who is not in the game or does not exist.
How can I make a fake chat? Like this =
It’s for my game.
I want to do it for a player who is not in the game or does not exist.
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.
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:
What you have to do is:
systemMessage:FireAllClients({sender = "[Server]"; text = "Hello"})
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
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.