NYXRBLX

Untitled

Sep 9th, 2016
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.95 KB | None | 0 0
  1. player = game.Players.LocalPlayer
  2. char = player.Character
  3. hold = false
  4.  
  5. if script.Parent.className ~= "HopperBin" then
  6. char = player.Character
  7. tool = Instance.new("HopperBin")
  8. tool.Parent = player.Backpack
  9. tool.Name = "[Flame Thrower]"
  10. end
  11.  
  12. bin = tool
  13.  
  14. wr = char.Torso["Right Shoulder"].C1
  15. handle = Instance.new("Part")
  16. handle.Parent = game.Lighting
  17. handle.Name = "Handle"
  18. handle.FormFactor = "Symmetric"
  19. handle.Size = Vector3.new(1,1,1)
  20. handle.TopSurface = 0
  21. handle.BottomSurface = 0
  22. handle.BrickColor = BrickColor.new("Black")
  23. handle.Anchored = false
  24. handle.Position = char["Right Arm"].Position
  25. local m = Instance.new("BlockMesh")
  26. m.Parent = handle
  27. m.Scale = Vector3.new(1,1,4)
  28. m.Offset = Vector3.new(1,0.8,0)
  29. weld = Instance.new("Weld")
  30. weld.Parent = char["Right Arm"]
  31. weld.Part0 = handle
  32. weld.Part1 = weld.Parent
  33. weld.C1 = CFrame.new(0, 0, -0.5)
  34. weld2 = char.Torso["Right Shoulder"]
  35.  
  36.  
  37. function fire(firer)
  38. local p = Instance.new("Part")
  39. p.Parent = workspace
  40. p.Shape = "Ball"
  41. p.Size = Vector3.new(2,2,2)
  42. p.Name = "Fire"
  43. p.CanCollide = false
  44. p.Transparency = 1
  45. p.Anchored = false
  46. p.TopSurface = "Smooth"
  47. p.BottomSurface = "Smooth"
  48. p.CFrame = firer.CFrame + Vector3.new(math.random(-1,1),math.random(0,1),math.random(-1,1))
  49. local bf = Instance.new("BodyVelocity")
  50. bf.Parent = p
  51. bf.velocity = handle.CFrame.lookVector * 23
  52. bf.velocity = bf.velocity + Vector3.new(math.random(-4,4), math.random(-1,4), math.random(-4, 4))
  53. local fia = Instance.new("Fire")
  54. fia.Parent = p
  55. fia.Heat = 20
  56. fia.Size = 4
  57. function kill(hit)
  58. if hit.Parent.Name == player.Name then return end
  59. if hit.Parent.Name == tool.Name then return end
  60. if hit.Parent.Parent.Name == player.Name then return end
  61. if hit.Name == "Fire" then return end
  62. if hit.Name == "Base" then return end
  63. fia.Parent = hit
  64. fia.Heat = 8
  65. fia.Size = 4
  66. hit.BrickColor = BrickColor.new("Neon orange")
  67. wait(1.6)
  68. fia.Heat = 20
  69. fia.Size = 7
  70. hit.BrickColor = BrickColor.new("Bright red")
  71. wait(1.6)
  72. fia.Heat = 30
  73. fia.Size = 10
  74. wait(1.6)
  75. fia.Heat = 40
  76. fia.Size = 15
  77. hit.BrickColor = BrickColor.new("Black")
  78. if hit.Parent:findFirstChild("Humanoid") then
  79. hit.Parent.Humanoid.Health = 0
  80. end
  81. wait(2)
  82. hit:remove()
  83. end
  84. p.touched:connect(kill)
  85. coroutine.resume(coroutine.create(function()
  86. wait(2)
  87. p:remove()
  88. end))
  89. end
  90.  
  91. function click(mouse)
  92. hold = true
  93. while hold == true do
  94. wait()
  95. fire(handle)
  96. end
  97. end
  98.  
  99. function up(mouse)
  100. hold = false
  101. end
  102.  
  103. function select(mouse)
  104. mouse.Button1Down:connect(click)
  105. mouse.Button1Up:connect(up)
  106. handle.Parent = char
  107. weld2.C1 = CFrame.fromEulerAnglesXYZ(0,0,-1.6) * CFrame.new(-0.5,0,-0.4)
  108. weld.Parent = char["Right Arm"]
  109. weld.Part0 = weld.Parent
  110. weld.Part1 = handle
  111. weld.C1 = CFrame.fromEulerAnglesXYZ(1.55,0,0) * CFrame.new(0, 0, -0.8)
  112. end
  113.  
  114.  
  115. function deselect(mouse)
  116. handle.Parent = game.Lighting
  117. weld2.C1 = wr
  118. end
  119.  
  120. tool.Selected:connect(select)
  121. tool.Deselected:connect(deselect)
Add Comment
Please, Sign In to add comment