EmeraldIT

Untitled

Apr 13th, 2019
162
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. paly = owner
  2. p = owner
  3. char = paly.Character
  4. local symbolimg = "573917407"
  5. Player = game:GetService("Players").LocalPlayer
  6. Character = Player.Character
  7. local mouse = paly:GetMouse()
  8. local charge = false
  9. local energy = 100000
  10. vt = Vector3.new
  11. torso = char.Torso
  12. neck = char.Torso.Neck
  13. hum = char.Humanoid
  14. Player = game:GetService("Players").LocalPlayer
  15. local mouse = Player:GetMouse()
  16. Character = Player.Character
  17. tors = Character.Torso
  18. lleg = Character["Left Leg"]
  19. root = Character.HumanoidRootPart
  20. hed = Character.Head
  21. rleg = Character["Right Leg"]
  22. rarm = Character["Right Arm"]
  23. larm = Character["Left Arm"]
  24. local Effects = {}
  25. attack = false
  26. local attacking = false
  27. vt = Vector3.new
  28. bc = BrickColor.new
  29. br = BrickColor.random
  30. it = Instance.new
  31. cf = CFrame.new
  32. euler = CFrame.fromEulerAnglesXYZ
  33. angles = CFrame.Angles
  34. matr = math.random
  35. local maincolor = Color3.new(0/255,255/255,100/255)
  36.  
  37. Damagefunc=function(hit,minim,maxim,knockback,Type,Property,Delay,KnockbackType,decreaseblock)
  38. if hit.Parent==nil then
  39. return
  40. end
  41. h=hit.Parent:FindFirstChild("Humanoid")
  42. for _,v in pairs(hit.Parent:children()) do
  43. if v:IsA("Humanoid") then
  44. h=v
  45. end
  46. end
  47. if hit.Parent.Parent:FindFirstChild("Torso")~=nil then
  48. h=hit.Parent.Parent:FindFirstChild("Humanoid")
  49. end
  50. if hit.Parent.className=="Hat" then
  51. hit=hit.Parent.Parent:findFirstChild("Head")
  52. end
  53. if h~=nil and hit.Parent.Name~=Character.Name and hit.Parent:FindFirstChild("Torso")~=nil then
  54. if hit.Parent:findFirstChild("DebounceHit")~=nil then if hit.Parent.DebounceHit.Value==true then return end end
  55. --[[ if game.Players:GetPlayerFromCharacter(hit.Parent)~=nil then
  56. return
  57. end]]
  58. -- hs(hit,1.2)
  59. c=Instance.new("ObjectValue")
  60. c.Name="creator"
  61. c.Value=game:service("Players").LocalPlayer
  62. c.Parent=h
  63. game:GetService("Debris"):AddItem(c,.5)
  64. Damage=math.random(minim,maxim)
  65. -- h:TakeDamage(Damage)
  66. blocked=false
  67. block=hit.Parent:findFirstChild("Block")
  68. if block~=nil then
  69. print(block.className)
  70. if block.className=="NumberValue" then
  71. if block.Value>0 then
  72. blocked=true
  73. if decreaseblock==nil then
  74. block.Value=block.Value-1
  75. end
  76. end
  77. end
  78. if block.className=="IntValue" then
  79. if block.Value>0 then
  80. blocked=true
  81. if decreaseblock~=nil then
  82. block.Value=block.Value-1
  83. end
  84. end
  85. end
  86. end
  87. if blocked==false then
  88. -- h:TakeDamage(Damage)
  89. h.Health=h.Health-Damage
  90. showDamage(hit.Parent,Damage,.5,TorsoColor)
  91. else
  92. h.Health=h.Health-(Damage/2)
  93. showDamage(hit.Parent,Damage/2,.5,BrickColor.new("Bright blue"))
  94. end
  95. if Type=="Knockdown" then
  96. hum=hit.Parent.Humanoid
  97. hum.PlatformStand=true
  98. coroutine.resume(coroutine.create(function(HHumanoid)
  99. swait(1)
  100. HHumanoid.PlatformStand=false
  101. end),hum)
  102. local angle=(hit.Position-(Property.Position+Vector3.new(0,0,0))).unit
  103. --hit.CFrame=CFrame.new(hit.Position,Vector3.new(angle.x,hit.Position.y,angle.z))*CFrame.fromEulerAnglesXYZ(math.pi/4,0,0)
  104. local bodvol=Instance.new("BodyVelocity")
  105. bodvol.velocity=angle*knockback
  106. bodvol.P=5000
  107. bodvol.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
  108. bodvol.Parent=hit
  109. rl=Instance.new("BodyAngularVelocity")
  110. rl.P=3000
  111. rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000
  112. rl.angularvelocity=Vector3.new(math.random(-10,10),math.random(-10,10),math.random(-10,10))
  113. rl.Parent=hit
  114. game:GetService("Debris"):AddItem(bodvol,.5)
  115. game:GetService("Debris"):AddItem(rl,.5)
  116. elseif Type=="Normal" then
  117. vp=Instance.new("BodyVelocity")
  118. vp.P=500
  119. vp.maxForce=Vector3.new(math.huge,0,math.huge)
  120. -- vp.velocity=Character.Torso.CFrame.lookVector*Knockback
  121. if KnockbackType==1 then
  122. vp.velocity=Property.CFrame.lookVector*knockback+Property.Velocity/1.05
  123. elseif KnockbackType==2 then
  124. vp.velocity=Property.CFrame.lookVector*knockback
  125. end
  126. if knockback>0 then
  127. vp.Parent=hit.Parent.Torso
  128. end
  129. game:GetService("Debris"):AddItem(vp,.5)
  130. elseif Type=="Up" then
  131. local bodyVelocity=Instance.new("BodyVelocity")
  132. bodyVelocity.velocity=vt(0,10,0)
  133. bodyVelocity.P=1000
  134. bodyVelocity.maxForce=Vector3.new(1e+009, 1e+009, 1e+009)
  135. bodyVelocity.Parent=hit
  136. game:GetService("Debris"):AddItem(bodyVelocity,1)
  137. rl=Instance.new("BodyAngularVelocity")
  138. rl.P=3000
  139. rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000
  140. rl.angularvelocity=Vector3.new(math.random(-20,20),math.random(-20,20),math.random(-20,20))
  141. rl.Parent=hit
  142. game:GetService("Debris"):AddItem(rl,.5)
  143. elseif Type=="Snare" then
  144. bp=Instance.new("BodyPosition")
  145. bp.P=2000
  146. bp.D=100
  147. bp.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  148. bp.position=hit.Parent.Torso.Position
  149. bp.Parent=hit.Parent.Torso
  150. game:GetService("Debris"):AddItem(bp,1)
  151. elseif Type=="Target" then
  152. if Targetting==false then
  153. ZTarget=hit.Parent.Torso
  154. coroutine.resume(coroutine.create(function(Part)
  155. swait(5)
  156. end),ZTarget)
  157. TargHum=ZTarget.Parent:findFirstChild("Humanoid")
  158. targetgui=Instance.new("BillboardGui")
  159. targetgui.Parent=ZTarget
  160. targetgui.Size=UDim2.new(10,100,10,100)
  161. targ=Instance.new("ImageLabel")
  162. targ.Parent=targetgui
  163. targ.BackgroundTransparency=1
  164. targ.Image="rbxassetid://4834067"
  165. targ.Size=UDim2.new(1,0,1,0)
  166. cam.CameraType="Scriptable"
  167. cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
  168. dir=Vector3.new(cam.CoordinateFrame.lookVector.x,0,cam.CoordinateFrame.lookVector.z)
  169. workspace.CurrentCamera.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
  170. Targetting=true
  171. RocketTarget=ZTarget
  172. for i=1,Property do
  173. --while Targetting==true and Humanoid.Health>0 and Character.Parent~=nil do
  174. if Humanoid.Health>0 and Character.Parent~=nil and TargHum.Health>0 and TargHum.Parent~=nil and Targetting==true then
  175. swait()
  176. end
  177. --workspace.CurrentCamera.CoordinateFrame=CFrame.new(Head.CFrame.p,Head.CFrame.p+rmdir*100)
  178. cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
  179. dir=Vector3.new(cam.CoordinateFrame.lookVector.x,0,cam.CoordinateFrame.lookVector.z)
  180. cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)*cf(0,5,10)*euler(-0.3,0,0)
  181. end
  182. Targetting=false
  183. RocketTarget=nil
  184. targetgui.Parent=nil
  185. cam.CameraType="Custom"
  186. end
  187. end
  188. debounce=Instance.new("BoolValue")
  189. debounce.Name="DebounceHit"
  190. debounce.Parent=hit.Parent
  191. debounce.Value=true
  192. game:GetService("Debris"):AddItem(debounce,Delay)
  193. c=Instance.new("ObjectValue")
  194. c.Name="creator"
  195. c.Value=Player
  196. c.Parent=h
  197. game:GetService("Debris"):AddItem(c,.5)
  198. CRIT=false
  199. hitDeb=true
  200. AttackPos=6
  201. end
  202. end
  203.  
  204. gui = function(GuiType, parent, text, backtrans, backcol, pos, size)
  205. local gui = it(GuiType)
  206. gui.Parent = parent
  207. gui.Text = text
  208. gui.BackgroundTransparency = backtrans
  209. gui.BackgroundColor3 = backcol
  210. gui.SizeConstraint = "RelativeXY"
  211. gui.TextXAlignment = "Center"
  212. gui.TextYAlignment = "Center"
  213. gui.Position = pos
  214. gui.Size = size
  215. gui.Font = "SourceSans"
  216. gui.FontSize = "Size14"
  217. gui.TextWrapped = false
  218. gui.TextStrokeTransparency = 0
  219. gui.TextColor = BrickColor.new("White")
  220. return gui
  221. end
  222.  
  223.  
  224. healthgui.TextSize = 24
  225. healthgui.ZIndex = 2
  226.  
  227. local tick = Instance.new("Sound",tors)
  228. tick.SoundId = "rbxassetid://313108061"
  229. tick.Volume = 2.5
  230. tick.Looped = true
  231. tick.Pitch = 0.85
  232.  
  233. local tick2 = Instance.new("Sound",tors)
  234. tick2.SoundId = "rbxassetid://272207079"
  235. tick2.Volume = 2.5
  236. tick2.Looped = true
  237. tick2.Pitch = 0.85
  238.  
  239. local orb = Instance.new("Part")
  240. orb.Parent = char
  241. orb.Size = Vector3.new(0.2, 0.2, 0.2)
  242. orb.Archivable = true
  243. orb.Transparency = 1
  244. orb.Material = "Neon"
  245. orb.CanCollide = false
  246. local weld1 = Instance.new("Weld")
  247. weld1.Parent = tors
  248. weld1.Part0 = tors
  249. weld1.Part1 = orb
  250. weld1.C1 = CFrame.new(0, 0.01, 0)
  251. local pt1 = NumberSequenceKeypoint.new(0,5,0)
  252. local pt1a = NumberSequenceKeypoint.new(0,1,0)
  253. local pt2a = NumberSequenceKeypoint.new(1,1,1)
  254. local pt2 = NumberSequenceKeypoint.new(1,0,0)
  255. local effecto = Instance.new("ParticleEmitter",orb)
  256. effecto.LightEmission = 1
  257. effecto.Texture = "rbxassetid://296874871"
  258. effecto.Color = maincolor
  259. effecto.Rate = 0
  260. effecto.Acceleration = Vector3.new(0,25,0)
  261. effecto.Transparency = NumberSequence.new({pt1a,pt2a})
  262. effecto.Lifetime = NumberRange.new(0.75)
  263. effecto.Size = NumberSequence.new({pt1,pt2})
  264. effecto.Speed = NumberRange.new(12.5)
  265. effecto.VelocitySpread = 100000000
  266. effecto.RotSpeed = NumberRange.new(-300,300)
  267.  
  268. function Fireball()
  269. local touched = false
  270. local delay = false
  271. local spart = Instance.new("Part",char)
  272. local tick = Instance.new("Sound",spart)
  273. tick.SoundId = "rbxassetid://304448425"
  274. tick.Volume = 1.5
  275. tick.Pitch = 1.5
  276. tick:Play()
  277. spart.Size = vt(1,1,1)
  278. spart.BrickColor = BrickColor.new("Deep orange")
  279. spart.Transparency = 1
  280. spart.CanCollide = false
  281. spart.Material = "Neon"
  282. spart.CFrame = hed.CFrame + Vector3.new(0,0.1,0)
  283. local msh = Instance.new("SpecialMesh",spart)
  284. msh.MeshType = "Sphere"
  285. msh.Scale = vt(3,3,3)
  286. local pt1e = NumberSequenceKeypoint.new(0,5,0)
  287. local pt2e = NumberSequenceKeypoint.new(1,0,0)
  288. local effecto = Instance.new("ParticleEmitter",spart)
  289. effecto.Texture = "rbxassetid://296874871"
  290. effecto.LightEmission = 1
  291. effecto.Color = maincolor
  292. effecto.Rate = 10000
  293. effecto.Lifetime = NumberRange.new(0.5)
  294. effecto.Size = NumberSequence.new({pt1e,pt2e})
  295. effecto.Transparency = NumberSequence.new({pt1a,pt2a})
  296. effecto.Speed = NumberRange.new(0,0)
  297. effecto.RotSpeed = NumberRange.new(-500,500)
  298. local bv = Instance.new("BodyVelocity")
  299. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  300. bv.velocity = mouse.Hit.lookVector * 100
  301. bv.Parent = spart
  302. wait(0.05)
  303. spart.Touched:connect(function(hit)
  304. if touched == false then
  305. touched = true
  306. if hit.Name == "Water" then
  307. local pt1er = NumberSequenceKeypoint.new(0,5,0)
  308. local pt2er = NumberSequenceKeypoint.new(1,0,0)
  309. local smokecolor = Color3.new(0.5,0.5,0.5)
  310. local tick = Instance.new("Sound",spart)
  311. tick.SoundId = "rbxassetid://629468689"
  312. tick.Volume = 1.5
  313. tick.Pitch = 1
  314. tick:Play()
  315. effecto.Rate = 0
  316. local effectoz = Instance.new("ParticleEmitter",spart)
  317. effectoz.Texture = "rbxassetid://296874871"
  318. effectoz.LightEmission = 0.75
  319. effectoz.Color = ColorSequence.new(smokecolor)
  320. effectoz.Lifetime = NumberRange.new(3)
  321. effectoz.Transparency = NumberSequence.new({pt1a,pt2a})
  322. effectoz.Size = NumberSequence.new({pt1er,pt2er})
  323. effectoz.Rotation = NumberRange.new(-300,300)
  324. effectoz.RotSpeed = NumberRange.new(-500,500)
  325. effectoz.Speed = NumberRange.new(10)
  326. effectoz.VelocitySpread = 25
  327. effectoz.Rate = 1000000000000
  328. spart.Anchored = true
  329. wait(1)
  330. effectoz.Rate = 0
  331. wait(2.5)
  332. spart:Destroy()
  333. end
  334. if hit.Name ~= "Water" then
  335. local saveposition = spart.CFrame
  336. spart.Anchored = true
  337. local tick = Instance.new("Sound",spart)
  338. tick.SoundId = "rbxassetid://304529688"
  339. tick.Volume = 1.5
  340. tick.Pitch = 1.25
  341. tick:Play()
  342. effecto:Destroy()
  343. local pt1er = NumberSequenceKeypoint.new(0,10,0)
  344. local pt2er = NumberSequenceKeypoint.new(1,0,0)
  345. local effectoz = Instance.new("ParticleEmitter",spart)
  346. effectoz.Texture = "rbxassetid://296874871"
  347. effectoz.LightEmission = 1
  348. effectoz.Color = maincolor
  349. effectoz.Lifetime = NumberRange.new(0.5)
  350. effectoz.Size = NumberSequence.new({pt1er,pt2er})
  351. effectoz.Speed = NumberRange.new(0,0)
  352. effectoz.Rotation = NumberRange.new(-300,300)
  353. effectoz.RotSpeed = NumberRange.new(-500,500)
  354. effectoz.Speed = NumberRange.new(75)
  355. effectoz.VelocitySpread = 10000000
  356. effectoz.Rate = 1000000000000
  357. spart.Size = vt(1,1,1)
  358. spart.Transparency = 1
  359. spart.CFrame = saveposition
  360. Damagefunc(hit,10,15,-20,"Normal",root,.2,1)
  361. wait(0.5)
  362. effectoz.Rate = 0
  363. for i = 0, 10 do
  364. spart.Size = spart.Size + vt(0.5,0.5,0.5)
  365. spart.CFrame = saveposition
  366. wait()
  367. end
  368. spart:Destroy()
  369. end
  370. end
  371. end)
  372. end
  373.  
  374. function Firestorm()
  375. local shur = Instance.new("Part",char)
  376. local gahd = Instance.new("Sound",char)
  377. char.Humanoid.WalkSpeed = 0
  378. gahd.SoundId = "rbxassetid://313945165"
  379. gahd.Volume = 4.5
  380. gahd.Pitch = 0.595
  381. gahd:Play()
  382. shur.Transparency = 1
  383. shur.Material = "Neon"
  384. shur.BrickColor = bc("Dark green")
  385. shur.Anchored = true
  386. shur.CFrame = tors.CFrame + vt(0,-2.5,0)
  387. shur.Size = vt(1,0.2,1)
  388. shur.CanCollide = false
  389. local dec = Instance.new("Decal",shur)
  390. dec.Texture = symbolimg
  391. dec.Face = "Top"
  392. local dec2 = dec:Clone()
  393. dec2.Parent = shur
  394. dec2.Face = "Bottom"
  395. local Meshshur = Instance.new("CylinderMesh",shur)
  396. Meshshur.Scale = vt(0,1,0)
  397. for i = 0, 25 do
  398. shur.CFrame = tors.CFrame + vt(0,-2.95,0)
  399. Meshshur.Scale = Meshshur.Scale + vt(2.5,0,2.5)
  400. wait(0)
  401. end
  402. for i = 0, 10 do
  403. larm.Transparency = larm.Transparency + 0.1
  404. rarm.Transparency = rarm.Transparency + 0.1
  405. lleg.Transparency = lleg.Transparency + 0.1
  406. rleg.Transparency = rleg.Transparency + 0.1
  407. tors.Transparency = tors.Transparency + 0.1
  408. hed.Transparency = hed.Transparency + 0.1
  409. wait()
  410. end
  411. local pt1mass = NumberSequenceKeypoint.new(0,15,0)
  412. local effecton = Instance.new("ParticleEmitter",root)
  413. effecton.LightEmission = 1
  414. effecton.Texture = "rbxassetid://296874871"
  415. effecton.Color = maincolor
  416. effecton.Rate = 1000
  417. effecton.Lifetime = NumberRange.new(0.75)
  418. effecton.Size = NumberSequence.new({pt1mass,pt2})
  419. effecton.Speed = NumberRange.new(5)
  420. effecton.VelocitySpread = 100000000
  421. effecton.RotSpeed = NumberRange.new(-300,300)
  422. local ash = Instance.new("Sound",root)
  423. ash.SoundId = "rbxassetid://181004943"
  424. ash.Volume = 4
  425. ash.Pitch = 0.25
  426. ash:Play()
  427. local sbs = Instance.new("BodyPosition", root)
  428. sbs.P = 3000
  429. sbs.D = 1000
  430. sbs.maxForce = Vector3.new(500000, 500000000, 500000)
  431. sbs.position = root.CFrame.p + Vector3.new(0, 175, 0)
  432. wait(2.5)
  433. for i = 0, 25 do
  434. local touched = false
  435. local delay = false
  436. local spart = Instance.new("Part",char)
  437. local tick = Instance.new("Sound",spart)
  438. tick.SoundId = "rbxassetid://304448425"
  439. tick.Volume = 1.5
  440. tick.Pitch = 0.85
  441. tick:Play()
  442. spart.Size = vt(2,2,2)
  443. spart.BrickColor = BrickColor.new("Deep orange")
  444. spart.Transparency = 1
  445. spart.CanCollide = false
  446. spart.Material = "Neon"
  447. spart.CFrame = hed.CFrame + Vector3.new(0,0.1,0)
  448. local pt1e = NumberSequenceKeypoint.new(0,15,0)
  449. local pt2e = NumberSequenceKeypoint.new(1,0,0)
  450. local effecto = Instance.new("ParticleEmitter",spart)
  451. effecto.Texture = "rbxassetid://296874871"
  452. effecto.LightEmission = 1
  453. effecto.Color = maincolor
  454. effecto.Rate = 10000
  455. effecto.Lifetime = NumberRange.new(0.5)
  456. effecto.Size = NumberSequence.new({pt1e,pt2e})
  457. effecto.Transparency = NumberSequence.new({pt1a,pt2a})
  458. effecto.Speed = NumberRange.new(0,0)
  459. effecto.RotSpeed = NumberRange.new(-500,500)
  460. local bv = Instance.new("BodyVelocity")
  461. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  462. bv.velocity = mouse.Hit.lookVector * 150
  463. bv.Parent = spart
  464. wait(0.05)
  465. spart.Touched:connect(function(hit)
  466. if touched == false then
  467. touched = true
  468. if hit.Name == "Water" then
  469. local pt1er = NumberSequenceKeypoint.new(0,15,0)
  470. local pt2er = NumberSequenceKeypoint.new(1,0,0)
  471. local smokecolor = Color3.new(0.5,0.5,0.5)
  472. local tick = Instance.new("Sound",spart)
  473. tick.SoundId = "rbxassetid://629468689"
  474. tick.Volume = 1.5
  475. tick.Pitch = 1
  476. tick:Play()
  477. effecto.Rate = 0
  478. local effectoz = Instance.new("ParticleEmitter",spart)
  479. effectoz.Texture = "rbxassetid://296874871"
  480. effectoz.LightEmission = 0.75
  481. effectoz.Color = ColorSequence.new(smokecolor)
  482. effectoz.Lifetime = NumberRange.new(3)
  483. effectoz.Transparency = NumberSequence.new({pt1a,pt2a})
  484. effectoz.Size = NumberSequence.new({pt1er,pt2er})
  485. effectoz.Rotation = NumberRange.new(-300,300)
  486. effectoz.RotSpeed = NumberRange.new(-500,500)
  487. effectoz.Speed = NumberRange.new(10)
  488. effectoz.VelocitySpread = 75
  489. effectoz.Rate = 1000000000000
  490. spart.Anchored = true
  491. wait(3)
  492. effectoz.Rate = 0
  493. wait(2.5)
  494. spart:Destroy()
  495. end
  496. if hit.Name ~= "Water" then
  497. local saveposition = spart.CFrame
  498. spart.Anchored = true
  499. local tick = Instance.new("Sound",spart)
  500. tick.SoundId = "rbxassetid://304529688"
  501. tick.Volume = 1.5
  502. tick.Pitch = 0.85
  503. tick:Play()
  504. local tickn = Instance.new("Sound",spart)
  505. tickn.SoundId = "rbxassetid://138186576"
  506. tickn.Volume = 1.5
  507. tickn.Pitch = 1
  508. tickn:Play()
  509. local tick2e = Instance.new("Sound",spart)
  510. tick2e.SoundId = "rbxassetid://272207079"
  511. tick2e.Volume = 2.5
  512. tick2e.Looped = true
  513. tick2e.Pitch = 0.85
  514. tick2e:Play()
  515. effecto:Destroy()
  516. local pt1er = NumberSequenceKeypoint.new(0,15,0)
  517. local pt1er2 = NumberSequenceKeypoint.new(0,25,0)
  518. local pt2er = NumberSequenceKeypoint.new(1,0,0)
  519. local effectoz = Instance.new("ParticleEmitter",spart)
  520. effectoz.Texture = "rbxassetid://296874871"
  521. effectoz.LightEmission = 1
  522. effectoz.Color = maincolor
  523. effectoz.Lifetime = NumberRange.new(2.5)
  524. effectoz.Size = NumberSequence.new({pt1er,pt2er})
  525. effectoz.Speed = NumberRange.new(0,0)
  526. effectoz.Rotation = NumberRange.new(-300,300)
  527. effectoz.Transparency = NumberSequence.new({pt1a,pt2a})
  528. effectoz.RotSpeed = NumberRange.new(-500,500)
  529. effectoz.Speed = NumberRange.new(10)
  530. effectoz.VelocitySpread = 10000000
  531. effectoz.Rate = 1000000000000
  532. local effectoz2 = Instance.new("ParticleEmitter",spart)
  533. effectoz2.Texture = "rbxassetid://296874871"
  534. effectoz2.LightEmission = 1
  535. effectoz2.Color = maincolor
  536. effectoz2.Lifetime = NumberRange.new(0.5)
  537. effectoz2.Size = NumberSequence.new({pt1er2,pt2er})
  538. effectoz2.Speed = NumberRange.new(0,0)
  539. effectoz2.Rotation = NumberRange.new(-300,300)
  540. effectoz2.RotSpeed = NumberRange.new(-500,500)
  541. effectoz2.Speed = NumberRange.new(250)
  542. effectoz2.VelocitySpread = 10000000
  543. effectoz2.Rate = 1000000000000
  544. spart.Size = vt(25,25,25)
  545. spart.Transparency = 1
  546. spart.CFrame = saveposition
  547. wait(0.5)
  548. Damagefunc(hit,50,60,-20,"Normal",root,.2,1)
  549. effectoz2.Rate = 0
  550. wait(5)
  551. effectoz.Rate = 0
  552. tick2e:Stop()
  553. wait(2.5)
  554. spart:Destroy()
  555. end
  556. end
  557. end)
  558. wait(0.215)
  559. end
  560. wait(1)
  561. effecton.Rate = 0
  562. for i = 0, 10 do
  563. larm.Transparency = larm.Transparency - 0.1
  564. rarm.Transparency = rarm.Transparency - 0.1
  565. lleg.Transparency = lleg.Transparency - 0.1
  566. rleg.Transparency = rleg.Transparency - 0.1
  567. tors.Transparency = tors.Transparency - 0.1
  568. hed.Transparency = hed.Transparency - 0.1
  569. wait()
  570. end
  571. sbs:Destroy()
  572. char.Humanoid.WalkSpeed = 16
  573. for i = 0, 25 do
  574. shur.CFrame = tors.CFrame + vt(0,-2.95,0)
  575. Meshshur.Scale = Meshshur.Scale - vt(2.5,0,2.5)
  576. wait(0)
  577. end
  578. effecton:Destroy()
  579. shur:Destroy()
  580. end
  581.  
  582.  
  583. function SplashFire()
  584. local shur = Instance.new("Part",char)
  585. local gahd = Instance.new("Sound",char)
  586. char.Humanoid.WalkSpeed = 0
  587. gahd.SoundId = "rbxassetid://313945165"
  588. gahd.Volume = 2.5
  589. gahd.Pitch = 0.625
  590. gahd:Play()
  591. shur.Transparency = 1
  592. shur.Material = "Neon"
  593. shur.BrickColor = bc("Dark green")
  594. shur.Anchored = true
  595. shur.CFrame = tors.CFrame + vt(0,-2.5,0)
  596. shur.Size = vt(1,0.2,1)
  597. shur.CanCollide = false
  598. local dec = Instance.new("Decal",shur)
  599. dec.Texture = symbolimg
  600. dec.Face = "Top"
  601. local dec2 = dec:Clone()
  602. dec2.Parent = shur
  603. dec2.Face = "Bottom"
  604. local Meshshur = Instance.new("CylinderMesh",shur)
  605. Meshshur.Scale = vt(0,1,0)
  606. for i = 0, 25 do
  607. shur.CFrame = tors.CFrame + vt(0,-2.95,0)
  608. Meshshur.Scale = Meshshur.Scale + vt(1,0,1)
  609. wait(0)
  610. end
  611. for i = 0, 10 do
  612. larm.Transparency = larm.Transparency + 0.1
  613. rarm.Transparency = rarm.Transparency + 0.1
  614. lleg.Transparency = lleg.Transparency + 0.1
  615. rleg.Transparency = rleg.Transparency + 0.1
  616. tors.Transparency = tors.Transparency + 0.1
  617. hed.Transparency = hed.Transparency + 0.1
  618. wait()
  619. end
  620. local pt1mass = NumberSequenceKeypoint.new(0,15,0)
  621. local effecton = Instance.new("ParticleEmitter",root)
  622. effecton.LightEmission = 1
  623. effecton.Texture = "rbxassetid://296874871"
  624. effecton.Color = maincolor
  625. effecton.Rate = 1000
  626. effecton.Lifetime = NumberRange.new(0.75)
  627. effecton.Size = NumberSequence.new({pt1mass,pt2})
  628. effecton.Speed = NumberRange.new(5)
  629. effecton.VelocitySpread = 100000000
  630. effecton.RotSpeed = NumberRange.new(-300,300)
  631. local ash = Instance.new("Sound",root)
  632. ash.SoundId = "rbxassetid://181004943"
  633. ash.Volume = 4
  634. ash.Pitch = 0.5
  635. ash:Play()
  636. local sbs = Instance.new("BodyPosition", root)
  637. sbs.P = 3000
  638. sbs.D = 1000
  639. sbs.maxForce = Vector3.new(500000, 500000000, 500000)
  640. sbs.position = root.CFrame.p + Vector3.new(0, 200, 0)
  641. wait(1)
  642. sbs.position = root.CFrame.p - Vector3.new(0, 500, 0)
  643. wait(0.1)
  644. sbs:Destroy()
  645. wait(0.15)
  646. effecton.Rate = 0
  647. local spart = Instance.new("Part",char)
  648. spart.Size = vt(2,2,2)
  649. spart.BrickColor = BrickColor.new("Royal purple")
  650. spart.Transparency = 1
  651. spart.CanCollide = false
  652. spart.Material = "Neon"
  653. spart.Anchored = true
  654. spart.CFrame = root.CFrame + Vector3.new(0,0.1,0)
  655. local tick = Instance.new("Sound",spart)
  656. tick.SoundId = "rbxassetid://304529688"
  657. tick.Volume = 1.5
  658. tick.Pitch = 0.85
  659. tick:Play()
  660. local tickn = Instance.new("Sound",spart)
  661. tickn.SoundId = "rbxassetid://138186576"
  662. tickn.Volume = 1.5
  663. tickn.Pitch = 1
  664. tickn:Play()
  665. local tick2e = Instance.new("Sound",spart)
  666. tick2e.SoundId = "rbxassetid://272207079"
  667. tick2e.Volume = 2.5
  668. tick2e.Looped = true
  669. tick2e.Pitch = 0.85
  670. tick2e:Play()
  671. local pt1er = NumberSequenceKeypoint.new(0,10,0)
  672. local pt1er2 = NumberSequenceKeypoint.new(0,20,0)
  673. local pt2er = NumberSequenceKeypoint.new(1,0,0)
  674. local effectoz = Instance.new("ParticleEmitter",spart)
  675. effectoz.Texture = "rbxassetid://296874871"
  676. effectoz.LightEmission = 1
  677. effectoz.Color = maincolor
  678. effectoz.Lifetime = NumberRange.new(2.5)
  679. effectoz.Size = NumberSequence.new({pt1er,pt2er})
  680. effectoz.Speed = NumberRange.new(0,0)
  681. effectoz.Rotation = NumberRange.new(-300,300)
  682. effectoz.Transparency = NumberSequence.new({pt1a,pt2a})
  683. effectoz.RotSpeed = NumberRange.new(-500,500)
  684. effectoz.Speed = NumberRange.new(5)
  685. effectoz.VelocitySpread = 10000000
  686. effectoz.Rate = 1000000000000
  687. local effectoz2 = Instance.new("ParticleEmitter",spart)
  688. effectoz2.Texture = "rbxassetid://296874871"
  689. effectoz2.LightEmission = 1
  690. effectoz2.Color = maincolor
  691. effectoz2.Lifetime = NumberRange.new(0.5)
  692. effectoz2.Size = NumberSequence.new({pt1er2,pt2er})
  693. effectoz2.Speed = NumberRange.new(0,0)
  694. effectoz2.Rotation = NumberRange.new(-300,300)
  695. effectoz2.RotSpeed = NumberRange.new(-500,500)
  696. effectoz2.Speed = NumberRange.new(100)
  697. effectoz2.VelocitySpread = 10000000
  698. effectoz2.Rate = 1000000000000
  699. spart.Size = vt(35,5,35)
  700. spart.Transparency = 1
  701. spart.CFrame = root.CFrame
  702. wait(0.5)
  703. spart.Touched:connect(function(hit)
  704. Damagefunc(hit,25,30,-20,"Normal",root,.2,1)
  705. end)
  706. ash:Destroy()
  707. effectoz2.Rate = 0
  708. wait(5)
  709. effecton:Destroy()
  710. effectoz.Rate = 0
  711. tick2e:Stop()
  712. wait(2.5)
  713. spart:Destroy()
  714. wait(1)
  715. for i = 0, 10 do
  716. larm.Transparency = larm.Transparency - 0.1
  717. rarm.Transparency = rarm.Transparency - 0.1
  718. lleg.Transparency = lleg.Transparency - 0.1
  719. rleg.Transparency = rleg.Transparency - 0.1
  720. tors.Transparency = tors.Transparency - 0.1
  721. hed.Transparency = hed.Transparency - 0.1
  722. wait()
  723. end
  724. sbs:Destroy()
  725. char.Humanoid.WalkSpeed = 16
  726. for i = 0, 25 do
  727. shur.CFrame = tors.CFrame + vt(0,-2.95,0)
  728. Meshshur.Scale = Meshshur.Scale - vt(1,0,1)
  729. wait(0)
  730. end
  731. shur:Destroy()
  732. end
  733.  
  734. function MassiveFireBall()
  735. local shur = Instance.new("Part",char)
  736. local gahd = Instance.new("Sound",char)
  737. char.Humanoid.WalkSpeed = 0
  738. gahd.SoundId = "rbxassetid://313945165"
  739. gahd.Volume = 2.5
  740. gahd.Pitch = 0.6
  741. gahd:Play()
  742. shur.Transparency = 1
  743. shur.Material = "Neon"
  744. shur.BrickColor = bc("Dark green")
  745. shur.Anchored = true
  746. shur.CFrame = tors.CFrame + vt(0,-2.5,0)
  747. shur.Size = vt(1,0.2,1)
  748. shur.CanCollide = false
  749. local dec = Instance.new("Decal",shur)
  750. dec.Texture = symbolimg
  751. dec.Face = "Top"
  752. local dec2 = dec:Clone()
  753. dec2.Parent = shur
  754. dec2.Face = "Bottom"
  755. local Meshshur = Instance.new("CylinderMesh",shur)
  756. Meshshur.Scale = vt(0,1,0)
  757. for i = 0, 25 do
  758. shur.CFrame = tors.CFrame + vt(0,-2.95,0)
  759. Meshshur.Scale = Meshshur.Scale + vt(1.25,0,1.25)
  760. wait(0)
  761. end
  762. local touched = false
  763. local delay = false
  764. local spart = Instance.new("Part",char)
  765. local tick = Instance.new("Sound",spart)
  766. tick.SoundId = "rbxassetid://304448425"
  767. tick.Volume = 1.5
  768. tick.Pitch = 0.85
  769. tick:Play()
  770. spart.Size = vt(2,2,2)
  771. spart.BrickColor = BrickColor.new("Royal purple")
  772. spart.Transparency = 1
  773. spart.CanCollide = false
  774. spart.Material = "Neon"
  775. spart.CFrame = hed.CFrame + Vector3.new(0,0.1,0)
  776. local pt1e = NumberSequenceKeypoint.new(0,15,0)
  777. local pt2e = NumberSequenceKeypoint.new(1,0,0)
  778. local effecto = Instance.new("ParticleEmitter",spart)
  779. effecto.Texture = "rbxassetid://296874871"
  780. effecto.LightEmission = 1
  781. effecto.Color = maincolor
  782. effecto.Rate = 10000
  783. effecto.Lifetime = NumberRange.new(0.5)
  784. effecto.Size = NumberSequence.new({pt1e,pt2e})
  785. effecto.Transparency = NumberSequence.new({pt1a,pt2a})
  786. effecto.Speed = NumberRange.new(0,0)
  787. effecto.RotSpeed = NumberRange.new(-500,500)
  788. local bv = Instance.new("BodyVelocity")
  789. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  790. bv.velocity = mouse.Hit.lookVector * 150
  791. bv.Parent = spart
  792. wait(0.05)
  793. spart.Touched:connect(function(hit)
  794. if touched == false then
  795. touched = true
  796. if hit.Name == "Water" then
  797. local pt1er = NumberSequenceKeypoint.new(0,15,0)
  798. local pt2er = NumberSequenceKeypoint.new(1,0,0)
  799. local smokecolor = Color3.new(0.5,0.5,0.5)
  800. local tick = Instance.new("Sound",spart)
  801. tick.SoundId = "rbxassetid://629468689"
  802. tick.Volume = 1.5
  803. tick.Pitch = 1
  804. tick:Play()
  805. effecto.Rate = 0
  806. local effectoz = Instance.new("ParticleEmitter",spart)
  807. effectoz.Texture = "rbxassetid://296874871"
  808. effectoz.LightEmission = 0.75
  809. effectoz.Color = ColorSequence.new(smokecolor)
  810. effectoz.Lifetime = NumberRange.new(3)
  811. effectoz.Transparency = NumberSequence.new({pt1a,pt2a})
  812. effectoz.Size = NumberSequence.new({pt1er,pt2er})
  813. effectoz.Rotation = NumberRange.new(-300,300)
  814. effectoz.RotSpeed = NumberRange.new(-500,500)
  815. effectoz.Speed = NumberRange.new(10)
  816. effectoz.VelocitySpread = 75
  817. effectoz.Rate = 1000000000000
  818. spart.Anchored = true
  819. wait(3)
  820. effectoz.Rate = 0
  821. wait(2.5)
  822. spart:Destroy()
  823. end
  824. if hit.Name ~= "Water" then
  825. local saveposition = spart.CFrame
  826. spart.Anchored = true
  827. local tick = Instance.new("Sound",spart)
  828. tick.SoundId = "rbxassetid://304529688"
  829. tick.Volume = 1.5
  830. tick.Pitch = 0.85
  831. tick:Play()
  832. local tickn = Instance.new("Sound",spart)
  833. tickn.SoundId = "rbxassetid://138186576"
  834. tickn.Volume = 1.5
  835. tickn.Pitch = 1
  836. tickn:Play()
  837. local tick2e = Instance.new("Sound",spart)
  838. tick2e.SoundId = "rbxassetid://272207079"
  839. tick2e.Volume = 2.5
  840. tick2e.Looped = true
  841. tick2e.Pitch = 0.85
  842. tick2e:Play()
  843. effecto:Destroy()
  844. local pt1er = NumberSequenceKeypoint.new(0,15,0)
  845. local pt1er2 = NumberSequenceKeypoint.new(0,25,0)
  846. local pt2er = NumberSequenceKeypoint.new(1,0,0)
  847. local effectoz = Instance.new("ParticleEmitter",spart)
  848. effectoz.Texture = "rbxassetid://296874871"
  849. effectoz.LightEmission = 1
  850. effectoz.Color = maincolor
  851. effectoz.Lifetime = NumberRange.new(2.5)
  852. effectoz.Size = NumberSequence.new({pt1er,pt2er})
  853. effectoz.Speed = NumberRange.new(0,0)
  854. effectoz.Rotation = NumberRange.new(-300,300)
  855. effectoz.Transparency = NumberSequence.new({pt1a,pt2a})
  856. effectoz.RotSpeed = NumberRange.new(-500,500)
  857. effectoz.Speed = NumberRange.new(10)
  858. effectoz.VelocitySpread = 10000000
  859. effectoz.Rate = 1000000000000
  860. local effectoz2 = Instance.new("ParticleEmitter",spart)
  861. effectoz2.Texture = "rbxassetid://296874871"
  862. effectoz2.LightEmission = 1
  863. effectoz2.Color = maincolor
  864. effectoz2.Lifetime = NumberRange.new(0.5)
  865. effectoz2.Size = NumberSequence.new({pt1er2,pt2er})
  866. effectoz2.Speed = NumberRange.new(0,0)
  867. effectoz2.Rotation = NumberRange.new(-300,300)
  868. effectoz2.RotSpeed = NumberRange.new(-500,500)
  869. effectoz2.Speed = NumberRange.new(250)
  870. effectoz2.VelocitySpread = 10000000
  871. effectoz2.Rate = 1000000000000
  872. spart.Size = vt(25,25,25)
  873. spart.Transparency = 1
  874. spart.CFrame = saveposition
  875. wait(0.5)
  876. Damagefunc(hit,50,60,-20,"Normal",root,.2,1)
  877. effectoz2.Rate = 0
  878. wait(5)
  879. effectoz.Rate = 0
  880. tick2e:Stop()
  881. wait(2.5)
  882. spart:Destroy()
  883. end
  884. end
  885. end)
  886. char.Humanoid.WalkSpeed = 16
  887. wait(1)
  888. for i = 0, 25 do
  889. shur.CFrame = tors.CFrame + vt(0,-2.95,0)
  890. Meshshur.Scale = Meshshur.Scale - vt(1.25,0,1.25)
  891. wait(0)
  892. end
  893. shur:Destroy()
  894. end
  895.  
  896.  
  897. mouse.KeyDown:connect(function(k)
  898.  
  899. k = k:lower()
  900. if k == "z" and attacking == false then
  901. if energy >= 10 then
  902. energy = energy - 10
  903. attacking = true
  904. Fireball()
  905. attacking = false
  906. end
  907. end
  908. if k == "x" and attacking == false then
  909. if energy >= 50 then
  910. energy = energy - 50
  911. attacking = true
  912. MassiveFireBall()
  913. attacking = false
  914. end
  915. end
  916. if k == "c" and attacking == false then
  917. if energy >= 100 then
  918. energy = energy - 100
  919. attacking = true
  920. Firestorm()
  921. attacking = false
  922. end
  923. end
  924. if k == "v" and attacking == false then
  925. if energy >= 25 then
  926. energy = energy - 25
  927. attacking = true
  928. SplashFire()
  929. attacking = false
  930. end
  931. end
  932. if k == "b" and attacking == false then
  933. if charge == false then
  934. tick:Resume()
  935. tick2:Resume()
  936. charge = true
  937. attacking = true
  938. if charge == true then
  939. effecto.Rate = 10000
  940. end
  941. end
  942. end
  943. end)
  944. mouse.KeyUp:connect(function(k)
  945.  
  946. k = k:lower()
  947. if k == "b" then
  948. charge = false
  949. tick:Pause()
  950. tick2:Pause()
  951. attacking = false
  952. effecto.Rate = 0
  953. end
  954. end)
  955.  
  956. while wait() do
  957. healthgui.Text = "Energy: " ..math.floor(energy).. "/100000"
  958. if charge == true then
  959. while true do
  960. healthgui.Text = "Energy: " ..math.floor(energy).. "/100000"
  961. energy = energy + 0.75
  962. wait()
  963. if energy > 100000 then
  964. energy = 100000
  965. end
  966. if charge == false then
  967. break
  968. end
  969. end
  970. end
  971.  
  972. if energy > 100000 then
  973. energy = 100000
  974. end
  975. end
Add Comment
Please, Sign In to add comment