Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Placing Dialog in Chat?

Asked by 9 years ago

I was wondering how (if possible) I could insert a message into chat as if a Player had typed it

Message = Instance.new("Message", game.Chat) --ignore my code, this is just a mock up to give yall an idea
Message.Text = "BSIncorporated is here"
Message.Speaker = "Server"
Message.Color = BrickColor.new or Color3.new()
etc.

Any help is appreciated. I do realize that creating my own chat interpretatur would make this easily possible, but I was wondering if there was a way without using scripts for GUIs

1 answer

Log in to vote
1
Answered by
Dominical 215 Moderation Voter
9 years ago

Sadly, ROBLOX( as of now ) cannot do this. But like you said, if you created your own custom chat, you can accomplish this.

BUT You can create a speech bubble using the Chat Service. Here's an example:

local ChatService = game:GetService("Chat")
local Part = workspace.Character.Head -- any part, doesn't have to be a head or bodypart

ChatService:Chat(Part, "Blame John!", "Red")
--[[Color Type Strings/Enums:
"Red"
"Green"
"Blue"
]]

Hopefully this helped!

Ad

Answer this question