How to make it so a chat bubble pops up on top of a part?

It’s simple, i just want to make so a script in-game makes a part do dialogue, but i don’t know where to start. I want the roblox Chat Bubble bubble, but it can also be the Dialogue object bubble.

I’ve tried using the “Chat” function from the Chat Service, but to no result, no errors.

I’ve seen other roblox games have it, and HD admin has the talk command, which has the exact result i want.

3 Likes

Use ChatService:Chat. Here is an example of using it:

local ChatService = game:GetService("Chat")
 
local part = game.Workspace
 
ChatService:Chat(part, "Hello World!") 
4 Likes

I’ve already tried that, as i said in the post.

1 Like

Where did you place the script? & what type of script is it?

1 Like

a server script, i placed it inside a clickdetector, and the dialogue is also fired by it.

1 Like

Can you try adding print statements to see what works & what doesn’t? Also is there any Output errors?

Nope, no errors, and i’ll try the printing.

1 Like

Chat function only works in localscripts
Use a localscript to acheive this.

Wait no it works just fine serverside. What’s your code? There must be another error

1 Like

Now it works, i don’t know what was wrong since i didn’t modify the script at all.

Nice. Sometimes you will just fix a small typo without realizing and it will work :smiley: – Thats why re-reading code is VERY helpful

(pls mark me as solution ;))

2 Likes

ROBLOX why

Maybe you forgot to commit a draft? Honestly there’s been some strange occurrences with random scripts breaking & suddenly working for no apparent reason, not sure why that is

Small typos. Roblox’s system is fine

2 Likes

Even if that was the case, the script would error with some “unknown global variable” warning/error

Mistypes would more than likely error & break the script from continuing onward, also keeping in mind:

1 Like

True, its possible he re-wrote a word without remembering, too

2 Likes