TheProNoob2004

FlameThrower [By: TheProNoob2004]

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