Need Help With NPC Dialogue

Basically what I want to do is make a thing where if I say a word such as “hello” then an NPC will respond with a certain message such as “world”. I looked at some tutorials and I couldn’t find anything relevant. So I am kinda stuck right now and I really just need someone to walk me through how I would go about scripting this.

Your best bet, if you are looking for players to speak in chat, would be to listen to the .Chatted event and check if the character is in range of the NPC, and then check if their chat meets specifications and then respond to the player that way.

1 Like