Advertisement
Guest User

Untitled

a guest
Jun 25th, 2018
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.39 KB | None | 0 0
  1. repeat wait() until game.Players.LocalPlayer
  2. local cs = game:GetService("Chat")
  3.  
  4. local plr = game.Players.LocalPlayer
  5. repeat wait() until plr.Character
  6. local char = plr.Character
  7. local mouse = plr:GetMouse()
  8.  
  9. local ball = false
  10. local blackHole = false
  11. local set = false
  12. local duration = 0
  13.  
  14. local debounce = false
  15.  
  16. local keys = {}
  17.  
  18. local animations = {
  19. Instance.new("Animation")
  20. }
  21.  
  22. animations[1].AnimationId = 'http://www.roblox.com/Asset?Id=330064050'
  23.  
  24. function destroy()
  25. p1:Destroy()
  26. p2:Destroy()
  27. end
  28.  
  29. function attack()
  30. if ball == false and set == false and plr.PlayerGui.UI.mana.Value > 20 then
  31. cs:Chat(char.Head, "Sun Meteor!", 2)
  32.  
  33. p1 = Instance.new("Part")
  34. p1.Size = Vector3.new(5, 5, 5)
  35. p1.Material = "Neon"
  36. p1.BrickColor = BrickColor.new("Br. yellowish orange")
  37. p2 = Instance.new("Part")
  38. p2.Size = Vector3.new(9, 9, 9)
  39. p2.Material = "Neon"
  40. p2.BrickColor = BrickColor.new("Deep orange")
  41.  
  42.  
  43. p1.Parent = workspace
  44. p2.Parent = workspace
  45.  
  46. p1.Position = (char.Torso.Position + char.Torso.CFrame.lookVector*5)
  47. p2.Position = (char.Torso.Position + char.Torso.CFrame.lookVector*5)
  48.  
  49. bp = Instance.new("BodyPosition", p1)
  50. bp2 = Instance.new("BodyPosition", p2)
  51.  
  52. local animTrack = char.Humanoid:LoadAnimation(animations[1])
  53. animTrack:Play()
  54.  
  55. char.Humanoid.WalkSpeed = 0
  56.  
  57. while keys['q'] == true and wait(0) and set == false and p1.Size ~= Vector3.new(20, 20, 20) do
  58. if p1.Size == Vector3.new(10, 10, 10) then
  59. bp.Position = (char.Torso.Position + char.Torso.CFrame.lookVector*10)
  60. bp2.Position = (char.Torso.Position + char.Torso.CFrame.lookVector*10)
  61. else
  62. bp.Position = (char.Torso.Position + char.Torso.CFrame.lookVector*10) + Vector3.new(0, 10, 0)
  63. bp2.Position = (char.Torso.Position + char.Torso.CFrame.lookVector*10) + Vector3.new(0, 10, 0)
  64. end
  65. bp.P = 10000
  66. bp2.P = 10000
  67. bp.maxForce = Vector3.new(math.huge, math.huge, math.huge)
  68. bp2.maxForce = Vector3.new(math.huge, math.huge, math.huge)
  69. p1.Size = p1.Size + Vector3.new(1, 1, 1)
  70. p2.Size = p2.Size + Vector3.new(1, 1, 1)
  71. wait()
  72. end
  73.  
  74. bp2:Destroy()
  75.  
  76. local w1 = Instance.new("Weld", p1)
  77. w1.Part0 = p1
  78. w1.Part1 = p2
  79. w1.C0 = CFrame.new(0, 0, 0)
  80.  
  81. animTrack:Stop()
  82.  
  83. char.Humanoid.WalkSpeed = 16
  84.  
  85. ball = true
  86. plr.PlayerGui.UI.mana.Value = plr.PlayerGui.UI.mana.Value - 20
  87. plr.Backpack.EXP.Value = plr.Backpack.EXP.Value + 2
  88.  
  89. while wait(0) and set == false do
  90. bp.Position = char.Torso.CFrame:pointToWorldSpace(Vector3.new(0, 18, 0))
  91. bp.P = 10000
  92. bp.maxForce = Vector3.new(math.huge, math.huge, math.huge)
  93. end
  94. end
  95. end
  96.  
  97. function secondAttack()
  98. if ball == true and set == false and plr.PlayerGui.UI.mana.Value > 20 then
  99. cs:Chat(char.Head, 'Black Hole Sun!', 2)
  100. blackHole = true
  101. plr.PlayerGui.UI.usingMana.Value = true
  102.  
  103. p1.BrickColor = BrickColor.new('Really black')
  104. p2.BrickColor = BrickColor.new('Black')
  105.  
  106. local fire = Instance.new('Fire', p1)
  107. fire.Heat = -9
  108. fire.Size = 25
  109. fire.Color = Color3.new(0, 0, 0)
  110. fire.SecondaryColor = Color3.new(0, 0, 0)
  111.  
  112. for _, v in pairs(game.Players:GetPlayers()) do
  113. if v.Character and v.Name ~= plr.Name then
  114. local t = v.Character.Torso
  115.  
  116. local mag = (t.Position - p1.Position).magnitude
  117.  
  118. if mag < 50 then
  119.  
  120. local drag = Instance.new("BodyPosition", t)
  121. drag.Position = p1.Position
  122. drag.maxForce = Vector3.new(math.huge, math.huge, math.huge)
  123. drag.P = 50000
  124.  
  125. p1.Touched:connect(function(hit)
  126. if hit.Parent then
  127. if hit.Parent:FindFirstChild('Humanoid') then
  128. hit.Parent.Humanoid.Health = hit.Parent.Humanoid.Health - 10
  129. end
  130. end
  131. end)
  132.  
  133. while duration < 50 and wait(0.1) do
  134. drag.Position = p1.Position
  135. duration = duration + 1
  136. end
  137.  
  138. p1:Destroy()
  139. p2:Destroy()
  140. drag:Destroy()
  141. plr.PlayerGui.UI.usingMana.Value = true
  142. end
  143. end
  144. end
  145.  
  146. wait(5)
  147.  
  148. p1:Destroy()
  149. p2:Destroy()
  150. ball = false
  151. set = false
  152. blackHole = false
  153. end
  154. end
  155.  
  156. function launch()
  157. if mouse.Target ~= nil and mouse.Target ~= p1 and mouse.Target ~= p2 then
  158. set = true
  159. bp.Position = mouse.Hit.p
  160.  
  161. p1.Touched:connect(function(hit)
  162. if hit.Parent ~= workspace and set == true and hit.Parent.Name ~= plr.Name then
  163. local hum = hit.Parent:FindFirstChild("Humanoid")
  164. if hum and ball == true and debounce == false then
  165. debounce = true
  166. hum.Health = hum.Health - (p1.Size.Y + p1.Size.Y)
  167. if ball == true and set == true then
  168. wait(5)
  169. destroy()
  170. end
  171. ball = false
  172. set = false
  173. debounce = false
  174. end
  175. end
  176. end)
  177.  
  178. repeat wait(0) until math.floor(p1.Position.X) == math.floor(bp.Position.X) and math.floor(p1.Position.Z) == math.floor(bp.Position.Z) and set == true or set == true and wait(5)
  179.  
  180. destroy()
  181.  
  182. set = false
  183. ball = false
  184. end
  185. end
  186.  
  187. mouse.KeyDown:connect(function(key)
  188. if key == 'q' and ball == false and set == false then
  189. attack()
  190. elseif key == 'q' and ball == true and set == false and blackHole == false then
  191. launch()
  192. elseif key == 'e' and ball == true and set == false and blackHole == false then
  193. secondAttack()
  194. end
  195. end)
  196.  
  197. mouse.KeyDown:connect(function(key) keys[key] = true end)
  198. mouse.KeyUp:connect(function(key) keys[key] = false end)
  199.  
  200. char.Humanoid.Died:connect(function()
  201. if ball then
  202. destroy()
  203. end
  204. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement