script.Parent.DialogChoiceSelected:Connect(function(Dialog)
if Dialog.Name == 'talk2' then
if Dialog.Parent:findFirstChild("Humanoid") then
Dialog.Parent.Humanoid.Health = 0
end
end
end)
there are two dialog choices, one of them being talk2
how does one make the dialog script kill?
edit: due to the new fe implementation into all roblox games, the script is not fe compatible.

1 comment
Try using FindFirstChild() Instead of findFirstChild()