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?
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
This discussion is preserved as it was. New answers, comments, and votes are closed.
1 comment
just modify the chat and the result of the NPC message