Advertisement
Jordanconeheadz

Untitled

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