Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

how can i script a non playable charecter in roblox studio to talk?

i want to know how bceause i am making a game and it needs the npcs in the game to talk i do not know how tell me i need to know how because it has alot of non playable charecters

3 comments

0

You will need to use game.Chat. Look it up on the Wiki for help.

0

oh ok

0

I made an actual answer below, please tick it if it helps

1 answer

Use the Chat function in the Chat service. Here's an example

local ChatService = game:GetService("Chat")
 
local part = Instance.new("Part")
part.Anchored = true
part.Parent = workspace
 
ChatService:Chat(part, "Blame John!", "Red")

This discussion is preserved as it was. New answers, comments, and votes are closed.