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

NPC Dialog not working and no output?

script.Parent.Dialog.DialogChoiceSelected:Connect(function(player,choice)
	
	print(player.Name,choice)
	
end)

when i choose something from the dialog, nothing outputs, what should be the problem?

1 answer

try to use this script.

game.Players.PlayerAdded:Connect(function(player)
    local bot name = script.Parent
    
    player.chatted:Connect(function(msg)
        if msg == "insert msg here" then
            wait(1)
            game:GetService("Chat"):chat((name of NPC).Head, "insert bot message", Enum.ChatColor.White) --[[can be whatever color you want]]
        end
    end)
end)


just edit the "inset msg here" and Name of NPC

1 comment

0

just modify the chat and the result of the NPC message

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