The NPC from ReplicatedStorage can't make chat bubbles

You can write your topic however you want, but you need to answer these questions:

  1. What do you want to achieve? Keep it simple and clear!
    I want an NPC to talk to you locally. I used a localscript to clone an npc from ReplicatedStorage.
  2. What is the issue? Include screenshots / videos if possible!
    There is no chat bubble and I didn’t get any errors.
  3. What solutions have you tried so far? Did you look for solutions on the Developer Hub?
    I tried putting a server script into the NPC and try to make it talk from there, and I’ve tried to use a localscript in StarterGui to make it talk, but no luck.
game:GetService("Chat"):Chat(script.Parent.Head,"Hey! Follow me!")

Can you share a video of the issue? The script you shared with us works fine when I tried it. If there’s any extra information, please share it. It would help us fix your problem a lot!

Did you try putting the dummy inside ReplicatedStorage and using a localscript to clone it to workspace? I’m doing that because I only want the player to see the dummy.

Yeah, I did that. This is the layout that worked (both LocalScripts are in StarterGui if you’re wondering):

-- LocalScript #1
game:GetService("ReplicatedStorage").Dummy:Clone().Parent = game.Workspace
-- LocalScript #2
game:GetService("Chat"):Chat(game.Workspace:WaitForChild("Dummy").Head, "Hey! Follow me!")

(Also, these scripts were run on a fresh baseplate, check if anything is interfering with the process.)

Thanks! Don’t know why that didn’t work for me before. I might have forgotten to use WaitForChild. But why didn’t I get an error before?

1 Like

To be honest, I’m not sure why it didn’t error. If the dummy wasn’t in workspace, and your LocalScript was in StarterGui, I have no idea why it didn’t work. My best guess is that the LocalScript wasn’t running for some reason, but who knows.

It stopped working again and I fixed it by adding wait(1) before the message so it waits a bit after the game loads and it worked.

1 Like

Alright! Nice job fixing it, though I do wonder why it stopped working. Anyways, good luck on your game :wink: !

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.