1_JoDev
(JoDev)
#1
So, i found a way to display bubbles from TextChatService which is TextChatService:DisplayBubble(partOrCharacter : Instance, message : string)
But its not working, because there is no chat over the Rig
local Replies = {
"Yes",
"No",
"Maybe",
"Well thats hard, i can't answer",
"Ohhhhh Yes",
}
game.Players.PlayerAdded:Connect(function(player)
player.Chatted:Connect(function(message)
local reply = Replies[math.random(1, #Replies)]
game.TextChatService:DisplayBubble(workspace.Rig.Head, reply)
end)
end)
i put Rig.Head
because it said illegal charatcer
1 Like
It looks like DisplayBubble isn’t enabled yet.
For the time being, you can use Chat
:Chat()
Like such:
local chat = game:GetService("Chat")
chat:Chat(workspace.Rig.Head, "some message")
local Chat = game:GetService("Chat")
local Replies = {
"Yes",
"No",
"Maybe",
"Well thats hard, i can't answer",
"Ohhhhh Yes",
}
game.Players.PlayerAdded:Connect(function(player)
player.Chatted:Connect(function(message)
local reply = Replies[math.random(1, #Replies)]
Chat:Chat(workspace.Rig.Head, reply)
end)
end)
2 Likes