Advertisement
fusionfriends

Untitled

Jun 15th, 2019
195
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.47 KB | None | 0 0
  1. local Player = game:GetService("Players"):FindFirstChild(script.Name)
  2. script.Name = "Flamethrower"
  3. wait(0.25)
  4. if Player == nil then script:Destroy() return end
  5. repeat wait() until Player.Character
  6. local Character = Player.Character
  7. local Tool = Instance.new("Tool",Player.Backpack)
  8. local TweenService = game:GetService("TweenService")
  9. local Damage = 2
  10. local AfterburnDamage = 4
  11. local SpecialDamage = 5
  12. local SpecialAfterburnDamage = 8
  13. local Colors = {
  14. Color3.fromRGB(255,0,0),
  15. Color3.fromRGB(0,255,0),
  16. Color3.fromRGB(0,0,255)
  17. }
  18. local Intt = 0
  19. local CanHit = false
  20. local SuperValue = 0
  21. local Super = false
  22. Tool.Name = "Flamethrower"
  23. Tool.ToolTip = "Roast those noobs!"
  24. Tool.TextureId = "rbxasset://textures/particles/explosion01_core_main.dds"
  25. Tool.Grip = CFrame.new(-0.400000006, -0.400000006, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  26. local Flamethrower = Instance.new("Part",Tool)
  27. Flamethrower.Name = "Handle"
  28. Flamethrower.BrickColor = BrickColor.new("CGA brown")
  29. Flamethrower.Material = Enum.Material.Neon
  30. Flamethrower.Shape = Enum.PartType.Cylinder
  31. Flamethrower.Size = Vector3.new(3,1,1)
  32. Flamethrower.CanCollide = false
  33. Flamethrower.Massless = true
  34. local FlameParticle1 = Instance.new("ParticleEmitter",Flamethrower)
  35. local FlameParticle1KeypointsSize = {
  36. NumberSequenceKeypoint.new(0,0),
  37. NumberSequenceKeypoint.new(0.8,2.5),
  38. NumberSequenceKeypoint.new(1,0)
  39. }
  40. local FlameParticleKeypointsTransparency = {
  41. NumberSequenceKeypoint.new(0,0),
  42. NumberSequenceKeypoint.new(1,1)
  43. }
  44. FlameParticle1.Size = NumberSequence.new(FlameParticle1KeypointsSize)
  45. FlameParticle1.Transparency = NumberSequence.new(FlameParticleKeypointsTransparency)
  46. FlameParticle1.Color = ColorSequence.new(Color3.fromRGB(255,60,1))
  47. FlameParticle1.LightInfluence = 0
  48. FlameParticle1.LightEmission = 0.5
  49. FlameParticle1.Texture = "rbxassetid://2070896802"
  50. FlameParticle1.RotSpeed = NumberRange.new(360)
  51. FlameParticle1.EmissionDirection = Enum.NormalId.Right
  52. FlameParticle1.Speed = NumberRange.new(40)
  53. FlameParticle1.Lifetime = NumberRange.new(0.25)
  54. FlameParticle1.Rate = 100
  55. FlameParticle1.Enabled = false
  56. local FlameParticle2 = Instance.new("ParticleEmitter",Flamethrower)
  57. local FlameParticle2KeypointsSize = {
  58. NumberSequenceKeypoint.new(0,0),
  59. NumberSequenceKeypoint.new(0.85,1),
  60. NumberSequenceKeypoint.new(1,0)
  61. }
  62. FlameParticle2.Size = NumberSequence.new(FlameParticle2KeypointsSize)
  63. FlameParticle2.Transparency = NumberSequence.new(FlameParticleKeypointsTransparency)
  64. FlameParticle2.Color = ColorSequence.new(Color3.fromRGB(244,255,19))
  65. FlameParticle2.LightInfluence = 0
  66. FlameParticle2.LightEmission = 0.5
  67. FlameParticle2.Texture = "rbxassetid://2070896802"
  68. FlameParticle2.RotSpeed = NumberRange.new(360)
  69. FlameParticle2.EmissionDirection = Enum.NormalId.Right
  70. FlameParticle2.Speed = NumberRange.new(30)
  71. FlameParticle2.Lifetime = NumberRange.new(0.25)
  72. FlameParticle2.Rate = 120
  73. FlameParticle2.Enabled = false
  74. local Hitbox = Instance.new("Part",Flamethrower)
  75. Hitbox.Transparency = 1
  76. Hitbox.Size = Vector3.new(2.25,2.25,7.5)
  77. Hitbox.CanCollide = false
  78. Hitbox.Massless = true
  79. local HitboxWeld = Instance.new("Weld",Hitbox)
  80. HitboxWeld.Part1 = Hitbox
  81. HitboxWeld.Part0 = Flamethrower
  82. HitboxWeld.C1 = CFrame.new(0, 0, -5.24999952, 1.66860048e-07, 1, 3.08536414e-08, -2.98023224e-08, -3.08536343e-08, 1, 1, -1.66860048e-07, 2.98023153e-08)
  83. local Connection = Hitbox.Touched:Connect(function() end)
  84. Tool.Activated:Connect(function()
  85. FlameParticle1.Enabled = true
  86. FlameParticle2.Enabled = true
  87. Flamethrower.BrickColor = BrickColor.new("Neon orange")
  88. local Sound = Instance.new("Sound",Flamethrower)
  89. Sound.Looped = true
  90. Sound.SoundId = "rbxassetid://346067083"
  91. Sound.Volume = 5
  92. Sound:Play()
  93. CanHit = true
  94. end)
  95. Tool.Deactivated:Connect(function()
  96. FlameParticle1.Enabled = false
  97. FlameParticle2.Enabled = false
  98. Flamethrower.BrickColor = BrickColor.new("CGA brown")
  99. Flamethrower.Sound:Destroy()
  100. CanHit = false
  101. end)
  102. function Burn(Target)
  103. Target.Humanoid:TakeDamage(Damage)
  104. if not Target.HumanoidRootPart:FindFirstChild("Burning") then
  105. local Burning = FlameParticle1:Clone()
  106. local BurningKeypointsSize = {
  107. NumberSequenceKeypoint.new(0,0),
  108. NumberSequenceKeypoint.new(0.8,0.9),
  109. NumberSequenceKeypoint.new(1,0)
  110. }
  111. Burning.Size = NumberSequence.new(BurningKeypointsSize)
  112. Burning.Parent = Target.HumanoidRootPart
  113. Burning.SpreadAngle = Vector2.new(1000,1000)
  114. Burning.Rate = 200
  115. Burning.Speed = NumberRange.new(10)
  116. Burning.Name = "Burning"
  117. game.Debris:AddItem(Burning,7)
  118. local Sound = Instance.new("Sound",Target.HumanoidRootPart)
  119. Sound.Looped = true
  120. Sound.SoundId = "rbxassetid://1301200629"
  121. Sound:Play()
  122. game.Debris:AddItem(Sound,7)
  123. while Target.HumanoidRootPart:FindFirstChild("Burning") do
  124. wait(.5)
  125. Target.Humanoid:TakeDamage(AfterburnDamage)
  126. end
  127. end
  128. end
  129. spawn(function()
  130. while wait(.1) do
  131. if CanHit then
  132. for i,v in pairs(Hitbox:GetTouchingParts()) do
  133. if v.Parent and v.Parent:FindFirstChild("Humanoid") and v.Parent.Name ~= Player.Name then
  134. spawn(function()
  135. Burn(v.Parent)
  136. end)
  137. end
  138. end
  139. end
  140. end
  141. end)
  142. spawn(function()
  143. while wait(1) do
  144. if CanHit then
  145. SuperValue = SuperValue+1
  146. if SuperValue == 5 then
  147. Super = true
  148. end
  149. else
  150. SuperValue = 0
  151. end
  152. end
  153. end)
  154. spawn(function()
  155. while wait(0.5) do
  156. if Intt == #Colors then
  157. Intt = 0
  158. end
  159. Intt = Intt+1
  160. TweenService:Create(FlameParticle1,TweenInfo.new(1),{Color = Colors[Intt]}):Play()
  161. end
  162. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement