Advertisement
LuaWeaver

NPC "Bomb Dude" Conversation Data

Sep 5th, 2014
225
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.78 KB | None | 0 0
  1. conversationData={
  2.     texts={
  3.         "I'm a magical bomb person! I can make you explode fast or slow.",
  4.         "Would you like to blow up quickly or slowly?",
  5.         "Choose your death speed!"
  6.     },
  7.     responses={
  8.         "I'd like to blow up fast.",
  9.         "I'd like to blow up slow.",
  10.         "You know, blowing up isn't really my style..."
  11.     },
  12.     responseBranches={
  13.         {
  14.             texts={"Okay!","Alright.","I'll do that for you."},
  15.             responses={},
  16.             onEnter=function(player,npc)
  17.                 local char=player.Character
  18.                 if char and char:FindFirstChild("Head") then
  19.                     local head=char.Head
  20.                     local explosion=Instance.new("Explosion")
  21.                     explosion.BlastPressure=0
  22.                     explosion.Position=head.Position
  23.                     char:BreakJoints()
  24.                     explosion.Parent=char
  25.                 end
  26.             end
  27.         },
  28.         {
  29.             texts={"Okay!","It's happening slowly.","This may hurt a little bit."},
  30.             responses={},
  31.             onEnter=function(player,npc)
  32.                 local char=player.Character
  33.                 if char and char:FindFirstChild("Head") then
  34.                     local head=char.Head
  35.                     local smoke=Instance.new("Smoke")
  36.                     smoke.Parent=head
  37.                     wait(3)
  38.                     local fire=Instance.new("Fire")
  39.                     fire.Parent=head
  40.                     wait(3)
  41.                     local explosion=Instance.new("Explosion")
  42.                     explosion.BlastPressure=0
  43.                     explosion.Position=head.Position
  44.                     char:BreakJoints()
  45.                     explosion.Parent=char
  46.                 end
  47.             end
  48.         },
  49.         {
  50.             texts={"Too bad. Fast it is.", "You're gonna blow up anyways.", "Oh crap! I already cast the spe-"},
  51.             responses={},
  52.             onEnter=function(player,npc)
  53.                 local char=player.Character
  54.                 if char and char:FindFirstChild("Head") then
  55.                     local head=char.Head
  56.                     local explosion=Instance.new("Explosion")
  57.                     explosion.BlastPressure=0
  58.                     explosion.Position=head.Position
  59.                     char:BreakJoints()
  60.                     explosion.Parent=char
  61.                 end
  62.             end
  63.         }
  64.     }
  65. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement