I want an NPC talking something randomly per a custom time using dialog but not need player to answer OR click the questiion mark (Just like some NPC in The Normal Elevator)
you can create a table, and cycle through the list;
local npcSpeech = { "I like cheese", "I like pie", "I am jumping", "Doge is alive" } local dialog = script.Parent -- or wherever it is for x = 1, #npcSpeech do dialog.InitialPrompt = npcSpeech[x] -- Or however you change the dialog wait(math.random(5,20)) -- wait for 5 - 20 seconds before talking again end
Note i am typing all of this from memory tell me if something is off
Closed as Not Constructive by hiimgoodpack
This question has been closed because it is not constructive to others or the asker. Most commonly, questions that are requests with no attempt from the asker to solve their problem will fall into this category.
Why was this question closed?