How do I make a NPC chat system?

I’m a beginner with scripting Roblox Lua. I’ve looked at multiple tutorials on how to make an NPC chat system, but they didn’t work out for me—any help on how to make a chat system, or tutorials will be gladly appreciated.

1 Like

Well, there are Some ways to do it:
UserImputService
Or get a NPC and put a dialog on the NPCS head.

1 Like

Well, I want it to where you press a certain button, like, “E” and it shows up the chat box. Also, I want it to where you’re able to press the button from a certain distance, as well.

This category isn’t for asking for free code. Please do further research and make attempts on this system. There’s no way that you can’t find anything on this topic: and if you’ve already tried, then please include your attempt in the thread and ask about that. Refer to our category guidelines for posting here.

The following page is useful for working with the chat system and having custom speakers show up in the chat window, NPC or characterless entity:

To make chats appear above an NPC’s head, use the following function:

1 Like

Yeah, I mentioned that I looked through multiple tutorials?

Here are some more good reads. I recommend not only looking at specialized tutorials, but also learning how to do general tasks.

GUIs

getting button presses and more (there are more ways to do this as well)

client-server communication

You didn’t include any information in the thread though. Please read my post again. If you’ve already tried working away at this problem and have an attempt that doesn’t work, please post that code instead. This category isn’t a do-my-work section. :upside_down_face:

2 Likes