How to make a Part chat (script)

How do you make parts, talk?
I saw scripts about it, but they did not work for me.

I want a script that actually works.

2 Likes

use ChatService:Chat().

local CS = game:GetService("ChatService")
local part = --part
local color = "Blue" --any color

CS:Chat(part, "text here", color)
2 Likes

nope, It does not work at all.

1 Like

Oh sorry, I meant to do “Chat” not “ChatService”, my bad.

local CS = game:GetService("Chat")
local part = --part
local color = "Blue" --any color

CS:Chat(part, "text here", color)
4 Likes

yes, i know, i noticed it, even before you said that, and it does not work either

Alright, do you mean like the actual chat and not just Chat Bubbles? Because this script is meant to make chat bubbles.

1 Like

and that is actually what i want!

1 Like

image

OH, ok, but models for toolbox actually worked with almost the same code, HOW

i am going to enable bubblechatenabled anyways

nope, it does not work either.

You’ll actually need to script the chat to appear, I was just letting you know that the “BubbleChatEnabled” property needs to be enabled for chat bubbles to appear.

what script do I use on the chat?

That is because those models are using “Dialogue” instances which work similarly to but not exactly the same as chat bubbles.

image

1 Like

Nope

they’re not, They are not using a dialouge

1 Like

If they’re producing chat bubbles then they’re using their own chat scripts then, you should look through those in order to understand what you need to do.

This section is for support with your existing scripts, not for creating scripts for you.

1 Like
local chatservice = game:GetService("Chat")
local part = script.Parent
local color = "Blue" -- i don't know if this works

part.Touched:Connect(function()
chatservice:Chat(part, "text here", color)
end)

Try using that, its @Kaid3n22’s script but it works whenever you touch the part. I think the script was working before, it was just creating the chat bubble before the character loaded in making it impossible to see it.

1 Like

nitpick: should do Part.Touched as script.Parent was declared as part

But yes your solution is correct!

1 Like

You just need to put a dialog in the part

Just use the Dialog instance, it will be easier

@0_vsv @2jammers OP already stated that is not what they want, and a Dialog is more hassle with the dialogChoice children. They want chatservice behavior and the script @oopacity provided will work.