How do I make a player explode after using a certain dialog option?

I can’t seem to figure out something like this, I want to make a quest where you find an NPC’S pet dog Noobert for a badge, I have the dialog made but I don’t know how to make the player explode if they choose a certain dialog option.

Roblox has an explosion object class. You can use that to blow the player up.

You can create an explosion instance by typing ‘local newExplosion = Instance.new(“Explosion”)’
and set its parent as the player’s humanoidrootpart or torso.