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?
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