ok so what that means is how do i use dialog but it activates using a script? like in a script i do something and the npc says it, the player doesn't talk to it i just need it to say something by a script
✓ ANSWER ACCEPTED
how to make a npc talk using dialog activated with a script?
1 answer
✓ Accepted answer
you can use the Chat:Chat method to do this (yes, the service is seriously called chat)
you can use it to make a character say something, so if you wanted to make a character repeat just about the most annoying thing ever, you could do something like this
local ChatService = game:GetService("Chat") -- it's not really called ChatService, the variable name is just for clarity
local char = script.Parent
while true do
ChatService:Chat(char.Head, "Ugh this server is trash everybody ignores my questions...im LEAVING. You all are useless im going to the dev forum where there are SMART PEOPLE .")
wait(2)
end
it doesn't even have to be a character, you can make any part "speak", like this
This discussion is preserved as it was. New answers, comments, and votes are closed.

1 comment
wow! thats pretty cool, thank you!