TheUnknownDiscord

Flame Thrower

Nov 7th, 2021 (edited)
282
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 13.19 KB | None | 0 0
  1. local onfire = {}
  2. db2 = false
  3. local oldcf
  4. local tweenService = game:GetService("TweenService")
  5. Tool = Instance.new("Tool")
  6. Part1 = Instance.new("Part")
  7. Part2 = Instance.new("Part")
  8. Part1.Name = "Handle"
  9. Part1.Parent = Tool
  10. Part1.Size = Vector3.new(1.227,2.77875,9.54375)
  11. Part2.Parent = Part1
  12. Part2.Size = Vector3.new(0.25,0.675,0.675)
  13. Part2.CanCollide = false
  14. Part2.CanTouch = false
  15. Part2.Massless = true
  16. Part1.Massless = true
  17. Part2.Name = "Comedy"
  18. Tool.Name = "A R S O N"
  19. Part1.CanTouch = false
  20. weld = Instance.new("Weld",Part1)
  21. weld.Part0 = Part2
  22. weld.Part1 = Part1
  23. weld.C0 = CFrame.Angles(0,0,math.rad(-7.5)) * CFrame.new(4,-0.585,0) * CFrame.Angles(0,math.rad(90),0)
  24. Part2.Shape = Enum.PartType.Cylinder
  25. Part2.Color = Color3.fromRGB(0,0,0)
  26. Part2.Material = Enum.Material.SmoothPlastic
  27. Mesh = Instance.new("SpecialMesh")
  28. Mesh.Parent = Part1
  29. Mesh.MeshId = "http://www.roblox.com/asset/?id=6798507520"
  30. Mesh.TextureId = "http://www.roblox.com/asset/?id=6798507601"
  31. Mesh.Scale = Vector3.new(0.75,0.75,0.75)
  32. Tool.GripPos = Vector3.new(0,0,3)
  33. Tool.Parent = owner.Character
  34. local BURNAHAHAH = Instance.new("Sound", Part1)
  35. BURNAHAHAH.SoundId = "rbxassetid://7367431777"
  36. BURNAHAHAH.Volume = 0.75
  37. local Woosh = Instance.new("Sound", Part1)
  38. Woosh.SoundId = "rbxassetid://411274847"
  39. Woosh.Volume = 1.35
  40. Woosh.PlaybackSpeed = 1.35
  41. BURNAHAHAH.Looped = true
  42. on = false
  43. toolout = false
  44. airblast = false
  45. on2 = false
  46. function thinghere(plr,action)
  47. if action == "Down" then
  48. airblast = true
  49. elseif action == "up" then
  50. airblast = false
  51. end
  52. end
  53. Tool.Equipped:Connect(function()
  54. toolout = true
  55. Part1.CanTouch = false
  56. end)
  57. Tool.Unequipped:Connect(function()
  58. toolout = false
  59. Part1.CanTouch = true
  60. end)
  61. Tool.Activated:Connect(function()
  62. if not airblast then
  63. on = true
  64. BURNAHAHAH:Play()
  65. elseif airblast then
  66. Woosh:Play()
  67. on2 = true
  68. wait(0.75)
  69. on2 = false
  70. end
  71. end)
  72. Tool.Deactivated:Connect(function()
  73. on = false
  74. BURNAHAHAH:Stop()
  75. end)
  76. print("Z to change between airblast and flames")
  77. warn("Flames? More like ARSON")
  78. warn("Made by Lucas_YT111 / Haker Man")
  79. local E = Instance.new("RemoteEvent",NLS([[local E = script:FindFirstChildWhichIsA("RemoteEvent")
  80. count = 0
  81. local Mouse = owner:GetMouse()
  82. function ButtonDown(key)
  83. if key == "z" then
  84. count = count + 1
  85. if count == 1 then
  86. E:FireServer("Down",Mouse.Target)
  87. elseif count == 2 then
  88. E:FireServer("up")
  89. count = 0
  90. end
  91. end
  92. end
  93. Mouse.KeyDown:Connect(ButtonDown)
  94. ]],owner.PlayerGui))
  95. E.OnServerEvent:Connect(thinghere)
  96. while true do
  97. wait(0.03125)
  98. if toolout then
  99. if not airblast then
  100. local Flame3 = Instance.new("SpawnLocation", script)
  101. Flame3.Size = Vector3.new(0.1,0.1,0.1)
  102. Flame3.Neutral = false
  103. Flame3.Enabled = false
  104. Flame3.CFrame = Part1.CFrame * CFrame.new(-0.375,0,-4.575)
  105. Flame3.CanCollide = false
  106. Flame3.Color = Color3.fromRGB(255, 50, 50)
  107. Flame3.Material = "Neon"
  108. Flame3.Anchored = true
  109. Flame3.Name = "Flameslol"
  110. game:GetService("Debris"):AddItem(Flame3,1)
  111. local timeToFade6 = 1
  112. local object6 = Flame3
  113. local tweenInfo6 = TweenInfo.new(timeToFade6)
  114. local goal8 = {}
  115. goal8.CFrame = Flame3.CFrame * CFrame.new(math.random(-0.5,0.5),0.75,-0.25) * CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
  116. local tween8 = tweenService:Create(object6, tweenInfo6, goal8)
  117. tween8:Play()
  118. local goal9 = {}
  119. goal9.Color = Color3.fromRGB(255, 155, 0)
  120. local tween9 = tweenService:Create(object6, tweenInfo6, goal9)
  121. local goal10 = {}
  122. goal10.Transparency = 1
  123. local tween10 = tweenService:Create(object6, tweenInfo6, goal10)
  124. tween9:Play()
  125. tween10:Play()
  126. elseif airblast then
  127. local Flame3 = Instance.new("SpawnLocation", script)
  128. Flame3.Size = Vector3.new(0.1,0.1,0.1)
  129. Flame3.Neutral = false
  130. Flame3.Enabled = false
  131. Flame3.CFrame = Part1.CFrame * CFrame.new(-0.375,0,-4.575)
  132. Flame3.CanCollide = false
  133. Flame3.Color = Color3.fromRGB(255, 255, 255)
  134. Flame3.Transparency = 0.45
  135. Flame3.Material = "Neon"
  136. Flame3.Anchored = true
  137. Flame3.Name = "Flameslol"
  138. game:GetService("Debris"):AddItem(Flame3,1)
  139. local timeToFade6 = 1
  140. local object6 = Flame3
  141. local tweenInfo6 = TweenInfo.new(timeToFade6)
  142. local goal8 = {}
  143. goal8.CFrame = Flame3.CFrame * CFrame.new(math.random(-0.5,0.5),0.75,-0.25) * CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
  144. local tween8 = tweenService:Create(object6, tweenInfo6, goal8)
  145. tween8:Play()
  146. local goal9 = {}
  147. goal9.Color = Color3.fromRGB(200, 200, 200)
  148. local tween9 = tweenService:Create(object6, tweenInfo6, goal9)
  149. local goal10 = {}
  150. goal10.Transparency = 1
  151. local tween10 = tweenService:Create(object6, tweenInfo6, goal10)
  152. tween9:Play()
  153. tween10:Play()
  154. end
  155. end
  156. pcall(function()
  157. if on then
  158. local Flame = Instance.new("SpawnLocation", script)
  159. Flame.Size = Vector3.new(1,1,1)
  160. Flame.Neutral = false
  161. Flame.Enabled = false
  162. if owner.Character.Humanoid.MoveDirection == Vector3.new(0,0,0) then
  163. Flame.CFrame = Part1.CFrame * CFrame.new(0,0.5,-5.5)
  164. elseif owner.Character.Humanoid.MoveDirection ~= Vector3.new(0,0,0) then
  165. Flame.CFrame = Part1.CFrame * CFrame.new(0,0.5,-8.5)
  166. end
  167. Flame.CanCollide = false
  168. Flame.Color = Color3.fromRGB(255, 50, 50)
  169. Flame.Material = "Neon"
  170. Flame.Name = "Flameslol2"
  171. Flame.Anchored = true
  172. game:GetService("Debris"):AddItem(Flame,2)
  173. local timeToFade = 2
  174. local object = Flame
  175. local tweenInfo = TweenInfo.new(timeToFade)
  176. local goal = {}
  177. if owner.Character.Humanoid.MoveDirection == Vector3.new(0,0,0) then
  178. goal.CFrame = Flame.CFrame * CFrame.new(math.random(-1,1),math.random(-1,1),-10) * CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
  179. elseif owner.Character.Humanoid.MoveDirection ~= Vector3.new(0,0,0) then
  180. goal.CFrame = Flame.CFrame * CFrame.new(math.random(-1,1),math.random(-1,1),-25) * CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
  181. end
  182. local tween = tweenService:Create(object, tweenInfo, goal)
  183. tween:Play()
  184. local timeToFade2 = 2
  185. local object2 = Flame
  186. local tweenInfo2 = TweenInfo.new(timeToFade2)
  187. local goal2 = {}
  188. goal2.Color = Color3.fromRGB(255, 155, 0)
  189. local tween2 = tweenService:Create(object2, tweenInfo2, goal2)
  190. local goal3 = {}
  191. goal3.Transparency = 1
  192. local tween3 = tweenService:Create(object2, tweenInfo2, goal3)
  193. tween2:Play()
  194. tween3:Play()
  195. coroutine.wrap(function()
  196. wait()
  197. Flame.Touched:Connect(function(hit)
  198. if hit.Name ~= "Base" then
  199. if hit.Name ~= "Flameslol" or hit.Name ~= "Flameslol2" or hit.Name ~= "Flameslol3" or hit.Name ~= "Comedy" or hit.Name ~= "Handle" or hit ~= owner.Character:GetDescendants() then
  200. if hit.Name ~= "Flameslol3" then
  201. if hit ~= onfire then
  202. if not db2 then
  203. db2 = true
  204. table.insert(onfire,hit)
  205. for i = 1, 60 do
  206. wait(0.0625)
  207. local Flame2 = Instance.new("SpawnLocation", script)
  208. Flame2.Size = Vector3.new(1,1,1)
  209. Flame2.Neutral = false
  210. Flame2.Enabled = false
  211. Flame2.CFrame = hit.CFrame * CFrame.new(0,0.5,0)
  212. Flame2.CanCollide = false
  213. Flame2.Color = Color3.fromRGB(255, 50, 50)
  214. Flame2.Material = "Neon"
  215. Flame2.Name = "Flameslol3"
  216. Flame2.Anchored = true
  217. game:GetService("Debris"):AddItem(Flame2,2)
  218. coroutine.wrap(function()
  219. wait()
  220. Flame2.Touched:Connect(function(hit)
  221. if hit.Name ~= "Base" then
  222. if hit.Name ~= "Flameslol" or hit.Name ~= "Flameslol2" or hit.Name ~= "Comedy" or hit.Name ~= "Handle" or hit ~= owner.Character:GetDescendants() then
  223. if hit.Name ~= "Flameslol3" then
  224. if hit ~= onfire then
  225. if not db2 then
  226. db2 = true
  227. table.insert(onfire,hit)
  228. for i = 1, 60 do
  229. pcall(function()
  230. local Flame2 = Instance.new("SpawnLocation", script)
  231. Flame2.Size = Vector3.new(1,1,1)
  232. Flame2.Neutral = false
  233. Flame2.Enabled = false
  234. Flame2.CFrame = hit.CFrame * CFrame.new(0,0.5,0)
  235. Flame2.CanCollide = false
  236. Flame2.Color = Color3.fromRGB(255, 50, 50)
  237. Flame2.Material = "Neon"
  238. Flame2.Name = "Flameslol3"
  239. Flame2.Anchored = true
  240. Flame5 = Flame2
  241. game:GetService("Debris"):AddItem(Flame5,2)
  242. local timeToFade3 = 2
  243. local object3 = Flame5
  244. local tweenInfo3 = TweenInfo.new(timeToFade3)
  245. local goal4 = {}
  246. goal4.CFrame = Flame5.CFrame * CFrame.new(math.random(-3,3),3.5,math.random(-3,3)) * CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
  247. local tween4 = tweenService:Create(object3, tweenInfo3, goal4)
  248. tween4:Play()
  249. local timeToFade4 = 2
  250. local object4 = Flame5
  251. local tweenInfo4 = TweenInfo.new(timeToFade4)
  252. local goal5 = {}
  253. goal5.Color = Color3.fromRGB(255, 155, 0)
  254. local tween5 = tweenService:Create(object4, tweenInfo4, goal5)
  255. local goal6 = {}
  256. goal6.Transparency = 1
  257. local tween6 = tweenService:Create(object4, tweenInfo4, goal6)
  258. tween5:Play()
  259. tween6:Play()
  260. if i == 1 then
  261. pcall(function()
  262. local AAAAAAIMBURNING = Instance.new("Sound", hit)
  263. AAAAAAIMBURNING.SoundId = "rbxassetid://158853971"
  264. AAAAAAIMBURNING.Volume = 2.75
  265. AAAAAAIMBURNING.Looped = true
  266. AAAAAAIMBURNING:Play()
  267. end)
  268. local timeToFade5 = 3.75
  269. local object5 = hit
  270. local tweenInfo5 = TweenInfo.new(timeToFade5)
  271. local goal7 = {}
  272. goal7.Color = Color3.fromRGB(0,0,0)
  273. local tween7 = tweenService:Create(object5, tweenInfo5, goal7)
  274. tween7:Play()
  275. elseif i == 10 then
  276. db2 = false
  277. elseif i == 60 then
  278. oldcf = hit.CFrame
  279. hit:Destroy()
  280. for i2 = 1, 15 do
  281. partdebris = Instance.new("SpawnLocation",script)
  282. partdebris.Enabled = false
  283. partdebris.Shape = Enum.PartType.Ball
  284. partdebris.Size = Vector3.new(0.5,0.5,0.5)
  285. partdebris.Color = Color3.fromRGB(0,0,0)
  286. Mesh = Instance.new("SpecialMesh")
  287. Mesh.Parent = partdebris
  288. Mesh.MeshType = "Brick"
  289. Mesh.Scale = Vector3.new(0.5, 0.5, 0.5)
  290. partdebris.CanTouch = false
  291. partdebris.Material = Enum.Material.SmoothPlastic
  292. partdebris.CFrame = oldcf * CFrame.new(math.random(-1,1),math.random(-1,1),math.random(-1,1))
  293. game:GetService("Debris"):AddItem(partdebris,6)
  294. end
  295. end
  296. end)
  297. end
  298. end
  299. end
  300. end
  301. end
  302. end
  303. end)
  304. end)()
  305. local timeToFade3 = 2
  306. local object3 = Flame2
  307. local tweenInfo3 = TweenInfo.new(timeToFade3)
  308. local goal4 = {}
  309. goal4.CFrame = Flame2.CFrame * CFrame.new(math.random(-3,3),3.5,math.random(-3,3)) * CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
  310. local tween4 = tweenService:Create(object3, tweenInfo3, goal4)
  311. tween4:Play()
  312. local timeToFade4 = 2
  313. local object4 = Flame2
  314. local tweenInfo4 = TweenInfo.new(timeToFade4)
  315. local goal5 = {}
  316. goal5.Color = Color3.fromRGB(255, 155, 0)
  317. local tween5 = tweenService:Create(object4, tweenInfo4, goal5)
  318. local goal6 = {}
  319. goal6.Transparency = 1
  320. local tween6 = tweenService:Create(object4, tweenInfo4, goal6)
  321. tween5:Play()
  322. tween6:Play()
  323. if i == 1 then
  324. pcall(function()
  325. local AAAAAAIMBURNING = Instance.new("Sound", hit)
  326. AAAAAAIMBURNING.SoundId = "rbxassetid://158853971"
  327. AAAAAAIMBURNING.Volume = 2.75
  328. AAAAAAIMBURNING.Looped = true
  329. AAAAAAIMBURNING:Play()
  330. end)
  331. local timeToFade5 = 3.75
  332. local object5 = hit
  333. local tweenInfo5 = TweenInfo.new(timeToFade5)
  334. local goal7 = {}
  335. goal7.Color = Color3.fromRGB(0,0,0)
  336. local tween7 = tweenService:Create(object5, tweenInfo5, goal7)
  337. tween7:Play()
  338. elseif i == 10 then
  339. db2 = false
  340. elseif i == 60 then
  341. oldcf = hit.CFrame
  342. hit:Destroy()
  343. for i2 = 1, 15 do
  344. partdebris = Instance.new("SpawnLocation",script)
  345. partdebris.Enabled = false
  346. partdebris.Shape = Enum.PartType.Ball
  347. partdebris.Size = Vector3.new(0.5,0.5,0.5)
  348. partdebris.Color = Color3.fromRGB(0,0,0)
  349. Mesh = Instance.new("SpecialMesh")
  350. Mesh.Parent = partdebris
  351. Mesh.MeshType = "Brick"
  352. Mesh.Scale = Vector3.new(0.5, 0.5, 0.5)
  353. partdebris.CanTouch = false
  354. partdebris.Material = Enum.Material.SmoothPlastic
  355. partdebris.CFrame = oldcf * CFrame.new(math.random(-1,1),math.random(-1,1),math.random(-1,1))
  356. game:GetService("Debris"):AddItem(partdebris,6)
  357. end
  358. end
  359. end
  360. end
  361. end
  362. end
  363. end
  364. end
  365. end)
  366. end)()
  367. elseif on2 then
  368. local Flame = Instance.new("SpawnLocation", script)
  369. Flame.Size = Vector3.new(1,1,1)
  370. Flame.Neutral = false
  371. Flame.Enabled = false
  372. Flame.CFrame = Part1.CFrame * CFrame.new(0,0.5,-5.5)
  373. Flame.CanCollide = false
  374. Flame.Color = Color3.fromRGB(255, 255, 255)
  375. Flame.Material = "Neon"
  376. Flame.Name = "Flameslol2"
  377. Flame.Anchored = true
  378. game:GetService("Debris"):AddItem(Flame,0.5)
  379. local timeToFade = 0.5
  380. local object = Flame
  381. local tweenInfo = TweenInfo.new(timeToFade)
  382. local goal = {}
  383. goal.CFrame = Flame.CFrame * CFrame.new(math.random(-1,1),math.random(-1,1),-10) * CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
  384. local tween = tweenService:Create(object, tweenInfo, goal)
  385. tween:Play()
  386. local timeToFade2 = 0.5
  387. local object2 = Flame
  388. local tweenInfo2 = TweenInfo.new(timeToFade2)
  389. local goal2 = {}
  390. goal2.Color = Color3.fromRGB(200, 200, 200)
  391. local tween2 = tweenService:Create(object2, tweenInfo2, goal2)
  392. local goal3 = {}
  393. goal3.Transparency = 1
  394. local tween3 = tweenService:Create(object2, tweenInfo2, goal3)
  395. tween2:Play()
  396. tween3:Play()
  397. coroutine.wrap(function()
  398. wait()
  399. Flame.Touched:Connect(function(hit)
  400. if hit.Name ~= "Base" then
  401. if hit.Name ~= "Flameslol" or hit.name ~= "Flameslol2" then
  402. if not db2 then
  403. db2 = true
  404. bv = Instance.new("BodyVelocity",hit)
  405. bv.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
  406. bv.Velocity = Part1.CFrame.lookVector * 125
  407. wait(0.0625)
  408. db2 = false
  409. bv:Destroy()
  410. end
  411. end
  412. end
  413. end)
  414. end)()
  415. end
  416. end)
  417. end
Add Comment
Please, Sign In to add comment