Advertisement
TacoLuver123

Roblox FlameThrower Script

Aug 19th, 2016
1,269
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.92 KB | None | 0 0
  1. player = game.Players.MlgNoscoperStabber -- YOUR USERNAME HERE
  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)player = game.Players.Magicboopoo -- YOUR USERNAME HERE
  122. char = player.Character
  123. hold = false
  124.  
  125. if script.Parent.className ~= "HopperBin" then
  126. char = player.Character
  127. tool = Instance.new("HopperBin")
  128. tool.Parent = player.Backpack
  129. tool.Name = "[Flame Thrower]"
  130. end
  131.  
  132. bin = tool
  133.  
  134. wr = char.Torso["Right Shoulder"].C1
  135. handle = Instance.new("Part")
  136. handle.Parent = game.Lighting
  137. handle.Name = "Handle"
  138. handle.FormFactor = "Symmetric"
  139. handle.Size = Vector3.new(1,1,1)
  140. handle.TopSurface = 0
  141. handle.BottomSurface = 0
  142. handle.BrickColor = BrickColor.new("Black")
  143. handle.Anchored = false
  144. handle.Position = char["Right Arm"].Position
  145. local m = Instance.new("BlockMesh")
  146. m.Parent = handle
  147. m.Scale = Vector3.new(1,1,4)
  148. m.Offset = Vector3.new(1,0.8,0)
  149. weld = Instance.new("Weld")
  150. weld.Parent = char["Right Arm"]
  151. weld.Part0 = handle
  152. weld.Part1 = weld.Parent
  153. weld.C1 = CFrame.new(0, 0, -0.5)
  154. weld2 = char.Torso["Right Shoulder"]
  155.  
  156.  
  157. function fire(firer)
  158. local p = Instance.new("Part")
  159. p.Parent = workspace
  160. p.Shape = "Ball"
  161. p.Size = Vector3.new(2,2,2)
  162. p.Name = "Fire"
  163. p.CanCollide = false
  164. p.Transparency = 1
  165. p.Anchored = false
  166. p.TopSurface = "Smooth"
  167. p.BottomSurface = "Smooth"
  168. p.CFrame = firer.CFrame + Vector3.new(math.random(-1,1),math.random(0,1),math.random(-1,1))
  169. local bf = Instance.new("BodyVelocity")
  170. bf.Parent = p
  171. bf.velocity = handle.CFrame.lookVector * 23
  172. bf.velocity = bf.velocity + Vector3.new(math.random(-4,4), math.random(-1,4), math.random(-4, 4))
  173. local fia = Instance.new("Fire")
  174. fia.Parent = p
  175. fia.Heat = 20
  176. fia.Size = 4
  177. function kill(hit)
  178. if hit.Parent.Name == player.Name then return end
  179. if hit.Parent.Name == tool.Name then return end
  180. if hit.Parent.Parent.Name == player.Name then return end
  181. if hit.Name == "Fire" then return end
  182. if hit.Name == "Base" then return end
  183. fia.Parent = hit
  184. fia.Heat = 8
  185. fia.Size = 4
  186. hit.BrickColor = BrickColor.new("Neon orange")
  187. wait(1.6)
  188. fia.Heat = 20
  189. fia.Size = 7
  190. hit.BrickColor = BrickColor.new("Bright red")
  191. wait(1.6)
  192. fia.Heat = 30
  193. fia.Size = 10
  194. wait(1.6)
  195. fia.Heat = 40
  196. fia.Size = 15
  197. hit.BrickColor = BrickColor.new("Black")
  198. if hit.Parent:findFirstChild("Humanoid") then
  199. hit.Parent.Humanoid.Health = 0
  200. end
  201. wait(2)
  202. hit:remove()
  203. end
  204. p.touched:connect(kill)
  205. coroutine.resume(coroutine.create(function()
  206. wait(2)
  207. p:remove()
  208. end))
  209. end
  210.  
  211. function click(mouse)
  212. hold = true
  213. while hold == true do
  214. wait()
  215. fire(handle)
  216. end
  217. end
  218.  
  219. function up(mouse)
  220. hold = false
  221. end
  222.  
  223. function select(mouse)
  224. mouse.Button1Down:connect(click)
  225. mouse.Button1Up:connect(up)
  226. handle.Parent = char
  227. weld2.C1 = CFrame.fromEulerAnglesXYZ(0,0,-1.6) * CFrame.new(-0.5,0,-0.4)
  228. weld.Parent = char["Right Arm"]
  229. weld.Part0 = weld.Parent
  230. weld.Part1 = handle
  231. weld.C1 = CFrame.fromEulerAnglesXYZ(1.55,0,0) * CFrame.new(0, 0, -0.8)
  232. end
  233.  
  234.  
  235. function deselect(mouse)
  236. handle.Parent = game.Lighting
  237. weld2.C1 = wr
  238. end
  239.  
  240. tool.Selected:connect(select)
  241. tool.Deselected:connect(deselect)player = game.Players.Magicboopoo -- YOUR USERNAME HERE
  242. char = player.Character
  243. hold = false
  244.  
  245. if script.Parent.className ~= "HopperBin" then
  246. char = player.Character
  247. tool = Instance.new("HopperBin")
  248. tool.Parent = player.Backpack
  249. tool.Name = "[Flame Thrower]"
  250. end
  251.  
  252. bin = tool
  253.  
  254. wr = char.Torso["Right Shoulder"].C1
  255. handle = Instance.new("Part")
  256. handle.Parent = game.Lighting
  257. handle.Name = "Handle"
  258. handle.FormFactor = "Symmetric"
  259. handle.Size = Vector3.new(1,1,1)
  260. handle.TopSurface = 0
  261. handle.BottomSurface = 0
  262. handle.BrickColor = BrickColor.new("Black")
  263. handle.Anchored = false
  264. handle.Position = char["Right Arm"].Position
  265. local m = Instance.new("BlockMesh")
  266. m.Parent = handle
  267. m.Scale = Vector3.new(1,1,4)
  268. m.Offset = Vector3.new(1,0.8,0)
  269. weld = Instance.new("Weld")
  270. weld.Parent = char["Right Arm"]
  271. weld.Part0 = handle
  272. weld.Part1 = weld.Parent
  273. weld.C1 = CFrame.new(0, 0, -0.5)
  274. weld2 = char.Torso["Right Shoulder"]
  275.  
  276.  
  277. function fire(firer)
  278. local p = Instance.new("Part")
  279. p.Parent = workspace
  280. p.Shape = "Ball"
  281. p.Size = Vector3.new(2,2,2)
  282. p.Name = "Fire"
  283. p.CanCollide = false
  284. p.Transparency = 1
  285. p.Anchored = false
  286. p.TopSurface = "Smooth"
  287. p.BottomSurface = "Smooth"
  288. p.CFrame = firer.CFrame + Vector3.new(math.random(-1,1),math.random(0,1),math.random(-1,1))
  289. local bf = Instance.new("BodyVelocity")
  290. bf.Parent = p
  291. bf.velocity = handle.CFrame.lookVector * 23
  292. bf.velocity = bf.velocity + Vector3.new(math.random(-4,4), math.random(-1,4), math.random(-4, 4))
  293. local fia = Instance.new("Fire")
  294. fia.Parent = p
  295. fia.Heat = 20
  296. fia.Size = 4
  297. function kill(hit)
  298. if hit.Parent.Name == player.Name then return end
  299. if hit.Parent.Name == tool.Name then return end
  300. if hit.Parent.Parent.Name == player.Name then return end
  301. if hit.Name == "Fire" then return end
  302. if hit.Name == "Base" then return end
  303. fia.Parent = hit
  304. fia.Heat = 8
  305. fia.Size = 4
  306. hit.BrickColor = BrickColor.new("Neon orange")
  307. wait(1.6)
  308. fia.Heat = 20
  309. fia.Size = 7
  310. hit.BrickColor = BrickColor.new("Bright red")
  311. wait(1.6)
  312. fia.Heat = 30
  313. fia.Size = 10
  314. wait(1.6)
  315. fia.Heat = 40
  316. fia.Size = 15
  317. hit.BrickColor = BrickColor.new("Black")
  318. if hit.Parent:findFirstChild("Humanoid") then
  319. hit.Parent.Humanoid.Health = 0
  320. end
  321. wait(2)
  322. hit:remove()
  323. end
  324. p.touched:connect(kill)
  325. coroutine.resume(coroutine.create(function()
  326. wait(2)
  327. p:remove()
  328. end))
  329. end
  330.  
  331. function click(mouse)
  332. hold = true
  333. while hold == true do
  334. wait()
  335. fire(handle)
  336. end
  337. end
  338.  
  339. function up(mouse)
  340. hold = false
  341. end
  342.  
  343. function select(mouse)
  344. mouse.Button1Down:connect(click)
  345. mouse.Button1Up:connect(up)
  346. handle.Parent = char
  347. weld2.C1 = CFrame.fromEulerAnglesXYZ(0,0,-1.6) * CFrame.new(-0.5,0,-0.4)
  348. weld.Parent = char["Right Arm"]
  349. weld.Part0 = weld.Parent
  350. weld.Part1 = handle
  351. weld.C1 = CFrame.fromEulerAnglesXYZ(1.55,0,0) * CFrame.new(0, 0, -0.8)
  352. end
  353.  
  354.  
  355. function deselect(mouse)
  356. handle.Parent = game.Lighting
  357. weld2.C1 = wr
  358. end
  359.  
  360. tool.Selected:connect(select)
  361. tool.Deselected:connect(deselect)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement