Advertisement
Guest User

fire test.1

a guest
Apr 21st, 2018
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.75 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. player.Stats.EXP.Value = player.Stats.EXP.Value + 15
  88. for i = 1, 60 do
  89. local part = part:Clone()
  90. part.Parent = workspace
  91. part.CFrame = player.Character:FindFirstChild("UpperTorso").CFrame * CFrame.new(math.random(-28, 28), math.random(70, 80), math.random(-28, 28))
  92. part.Size = Vector3.new(math.random(7, 13))
  93. part.Touched:connect(function(hit)
  94. local hum = hit.Parent:FindFirstChild("Humanoid")
  95. local humName = hit.Parent.Name
  96. if hum then
  97. if humName ~= name then
  98. hum:TakeDamage(1.5)
  99. part:Destroy()
  100. wait(.5)
  101. hum:TakeDamage(math.random(.25, .5))
  102. wait(.5)
  103. hum:TakeDamage(math.random(.25, .5))
  104. wait(.5)
  105. hum:TakeDamage(math.random(.25, .5))
  106. end
  107. end
  108. if not hum then
  109. if hit.Name ~= "FireBall" then
  110. for i = 1, 5, 1 do
  111. local clone = part:Clone()
  112. clone.Parent = workspace
  113. clone.Size = Vector3.new(math.random(1, 2.5))
  114. clone.CFrame = part.CFrame
  115. if clone:FindFirstChildOfClass("BodyVelocity") then
  116. clone:FindFirstChildOfClass("BodyVelocity"):Destroy()
  117. end
  118. local vel = Instance.new("BodyVelocity")
  119. vel.Parent = clone
  120. vel.Velocity = Vector3.new(math.random(-45, 45), math.random(-45, 45), math.random(-45, 45))
  121. game.Debris:AddItem(vel, .5)
  122. end
  123. part:Destroy()
  124. end
  125. end
  126. end)
  127. wait(.001)
  128. end
  129. wait(cool4)
  130. canuse2 = true
  131. end
  132. end
  133. if input.KeyCode == Enum.KeyCode.C then
  134. if canuse3 == true then
  135. canuse3 = false
  136. local part = part:Clone()
  137. part.Parent = workspace
  138. part.Shape = "Cylinder"
  139. part.Anchored = true
  140. part.Position = character:FindFirstChild("HumanoidRootPart").Position + Vector3.new(0, 200, 0)
  141. part.Orientation = Vector3.new(0, 0, 90)
  142. part.Size = Vector3.new(30, 150, 30)
  143. wait(.01)
  144. part.Anchored = false
  145. part.Touched:connect(function(hit)
  146. local hum = hit.Parent:FindFirstChild("Humanoid")
  147. local humName = hit.Parent.Name
  148. if hum then
  149. if humName ~= name then
  150. hum:TakeDamage(2)
  151. end
  152. end
  153. end)
  154. wait(cool4)
  155. canuse3 = true
  156. end
  157. end
  158. if input.KeyCode == Enum.KeyCode.V then
  159. if canuse4 == true then
  160. canuse4 = false
  161. player.Stats.EXP.Value = player.Stats.EXP.Value + 15
  162. script.Parent.Parent.PlayerGui.LastMoveUsed.Background.LastMove.Text = "Last Move Used: Fire Volley (V)"
  163. script.Parent.Parent.PlayerGui.LastMoveUsed.Background.LastType.Text = "Last Move Type: Long Range Offense"
  164. for i = 1, 50 do
  165. local part = part:Clone()
  166. part.Parent = workspace
  167. part.CFrame = player.Character:FindFirstChild("UpperTorso").CFrame * CFrame.new(math.random(-9, 9), math.random(-2, 2), math.random(-6, 6))
  168. part.Size = Vector3.new(math.random(4, 10))
  169. local vel = Instance.new("BodyVelocity")
  170. vel.Parent = part
  171. vel.MaxForce = Vector3.new(math.huge, math.huge, math.huge)
  172. vel.Velocity = Mouse.hit.lookVector * 210
  173. part.Touched:connect(function(hit)
  174. local hum = hit.Parent:FindFirstChild("Humanoid")
  175. local humName = hit.Parent.Name
  176. if hum then
  177. if humName ~= name then
  178. hum:TakeDamage(1.25)
  179. part:Destroy()
  180. wait(.5)
  181. hum:TakeDamage(math.random(.5, .75))
  182. wait(.5)
  183. hum:TakeDamage(math.random(.5, .75))
  184. wait(.5)
  185. hum:TakeDamage(math.random(.5, .75))
  186. end
  187. end
  188. if not hum then
  189. if hit.Name ~= "FireBall" then
  190. for i = 1, 10, 1 do
  191. local clone = part:Clone()
  192. clone.Parent = workspace
  193. clone.Size = Vector3.new(math.random(1, 2.5))
  194. clone.CFrame = part.CFrame
  195. if clone:FindFirstChildOfClass("BodyVelocity") then
  196. clone:FindFirstChildOfClass("BodyVelocity"):Destroy()
  197. end
  198. local vel = Instance.new("BodyVelocity")
  199. vel.Parent = clone
  200. vel.Velocity = Vector3.new(math.random(-45, 45), math.random(-45, 45), math.random(-45, 45))
  201. game.Debris:AddItem(vel, .5)
  202. end
  203. part:Destroy()
  204. end
  205. end
  206. end)
  207. if character:FindFirstChild("Humanoid").Health <= 0 then
  208. part:Destroy()
  209. break
  210. end
  211. wait()
  212. game.Debris:AddItem(part, 2)
  213. end
  214. wait(cool4 + .5)
  215. canuse4 = true
  216. end
  217. end
  218. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement