Advertisement
Guest User

fire test.2

a guest
Apr 21st, 2018
520
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.43 KB | None | 0 0
  1. --Vars
  2. local player = game.Players.LocalPlayer
  3. repeat wait() until player.Character
  4. local character = player.Character
  5. local Mouse = player:GetMouse()
  6. local part = Instance.new('Part')
  7. part.Material = Enum.Material.Neon
  8. part.Color = Color3.fromRGB(170, 85, 0)
  9. part.Transparency = .25
  10. part.Shape = 'Ball'
  11. local name = player.Name
  12. local inputservice = game:GetService("UserInputService")
  13. local cool1 = 1
  14. local cool2 = 2
  15. local cool3 = 3
  16. local cool4 = 4
  17. local cool5 = 5
  18. local cool6 = 6
  19. local cool7 = 7
  20. local cool8 = 8
  21. local canuse1 = true
  22. local canuse2 = true
  23. local canuse3 = true
  24. local canuse4 = true
  25. local canuse5 = true
  26. --Code
  27. inputservice.InputBegan:connect(function(input)
  28. if input.KeyCode == Enum.KeyCode.Z then
  29. if canuse1 == true then
  30. canuse1 = false
  31. local part = part:Clone()
  32. part.Parent = workspace
  33. part.CFrame = character:FindFirstChild("UpperTorso").CFrame * CFrame.new(0, 0, -3)
  34. part.Size = Vector3.new(4)
  35. local vel = Instance.new("BodyVelocity")
  36. vel.Parent = part
  37. vel.MaxForce = Vector3.new(math.huge, math.huge, math.huge)
  38. vel.Velocity = Mouse.Hit.lookVector * 210
  39. part.Touched:connect(function(hit)
  40. local hum = hit.Parent:FindFirstChild("Humanoid")
  41. local humName = hit.Parent.Name
  42. local canpart = true
  43. if hum then
  44. if humName ~= name then
  45. print(humName)
  46. hum:TakeDamage(12.5)
  47. part.fire.Parent = hit
  48. part:Destroy()
  49. wait(.5)
  50. hum:TakeDamage(math.random(1, 5))
  51. wait(.5)
  52. hum:TakeDamage(math.random(1, 5))
  53. wait(.5)
  54. hum:TakeDamage(math.random(1, 5))
  55. hit.fire:Destroy()
  56. end
  57. end
  58. if not hum then
  59. for i = 1, 20, 1 do
  60. local clone = part:Clone()
  61. clone.Parent = workspace
  62. clone.Size = Vector3.new(math.random(1.25, 2.75))
  63. clone.CFrame = part.CFrame
  64. if clone:FindFirstChildOfClass("BodyVelocity") then
  65. clone:FindFirstChildOfClass("BodyVelocity"):Destroy()
  66. end
  67. local vel = Instance.new("BodyVelocity")
  68. vel.Parent = clone
  69. vel.Velocity = Vector3.new(math.random(-45, 45), math.random(-45, 45), math.random(-45, 45))
  70. game.Debris:AddItem(vel, .5)
  71. end
  72. part:Destroy()
  73. end
  74. end)
  75. if character:FindFirstChild("Humanoid").Health <= 0 then
  76. part:Destroy()
  77. end
  78. game.Debris:AddItem(part, 1.5)
  79. wait(.5)
  80. wait(cool2 + .5)
  81. canuse1 = true
  82. end
  83. end
  84. if input.KeyCode == Enum.KeyCode.X then
  85. if canuse2 == true then
  86. canuse2 = false
  87. for i = 1, 60 do
  88. local part = part:Clone()
  89. part.Parent = workspace
  90. part.CFrame = player.Character:FindFirstChild("UpperTorso").CFrame * CFrame.new(math.random(-28, 28), math.random(70, 80), math.random(-28, 28))
  91. part.Size = Vector3.new(math.random(7, 13))
  92. part.Touched:connect(function(hit)
  93. local hum = hit.Parent:FindFirstChild("Humanoid")
  94. local humName = hit.Parent.Name
  95. if hum then
  96. if humName ~= name then
  97. hum:TakeDamage(1.5)
  98. part:Destroy()
  99. wait(.5)
  100. hum:TakeDamage(math.random(.25, .5))
  101. wait(.5)
  102. hum:TakeDamage(math.random(.25, .5))
  103. wait(.5)
  104. hum:TakeDamage(math.random(.25, .5))
  105. end
  106. end
  107. if not hum then
  108. if hit.Name ~= "FireBall" then
  109. for i = 1, 5, 1 do
  110. local clone = part:Clone()
  111. clone.Parent = workspace
  112. clone.Size = Vector3.new(math.random(1, 2.5))
  113. clone.CFrame = part.CFrame
  114. if clone:FindFirstChildOfClass("BodyVelocity") then
  115. clone:FindFirstChildOfClass("BodyVelocity"):Destroy()
  116. end
  117. local vel = Instance.new("BodyVelocity")
  118. vel.Parent = clone
  119. vel.Velocity = Vector3.new(math.random(-45, 45), math.random(-45, 45), math.random(-45, 45))
  120. game.Debris:AddItem(vel, .5)
  121. end
  122. part:Destroy()
  123. end
  124. end
  125. end)
  126. wait(.001)
  127. end
  128. wait(cool4)
  129. canuse2 = true
  130. end
  131. end
  132. if input.KeyCode == Enum.KeyCode.C then
  133. if canuse3 == true then
  134. canuse3 = false
  135. local part = part:Clone()
  136. part.Parent = workspace
  137. part.Shape = "Cylinder"
  138. part.Anchored = true
  139. part.Position = character:FindFirstChild("HumanoidRootPart").Position + Vector3.new(0, 200, 0)
  140. part.Orientation = Vector3.new(0, 0, 90)
  141. part.Size = Vector3.new(30, 150, 30)
  142. wait(.01)
  143. part.Anchored = false
  144. part.Touched:connect(function(hit)
  145. local hum = hit.Parent:FindFirstChild("Humanoid")
  146. local humName = hit.Parent.Name
  147. if hum then
  148. if humName ~= name then
  149. hum:TakeDamage(2)
  150. end
  151. end
  152. end)
  153. wait(cool4)
  154. canuse3 = true
  155. end
  156. end
  157. if input.KeyCode == Enum.KeyCode.V then
  158. if canuse4 == true then
  159. canuse4 = false
  160. for i = 1, 50 do
  161. local part = part:Clone()
  162. part.Parent = workspace
  163. part.CFrame = player.Character:FindFirstChild("UpperTorso").CFrame * CFrame.new(math.random(-9, 9), math.random(-2, 2), math.random(-6, 6))
  164. part.Size = Vector3.new(math.random(4, 10))
  165. local vel = Instance.new("BodyVelocity")
  166. vel.Parent = part
  167. vel.MaxForce = Vector3.new(math.huge, math.huge, math.huge)
  168. vel.Velocity = Mouse.hit.lookVector * 210
  169. part.Touched:connect(function(hit)
  170. local hum = hit.Parent:FindFirstChild("Humanoid")
  171. local humName = hit.Parent.Name
  172. if hum then
  173. if humName ~= name then
  174. hum:TakeDamage(1.25)
  175. part:Destroy()
  176. wait(.5)
  177. hum:TakeDamage(math.random(.5, .75))
  178. wait(.5)
  179. hum:TakeDamage(math.random(.5, .75))
  180. wait(.5)
  181. hum:TakeDamage(math.random(.5, .75))
  182. end
  183. end
  184. if not hum then
  185. if hit.Name ~= "FireBall" then
  186. for i = 1, 10, 1 do
  187. local clone = part:Clone()
  188. clone.Parent = workspace
  189. clone.Size = Vector3.new(math.random(1, 2.5))
  190. clone.CFrame = part.CFrame
  191. if clone:FindFirstChildOfClass("BodyVelocity") then
  192. clone:FindFirstChildOfClass("BodyVelocity"):Destroy()
  193. end
  194. local vel = Instance.new("BodyVelocity")
  195. vel.Parent = clone
  196. vel.Velocity = Vector3.new(math.random(-45, 45), math.random(-45, 45), math.random(-45, 45))
  197. game.Debris:AddItem(vel, .5)
  198. end
  199. part:Destroy()
  200. end
  201. end
  202. end)
  203. if character:FindFirstChild("Humanoid").Health <= 0 then
  204. part:Destroy()
  205. break
  206. end
  207. wait()
  208. game.Debris:AddItem(part, 2)
  209. end
  210. wait(cool4 + .5)
  211. canuse4 = true
  212. end
  213. end
  214. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement