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

The script for the explosion of the NPC when choosing a dialogue chose does not work?

Asked by 4 years ago
local telo = workspace.karsblyat.HumanoidRootPart
script.Parent.DialogChoiceSelected:connect(function(player,choice)
        local boom = Instance.new("Explosion", telo)
        boom.Parent = telo
end)

According to my idea, this script should explode the NPC with which the dialogue occurs, when choosing the parent choice, but it just does not work. HEEEEEEELP

Answer this question