Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

NPC Dialog not working and no output?

Asked by
imKlevi 94
3 years ago
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

Log in to vote
0
Answered by 3 years ago

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

0
just modify the chat and the result of the NPC message lithospheres89 0 — 3y
Ad

Answer this question