cr8brooo

Untitled

Dec 15th, 2017
161
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 82.49 KB | None | 0 0
  1. wait(0.5)
  2. Player = game:GetService("Players").LocalPlayer
  3. Character = Player.Character
  4. PlayerGui = Player.PlayerGui
  5. Backpack = Player.Backpack
  6. Torso = Character.Torso
  7. Head = Character.Head
  8. Humanoid = Character.Humanoid
  9. LeftArm = Character["Left Arm"]
  10. LeftLeg = Character["Left Leg"]
  11. RightArm = Character["Right Arm"]
  12. RightLeg = Character["Right Leg"]
  13. LS = Torso["Left Shoulder"]
  14. LH = Torso["Left Hip"]
  15. RS = Torso["Right Shoulder"]
  16. RH = Torso["Right Hip"]
  17. Neck = Torso.Neck
  18. it = Instance.new
  19. vt = Vector3.new
  20. cf = CFrame.new
  21. euler = CFrame.fromEulerAnglesXYZ
  22. angles = CFrame.Angles
  23. necko = cf(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  24. necko2 = cf(0, -0.5, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  25. LHC0 = cf(-1, -1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  26. LHC1 = cf(-0.5, 1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  27. RHC0 = cf(1, -1, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  28. RHC1 = cf(0.5, 1, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  29. RootPart = Character.HumanoidRootPart
  30. RootJoint = RootPart.RootJoint
  31. RootCF = euler(-1.57, 0, 3.14)
  32. attack = false
  33. attackdebounce = false
  34. isblarghing = false
  35. MMouse = nil
  36. combo = 0
  37. combospeed = 0
  38. gun = false
  39. shoot = false
  40. stop = false
  41. local Run = false
  42. local hitfloor, posfloor = nil, nil
  43. local idle = 0
  44. local Effects = {}
  45. local Weapon = {}
  46. local Welds = {}
  47. local decreaseatk = 0
  48. local decreasedef = 0.5
  49. local decreasemvmt = 0
  50. local Mode = "Defensive"
  51. local GuardStance = false
  52. local Target = nil
  53. local manualguardend = false
  54. local equipped = false
  55. local Charge = 0
  56. local Charging = false
  57. local prop = Instance.new("RocketPropulsion")
  58. local move1 = "(Z)\nRapid fire"
  59. local move2 = "(X)\nFlamming wheel"
  60. local move3 = "(C)\nSky lasers"
  61. local move4 = "(V)\nBlazing star"
  62. local cooldowns = {}
  63. local cooldown1 = 0
  64. table.insert(cooldowns, cooldown1)
  65. local cooldown2 = 0
  66. table.insert(cooldowns, cooldown2)
  67. local cooldown3 = 0
  68. table.insert(cooldowns, cooldown3)
  69. local cooldown4 = 0
  70. table.insert(cooldowns, cooldown4)
  71. local cooldown5 = 0
  72. table.insert(cooldowns, cooldown5)
  73. local cooldownsadd = {}
  74. local cooldownadd1 = 100
  75. table.insert(cooldownsadd, cooldownadd1)
  76. local cooldownadd2 = 100
  77. table.insert(cooldownsadd, cooldownadd2)
  78. local cooldownadd3 = 100
  79. table.insert(cooldownsadd, cooldownadd3)
  80. local cooldownadd4 = 100
  81. table.insert(cooldownsadd, cooldownadd4)
  82. local cooldownadd5 = 100
  83. table.insert(cooldownsadd, cooldownadd5)
  84. local cooldownmax = 100
  85. player = nil
  86. RSH = nil
  87. canwalkanim = true
  88. RW = Instance.new("Motor")
  89. LW = Instance.new("Motor")
  90. RW.Name = "Right Shoulder"
  91. LW.Name = "Left Shoulder"
  92. LH = Torso["Left Hip"]
  93. RH = Torso["Right Hip"]
  94. TorsoColor = Torso.BrickColor
  95. TorsoRed = TorsoColor.Color.r
  96. TorsoGreen = TorsoColor.Color.g
  97.  
  98. NewCol = "Black"
  99.  
  100.  
  101. print(BrickColor.new(NewCol))
  102.  
  103. local mdec2 = Instance.new("NumberValue", Decrease)
  104. mdec2.Name = "DecreaseMvmt"
  105. mdec2.Value = 0.1
  106. local Animate = Humanoid.Animator
  107. local canjump = true
  108. removeControl = function()
  109. canjump = false
  110. end
  111. resumeControl = function()
  112. canjump = true
  113. end
  114.  
  115. so = function(id, par, vol, pit)
  116. local sou = Instance.new("Sound", par or workspace)
  117. sou.Volume = vol
  118. sou.Pitch = pit or 1
  119. if id == "RandSlash" then
  120. num = math.random(1, 4)
  121. if num == 1 then
  122. id = "200633108"
  123. else
  124. if num == 2 then
  125. id = "200633148"
  126. else
  127. if num == 3 then
  128. id = "200633196"
  129. else
  130. if num == 4 then
  131. id = "200633281"
  132. end
  133. end
  134. end
  135. end
  136. end
  137. sou.SoundId = "http://www.roblox.com/asset/?id=" .. id
  138.  
  139. coroutine.resume(coroutine.create(function(Sound)
  140. swait()
  141. Sound:play()
  142. end), sou)
  143. game:GetService("Debris"):AddItem(sou, 6)
  144. end
  145. Player.Character.Humanoid.Changed:connect(function()
  146. if canjump == false then
  147. Player.Character.Humanoid.Jump = false
  148. end
  149.  
  150. end)
  151.  
  152. swait = function(num)
  153. if num == 0 or num == nil then
  154. Player.PlayerGui.Pacemaker.Heartbeat.Event:wait()
  155. else
  156. for i = 0, num do
  157. Player.PlayerGui.Pacemaker.Heartbeat.Event:wait()
  158. end
  159. end
  160. end
  161. ArtificialHB = Instance.new("BindableEvent", script)
  162. ArtificialHB.Name = "Heartbeat"
  163.  
  164. script:WaitForChild("Heartbeat")
  165.  
  166. frame = 1 / 40
  167. tf = 0
  168. allowframeloss = true
  169. tossremainder = false
  170. lastframe = tick()
  171. script.Heartbeat:Fire()
  172.  
  173. game:GetService("RunService").Heartbeat:connect(function(s, p)
  174. tf = tf + s
  175. if tf >= frame then
  176. if allowframeloss then
  177. script.Heartbeat:Fire()
  178. lastframe = tick()
  179. else
  180. for i = 1, math.floor(tf / frame) do
  181. script.Heartbeat:Fire()
  182. end
  183. lastframe = tick()
  184. end
  185. if tossremainder then
  186. tf = 0
  187. else
  188. tf = tf - frame * math.floor(tf / frame)
  189. end
  190. end
  191. end)
  192. function swait(num)
  193. if num == 0 or num == nil then
  194. ArtificialHB.Event:wait()
  195. else
  196. for i = 0, num do
  197. ArtificialHB.Event:wait()
  198. end
  199. end
  200. end
  201. local Stats = Instance.new("BoolValue")
  202. Stats.Name = "Stats"
  203. Stats.Parent = Character
  204. local Atk = Instance.new("NumberValue")
  205. Atk.Name = "Damage"
  206. Atk.Parent = Stats
  207. Atk.Value = 1
  208. local Def = Instance.new("NumberValue")
  209. Def.Name = "Defense"
  210. Def.Parent = Stats
  211. Def.Value = 1
  212. local Mvmt = Instance.new("NumberValue")
  213. Mvmt.Name = "Movement"
  214. Mvmt.Parent = Stats
  215. Mvmt.Value = 50
  216. local Stun = Instance.new("NumberValue")
  217. Stun.Name = "Stun"
  218. Stun.Parent = Stats
  219. Stun.Value = 0
  220. local StunT = Instance.new("NumberValue")
  221. StunT.Name = "StunThreshold"
  222. StunT.Parent = Stats
  223. StunT.Value = 100
  224. local Rooted = Instance.new("BoolValue")
  225. Rooted.Name = "Rooted"
  226. Rooted.Parent = Stats
  227. Rooted.Value = false
  228. local Stunned = Instance.new("BoolValue")
  229. Stunned.Name = "Stunned"
  230. Stunned.Parent = Stats
  231. Stunned.Value = false
  232. local Stagger = Instance.new("BoolValue")
  233. Stagger.Name = "Stagger"
  234. Stagger.Parent = Stats
  235. Stagger.Value = false
  236. local StaggerHit = Instance.new("BoolValue")
  237. StaggerHit.Name = "StaggerHit"
  238. StaggerHit.Parent = Stats
  239. StaggerHit.Value = false
  240. local RecentEnemy = Instance.new("ObjectValue")
  241. RecentEnemy.Name = "RecentEnemy"
  242. RecentEnemy.Parent = Stats
  243. RecentEnemy.Value = nil
  244. local Decrease = Instance.new("BoolValue")
  245. Decrease.Name = "Decrease"
  246. Decrease.Parent = Stats
  247. Decrease.Value = false
  248. local passive = Instance.new("NumberValue", Decrease)
  249. passive.Name = "DecreaseMvmt"
  250. passive.Value = 0.1
  251. local passive2 = Instance.new("NumberValue", Decrease)
  252. passive2.Name = "DecreaseDef"
  253. passive2.Value = 0
  254. local mana = Instance.new("NumberValue")
  255. mana.Name = "Mana"
  256. mana.Parent = Stats
  257. mana.Value = 0
  258. NoOutline = function(Part)
  259. Part.TopSurface = 10
  260. end
  261. part = function(formfactor, parent, reflectance, transparency, brickcolor, name, size, material, anchor)
  262. local fp = it("Part")
  263. fp.formFactor = formfactor
  264. fp.Parent = parent
  265. fp.Reflectance = reflectance
  266. fp.Transparency = transparency
  267. fp.CanCollide = false
  268. fp.Locked = true
  269. fp.BrickColor = brickcolor
  270. fp.Name = name
  271. fp.Material = "SmoothPlastic"
  272. fp.Size = size
  273. fp.Position = Torso.Position
  274. NoOutline(fp)
  275. if material then
  276. fp.Material = material
  277. end
  278. if anchor then
  279. fp.Anchored = anchor
  280. end
  281. fp:BreakJoints()
  282. return fp
  283. end
  284. mesh = function(Mesh, part, meshtype, meshid, offset, scale)
  285. local mesh = it(Mesh)
  286. mesh.Parent = part
  287. if Mesh == "SpecialMesh" then
  288. mesh.MeshType = meshtype
  289. if meshid ~= "nil" then
  290. mesh.MeshId = "http://www.roblox.com/asset/?id=" .. meshid
  291. end
  292. end
  293. mesh.Offset = offset
  294. mesh.Scale = scale
  295. return mesh
  296. end
  297. weld = function(parent, part0, part1, c0)
  298. local weld = it("Motor")
  299. weld.Parent = parent
  300. weld.Part0 = part0
  301. weld.Part1 = part1
  302. weld.C0 = c0
  303. return weld
  304. end
  305. gui = function(GuiType, parent, text, backtrans, backcol, pos, size)
  306. local gui = it(GuiType)
  307. gui.Parent = parent
  308. gui.Text = text
  309. gui.BackgroundTransparency = backtrans
  310. gui.BackgroundColor3 = backcol
  311. gui.SizeConstraint = "RelativeXY"
  312. gui.TextXAlignment = "Center"
  313. gui.TextYAlignment = "Center"
  314. gui.Position = pos
  315. gui.Size = size
  316. gui.Font = "SourceSans"
  317. gui.FontSize = "Size14"
  318. gui.TextWrapped = false
  319. gui.TextStrokeTransparency = 0
  320. gui.TextColor = BrickColor.new("White")
  321. return gui
  322. end
  323.  
  324.  
  325. DecreaseStat = function(Model, Stat, Amount, Duration)
  326. if Model:findFirstChild("Stats") ~= nil and Model.Stats[Stat] ~= nil then
  327. Model.Stats[Stat].Value = Model.Stats[Stat].Value - Amount
  328. d = Instance.new("NumberValue", Model.Stats.Decrease)
  329. dur = Instance.new("NumberValue", d)
  330. dur.Name = "Duration"
  331. dur.Value = Duration
  332. game:GetService("Debris"):AddItem(d, 20)
  333. if Stat == "Damage" then
  334. d.Name = "DecreaseAtk"
  335. else
  336. if Stat == "Defense" then
  337. d.Name = "DecreaseDef"
  338. else
  339. if Stat == "Movement" then
  340. d.Name = "DecreaseMvmt"
  341. end
  342. end
  343. end
  344. if Model:findFirstChild("Torso") ~= nil then
  345. display = ""
  346. if Stat == "Damage" then
  347. if Amount > 0 then
  348. display = "-Damage"
  349. else
  350. display = "+Damage"
  351. end
  352. else
  353. if Stat == "Defense" then
  354. if Amount > 0 then
  355. display = "-Defense"
  356. else
  357. display = "+Defense"
  358. end
  359. else
  360. if Stat == "Movement" then
  361. if Amount > 0 then
  362. display = "-Movement"
  363. else
  364. display = "+Movement"
  365. end
  366. end
  367. end
  368. end
  369. showDamage(Model, display, "Debuff")
  370. end
  371. d.Value = Amount
  372. end
  373. end
  374. GetDist = function(Part1, Part2, magni)
  375. local targ = Part1.Position - Part2.Position
  376. local mag = targ.magnitude
  377. if mag <= magni then
  378. return true
  379. else
  380. return false
  381. end
  382. end
  383.  
  384.  
  385. function clerp(a,b,t)
  386. local qa = {QuaternionFromCFrame(a)}
  387. local qb = {QuaternionFromCFrame(b)}
  388. local ax, ay, az = a.x, a.y, a.z
  389. local bx, by, bz = b.x, b.y, b.z
  390. local _t = 1-t
  391. return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t))
  392. end
  393.  
  394. function QuaternionFromCFrame(cf)
  395. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  396. local trace = m00 + m11 + m22
  397. if trace > 0 then
  398. local s = math.sqrt(1 + trace)
  399. local recip = 0.5/s
  400. return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5
  401. else
  402. local i = 0
  403. if m11 > m00 then
  404. i = 1
  405. end
  406. if m22 > (i == 0 and m00 or m11) then
  407. i = 2
  408. end
  409. if i == 0 then
  410. local s = math.sqrt(m00-m11-m22+1)
  411. local recip = 0.5/s
  412. return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip
  413. elseif i == 1 then
  414. local s = math.sqrt(m11-m22-m00+1)
  415. local recip = 0.5/s
  416. return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip
  417. elseif i == 2 then
  418. local s = math.sqrt(m22-m00-m11+1)
  419. local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip
  420. end
  421. end
  422. end
  423.  
  424. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  425. local xs, ys, zs = x + x, y + y, z + z
  426. local wx, wy, wz = w*xs, w*ys, w*zs
  427. local xx = x*xs
  428. local xy = x*ys
  429. local xz = x*zs
  430. local yy = y*ys
  431. local yz = y*zs
  432. local zz = z*zs
  433. return CFrame.new(px, py, pz,1-(yy+zz), xy - wz, xz + wy,xy + wz, 1-(xx+zz), yz - wx, xz - wy, yz + wx, 1-(xx+yy))
  434. end
  435.  
  436. function QuaternionSlerp(a, b, t)
  437. local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4]
  438. local startInterp, finishInterp;
  439. if cosTheta >= 0.0001 then
  440. if (1 - cosTheta) > 0.0001 then
  441. local theta = math.acos(cosTheta)
  442. local invSinTheta = 1/math.sin(theta)
  443. startInterp = math.sin((1-t)*theta)*invSinTheta
  444. finishInterp = math.sin(t*theta)*invSinTheta
  445. else
  446. startInterp = 1-t
  447. finishInterp = t
  448. end
  449. else
  450. if (1+cosTheta) > 0.0001 then
  451. local theta = math.acos(-cosTheta)
  452. local invSinTheta = 1/math.sin(theta)
  453. startInterp = math.sin((t-1)*theta)*invSinTheta
  454. finishInterp = math.sin(t*theta)*invSinTheta
  455. else
  456. startInterp = t-1
  457. finishInterp = t
  458. end
  459. end
  460. return a[1]*startInterp + b[1]*finishInterp, a[2]*startInterp + b[2]*finishInterp, a[3]*startInterp + b[3]*finishInterp, a[4]*startInterp + b[4]*finishInterp
  461. end
  462. MagniDamage = function(Part, magni, minim, maxim, knockback, Type, Property, Delay, KnockbackType, incstun, stagger, staghit, ranged, DecreaseState, DecreaseAmount, Duration)
  463. for _,c in pairs(workspace:children()) do
  464. local hum = c:findFirstChild("Humanoid")
  465. if hum ~= nil then
  466. local head = nil
  467. for _,d in pairs(c:children()) do
  468. if d.className == "Model" and ranged ~= true then
  469. head = d:findFirstChild("Hitbox")
  470. if d.Parent == Character then
  471. break
  472. end
  473. if head ~= nil then
  474. local targ = head.Position - Part.Position
  475. local mag = targ.magnitude
  476. if mag <= magni and c.Name ~= Player.Name then
  477. ref = part(3, workspace, 0, 1, BrickColor.new("Black"), "Reference", vt())
  478. ref.Anchored = true
  479. ref.CFrame = cf(head.Position)
  480. game:GetService("Debris"):AddItem(ref, 1)
  481. hitnum = math.random(9999999)
  482. if hitnum == 1 then
  483. so("199148971", ref, 1, 1)
  484. else
  485. if hitnum == 2 then
  486. so("199149025", ref, 1, 1)
  487. else
  488. if hitnum == 3 then
  489. so("199149072", ref, 1, 1)
  490. else
  491. if hitnum == 4 then
  492. so("199149109", ref, 9999999)
  493. else
  494. if hitnum == 5 then
  495. so("199149119", ref, 9999999)
  496. end
  497. end
  498. end
  499. end
  500. end
  501. StaggerHit.Value = true
  502. end
  503. end
  504. end
  505. do
  506. if d.className == "Part" then
  507. head = d
  508. if head ~= nil then
  509. local targ = head.Position - Part.Position
  510. local mag = targ.magnitude
  511. if mag <= magni and c.Name ~= Player.Name then
  512. if stun == nil then
  513. stun = math.random(5, 10)
  514. end
  515. local Rang = nil
  516. if Ranged == false then
  517. Rang = true
  518. end
  519. local stag = nil
  520. if shbash == true then
  521. stag = true
  522. end
  523. Damagefunc(head, minim, maxim, knockback, Type, Property, Delay, KnockbackType, incstun, stagger, staghit, ranged, DecreaseState, DecreaseAmount, Duration)
  524. end
  525. end
  526. end
  527. do
  528.  
  529. end
  530. end
  531. end
  532. end
  533. end
  534. end
  535. MagniBuff = function(Part, magni, Dec, DecAm, Dur, others)
  536. if Player.Neutral == true then
  537. DecreaseStat(Character, Dec, DecAm / 2, Dur)
  538. end
  539. for _,c in pairs(workspace:children()) do
  540. local hum = c:findFirstChild("Humanoid")
  541. if hum ~= nil then
  542. local head = c:findFirstChild("Torso")
  543. if head ~= nil then
  544. local targ = head.Position - Part.Position
  545. local mag = targ.magnitude
  546.  
  547. if others == nil and mag <= magni and Player.Neutral == false and game.Players:GetPlayerFromCharacter(head.Parent) ~= nil and game.Players:GetPlayerFromCharacter(head.Parent) ~= nil and game.Players:GetPlayerFromCharacter(head.Parent).TeamColor == Player.TeamColor then
  548. DecreaseStat(head.Parent, Dec, DecAm, Dur)
  549. end
  550. end
  551. end
  552. if Player.Neutral == false and game.Players:GetPlayerFromCharacter(head.Parent) ~= nil and mag <= magni and head.Parent ~= Character and game.Players:GetPlayerFromCharacter(head.Parent) ~= nil and game.Players:GetPlayerFromCharacter(head.Parent).TeamColor == Player.TeamColor then
  553. DecreaseStat(head.Parent, Dec, DecAm, Dur)
  554. end
  555. end
  556. end
  557. rayCast = function(Pos, Dir, Max, Ignore)
  558. return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  559. end
  560. local Point = Torso.CFrame * cf(0, Torso.Size.Y, 0)
  561. LastPoint = Point
  562. effect = function(Color, Ref, LP, P1, returnn)
  563. if LP == nil or P1 == nil then
  564. return
  565. end
  566. local Effectsmsh = Instance.new("CylinderMesh")
  567. Effectsmsh.Scale = Vector3.new(0.2, 1, 0.2)
  568. Effectsmsh.Name = "Mesh"
  569. local Effectsg = Instance.new("Part")
  570. NoOutline(Effectsg)
  571. Effectsg.formFactor = 3
  572. Effectsg.CanCollide = false
  573. Effectsg.Name = "Eff"
  574. Effectsg.Locked = true
  575. Effectsg.Anchored = true
  576. Effectsg.Size = Vector3.new(0.5, 1, 0.5)
  577. Effectsg.Parent = workspace
  578. Effectsmsh.Parent = Effectsg
  579. Effectsg.BrickColor = BrickColor.new(Color)
  580. Effectsg.Reflectance = Ref
  581. local point1 = P1
  582. local mg = point1.p.magnitude
  583. Effectsg.Size = Vector3.new(0.5, mg, 0.5)
  584. Effectsg.CFrame = cf((LP.p + point1.p) / 2, point1.p) * CFrame.Angles(math.rad(900), 0, 0)
  585. Effectsmsh.Scale = Vector3.new(0.2, 1, 0.2)
  586. game:GetService("Debris"):AddItem(Effectsg, 2)
  587. if returnn then
  588. return Effectsg
  589. end
  590. if not returnn then
  591. table.insert(Effects, {Effectsg, "Cylinder", 0.2, 0.01, 0, 0.01, effectsmsh})
  592. end
  593. end
  594. MagicWave = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  595. local prt = part(3, workspace, 0, 0, brickcolor, "Effect", vt())
  596. prt.Anchored = true
  597. prt.CFrame = cframe
  598. local msh = mesh("SpecialMesh", prt, "FileMesh", "20329976", vt(0, 0, 0), vt(x1, y1, z1))
  599. game:GetService("Debris"):AddItem(prt, 10)
  600. table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3, msh})
  601. return prt
  602. end
  603. MagicSpike = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  604. local prt = part(3, workspace, 0, 0, brickcolor, "Effect", vt())
  605. prt.Anchored = true
  606. prt.CFrame = cframe
  607. local msh = mesh("SpecialMesh", prt, "FileMesh", "1033714", vt(0, 0, 0), vt(x1, y1, z1))
  608. game:GetService("Debris"):AddItem(prt, 10)
  609. table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3, msh})
  610. end
  611. MagicBlock = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type)
  612. local prt = part(3, workspace, 0, 0, brickcolor, "Effect", vt())
  613. prt.Anchored = true
  614. prt.CFrame = cframe
  615. prt.Material = "Neon"
  616. msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1))
  617. game:GetService("Debris"):AddItem(prt, 10)
  618.  
  619. if Type == 1 or Type == nil then
  620. table.insert(Effects, {prt, "Block1", delay, x3, y3, z3, msh})
  621. else
  622. if Type == 2 then
  623. table.insert(Effects, {prt, "Block2", delay, x3, y3, z3, msh})
  624. end
  625. end
  626. return prt
  627. end
  628. MagicCloud = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  629. local prt = part(3, workspace, 0, 0, brickcolor, "Effect", vt())
  630. prt.Anchored = true
  631. prt.CFrame = cframe
  632. local msh = mesh("SpecialMesh", prt, "FileMesh", "1095708", vt(0, 0, 0), vt(x1, y1, z1))
  633. game:GetService("Debris"):AddItem(prt, 10)
  634. table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3, msh})
  635. end
  636. MagicCircle = function(brickcolor, material, cframe, x1, y1, z1, x3, y3, z3, delay)
  637. local prt = part(3, workspace, 0, 0, brickcolor, "Effect", vt())
  638. prt.Anchored = true
  639. prt.Material = material
  640. prt.CFrame = cframe
  641. local msh = mesh("SpecialMesh", prt, "Sphere", "nil", vt(0, 0, 0), vt(x1, y1, z1))
  642. game:GetService("Debris"):AddItem(prt, 10)
  643. table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3, msh})
  644. end
  645. MagicRing = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  646. local prt = part(3, workspace, 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
  647. prt.Anchored = true
  648. prt.CFrame = cframe * cf(x2, y2, z2)
  649. local msh = mesh("SpecialMesh", prt, "FileMesh", "3270017", vt(0, 0, 0), vt(x1, y1, z1))
  650. game:GetService("Debris"):AddItem(prt, 10)
  651. table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3, msh})
  652. end
  653.  
  654. MagicOrb = function(brickcolor, material, cframe, x1, y1, z1, x3, y3, z3, delay, pos2)
  655. local prt = part(3, workspace, 0, 0, brickcolor, "Effect", vt())
  656.  
  657. prt.Material = material
  658. prt.CFrame = cframe
  659. bp = Instance.new("BodyPosition", prt)
  660. bp.Position = pos2
  661. bp.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
  662. coroutine.resume(coroutine.create(function()
  663. while prt.Parent == workspace do
  664. wait()
  665. MagicRing(BrickColor.new("Bright yellow"), cf(prt.Position) * euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)), 0.1, 1, 0.1, 0.1, 1, 0.1, 0.05)
  666. end
  667.  
  668. MagicCircle(BrickColor.new("Bright yellow"), "Neon", prt.CFrame, x1, y1, z1, x3, y3, z3, 0.05)
  669.  
  670. end))
  671. local msh = mesh("SpecialMesh", prt, "Sphere", "nil", vt(0, 0, 0), vt(x1, y1, z1))
  672. table.insert(Effects, {prt, "Cylinder", delay, 0, 0, 0, msh})
  673. return prt
  674. end
  675.  
  676. MagicOrb2 = function(brickcolor, material, cframe, x1, y1, z1, x3, y3, z3, delay, pos2)
  677. local prt = part(3, workspace, 0, 0, brickcolor, "Effect", vt())
  678.  
  679. prt.Material = material
  680. prt.CFrame = cframe
  681. bp = Instance.new("BodyPosition", prt)
  682. bp.Position = pos2
  683. bp.MaxForce = Vector3.new(1000,1000,1000)
  684. coroutine.resume(coroutine.create(function()
  685. while prt.Parent == workspace do
  686. wait()
  687. MagicRing(BrickColor.new("Bright yellow"), cf(prt.Position) * euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)), 0.1, 1, 0.1, 0.1, 1, 0.1, 0.05)
  688. end
  689.  
  690. MagicCircle(BrickColor.new("Bright yellow"), "Neon", prt.CFrame, x1, y1, z1, x3, y3, z3, 0.05)
  691.  
  692. end))
  693. local msh = mesh("SpecialMesh", prt, "Sphere", "nil", vt(0, 0, 0), vt(x1, y1, z1))
  694. table.insert(Effects, {prt, "Cylinder", delay, 0, 0, 0, msh})
  695. return prt
  696. end
  697.  
  698.  
  699. MagicCylinder = function(brickcolor, material, cframe, x1, y1, z1, x3, y3, z3, delay)
  700. local prt = part(3, workspace, 0, 0, brickcolor, "Effect", vt())
  701. prt.Anchored = true
  702. prt.CFrame = cframe
  703. prt.Material = material
  704. local msh = mesh("CylinderMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1))
  705. game:GetService("Debris"):AddItem(prt, 10)
  706. table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3, msh})
  707. end
  708. MagicHead = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  709. local prt = part(3, workspace, 0, 0, brickcolor, "Effect", vt())
  710. prt.Anchored = true
  711. prt.CFrame = cframe
  712. local msh = mesh("SpecialMesh", prt, "Head", "nil", vt(0, 0, 0), vt(x1, y1, z1))
  713. game:GetService("Debris"):AddItem(prt, 10)
  714. table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3, msh})
  715. end
  716. ClangEffect = function(brickcolor, cframe, duration, decrease, size, power)
  717. local prt = part(3, workspace, 0, 1, brickcolor, "Effect", vt())
  718. prt.Anchored = true
  719. prt.CFrame = cframe
  720. local msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(5, 5, 5))
  721. game:GetService("Debris"):AddItem(prt, 10)
  722. table.insert(Effects, {prt, "CylinderClang", duration, decrease, size, power, prt.CFrame, nil})
  723. end
  724. MagicWave = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  725. local prt = part(3, workspace, 0, 0, brickcolor, "Effect", vt())
  726. prt.Anchored = true
  727. prt.CFrame = cframe
  728. local msh = mesh("SpecialMesh", prt, "FileMesh", "20329976", vt(0, 0, 0), vt(x1, y1, z1))
  729. game:GetService("Debris"):AddItem(prt, 10)
  730. table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3, msh})
  731. end
  732.  
  733.  
  734.  
  735.  
  736. Damagefunc = function(hit, minim, maxim, knockback, Type, Property, Delay, KnockbackType, incstun, stagger, staghit, ranged, DecreaseState, DecreaseAmount, Duration)
  737. if hit.Parent == nil then
  738. return
  739. end
  740. if hit.Name == "Hitbox" and hit.Parent ~= modelzorz and ranged ~= true then
  741. ref = part(3, workspace, 0, 1, BrickColor.new("Black"), "Reference", vt())
  742. ref.Anchored = true
  743. ref.CFrame = cf(hit.Position)
  744. game:GetService("Debris"):AddItem(ref, 1)
  745. hitnum = math.random(1, 5)
  746. if hitnum == 1 then
  747. so("199148971", ref, 1, 1)
  748. else
  749. if hitnum == 2 then
  750. so("199149025", ref, 1, 1)
  751. else
  752. if hitnum == 3 then
  753. so("199149072", ref, 1, 1)
  754. else
  755. if hitnum == 4 then
  756. so("199149109", ref, 1, 1)
  757. else
  758. if hitnum == 5 then
  759. so("199149119", ref, 1, 1)
  760. end
  761. end
  762. end
  763. end
  764. end
  765. StaggerHit.Value = true
  766. end
  767. h = hit.Parent:FindFirstChild("Humanoid")
  768. if h ~= nil and hit.Parent.Name ~= Character.Name and hit.Parent:FindFirstChild("Torso") ~= nil then
  769. if hit.Parent:findFirstChild("DebounceHit") ~= nil and hit.Parent.DebounceHit.Value == true then
  770. return
  771. end
  772. if Player.Neutral == false then
  773. if hit.Parent:findFirstChild("Alignment") ~= nil and hit.Parent.Alignment.Value == Player.TeamColor.Color then
  774. return
  775. end
  776. if game.Players:GetPlayerFromCharacter(hit.Parent) ~= nil and game.Players:GetPlayerFromCharacter(hit.Parent).TeamColor == Player.TeamColor then
  777. return
  778. end
  779. end
  780. c = Instance.new("ObjectValue")
  781. c.Name = "creator"
  782. c.Value = game:service("Players").LocalPlayer
  783. c.Parent = h
  784. RecentEnemy.Value = hit.Parent
  785. game:GetService("Debris"):AddItem(c, 0.5)
  786. minim = minim * Atk.Value
  787. maxim = maxim * Atk.Value
  788. Damage = 0
  789. if minim == maxim then
  790. Damage = maxim
  791. else
  792. Damage = math.random(minim, maxim)
  793. end
  794. blocked = false
  795. enblock = nil
  796. Stats = hit.Parent:findFirstChild("Stats")
  797. if Stats ~= nil then
  798. invis = Stats:findFirstChild("Invisibility")
  799. isinvis = Stats:findFirstChild("IsInvisible")
  800. if (ranged == false or ranged == nil) and invis ~= nil and isinvis.Value == true then
  801. invis.Value = 0
  802. end
  803. enblock = Stats:findFirstChild("Block")
  804. if enblock ~= nil and enblock.Value == true then
  805. blocked = true
  806. end
  807. if Stats:findFirstChild("Defense") ~= nil then
  808. Damage = Damage / Stats.Defense.Value
  809. if Damage <= 3 and (ranged == false or ranged == nil) and blocked ~= true then
  810. hitnum = math.random(1, 5)
  811. if hitnum == 1 then
  812. so("199149321", hit, 1, 1)
  813. else
  814. if hitnum == 2 then
  815. so("199149338", hit, 1, 1)
  816. else
  817. if hitnum == 3 then
  818. so("199149367", hit, 1, 1)
  819. else
  820. if hitnum == 4 then
  821. so("199149409", hit, 1, 1)
  822. else
  823. if hitnum == 5 then
  824. so("199149452", hit, 1, 1)
  825. end
  826. end
  827. end
  828. end
  829. end
  830. else
  831. if ranged == false or ranged == nil and blocked ~= true then
  832. hitnum = math.random(1, 6)
  833. if hitnum == 1 then
  834. so("199149137", hit, 1, 1)
  835. else
  836. if hitnum == 2 then
  837. so("199149186", hit, 1, 1)
  838. else
  839. if hitnum == 3 then
  840. so("199149221", hit, 1, 1)
  841. else
  842. if hitnum == 4 then
  843. so("199149235", hit, 1, 1)
  844. else
  845. if hitnum == 5 then
  846. so("199149269", hit, 1, 1)
  847. else
  848. if hitnum == 6 then
  849. so("199149297", hit, 1, 1)
  850. end
  851. end
  852. end
  853. end
  854. end
  855. end
  856. end
  857. end
  858. if Damage <= 3 and staghit == true and ranged ~= true then
  859. StaggerHit.Value = true
  860. end
  861. end
  862. if Stats:findFirstChild("Stun") ~= nil then
  863. if blocked == true then
  864. incstun = incstun / 2
  865. end
  866. if Stats.Stun.Value < Stats.StunThreshold.Value then
  867. Stats.Stun.Value = Stats.Stun.Value + incstun
  868. end
  869. end
  870. if Stats:findFirstChild("Stagger") ~= nil and stagger == true then
  871. Stats.Stagger.Value = true
  872. end
  873. end
  874. if blocked == true then
  875. showDamage(hit.Parent, "Block", "Damage")
  876. if ranged ~= true then
  877. enblock.Value = false
  878. Stagger.Value = true
  879. hitnum = math.random(1, 2)
  880. if hitnum == 1 then
  881. so("199148933", hit, 1, 1)
  882. else
  883. if hitnum == 2 then
  884. so("199148947", hit, 1, 1)
  885. end
  886. end
  887. end
  888. else
  889. Damage = math.floor(Damage)
  890. coroutine.resume(coroutine.create(function(Hum, Dam)
  891. hit.Parent.Humanoid:TakeDamage(Damage)
  892. end), h, Damage)
  893. if Type ~= "Magic" then
  894. showDamage(hit.Parent, Damage, "Damage")
  895. end
  896. if Type == "Magic" then
  897. showDamage(hit.Parent, Damage, "Magic")
  898. end
  899. if DecreaseState ~= nil then
  900. if DecreaseState == "Temporal" then
  901. DecreaseStat(hit.Parent, "Damage", DecreaseAmount, Duration)
  902. DecreaseStat(hit.Parent, "Defense", DecreaseAmount, Duration)
  903. else
  904. if DecreaseState == "Temporal2" then
  905. DecreaseStat(hit.Parent, "Damage", DecreaseAmount, Duration)
  906. DecreaseStat(hit.Parent, "Movement", DecreaseAmount, Duration)
  907. else
  908. DecreaseStat(hit.Parent, DecreaseState, DecreaseAmount, Duration)
  909. end
  910. end
  911. end
  912. if Type == "NormalDecreaseMvmt1" then
  913. DecreaseStat(hit.Parent, "Movement", 0.1, 200)
  914. end
  915. if Type == "Knockdown" then
  916. hum = hit.Parent.Humanoid
  917. hum.PlatformStand = true
  918. coroutine.resume(coroutine.create(function(HHumanoid)
  919. swait(1)
  920. HHumanoid.PlatformStand = false
  921. end), hum)
  922. local angle = hit.Position - (Property.Position + Vector3.new(0, 0, 0)).unit
  923. local bodvol = Instance.new("BodyVelocity")
  924. bodvol.velocity = angle * knockback
  925. bodvol.P = 5000
  926. bodvol.maxForce = Vector3.new(8000, 8000, 8000)
  927. bodvol.Parent = hit
  928. rl = Instance.new("BodyAngularVelocity")
  929. rl.P = 3000
  930. rl.maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000
  931. rl.angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10))
  932. rl.Parent = hit
  933. game:GetService("Debris"):AddItem(bodvol, 0.5)
  934. game:GetService("Debris"):AddItem(rl, 0.5)
  935. else
  936. do
  937. if Type == "Knockdown2" then
  938. hum = hit.Parent.Humanoid
  939. local angle = hit.Position - (Property.Position + Vector3.new(0, 0, 0)).unit
  940. local bodvol = Instance.new("BodyVelocity")
  941. bodvol.velocity = angle * knockback
  942. bodvol.P = 5000
  943. bodvol.maxForce = Vector3.new(8000, 8000, 8000)
  944. bodvol.Parent = hit
  945. game:GetService("Debris"):AddItem(bodvol, 0.5)
  946. else
  947. do
  948. if Type == "Normal" or Type == "NormalDecreaseMvmt1" then
  949. vp = Instance.new("BodyVelocity")
  950. vp.P = 500
  951. vp.maxForce = Vector3.new(math.huge, 0, math.huge)
  952. if KnockbackType == 1 then
  953. vp.velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05
  954. else
  955. if KnockbackType == 2 then
  956. vp.velocity = Property.CFrame.lookVector * knockback
  957. end
  958. end
  959. game:GetService("Debris"):AddItem(vp, 0.5)
  960. if knockback > 0 then
  961. vp.Parent = hit.Parent.Torso
  962. end
  963. end
  964. debounce = Instance.new("BoolValue")
  965. debounce.Name = "DebounceHit"
  966. debounce.Parent = hit.Parent
  967. debounce.Value = true
  968. game:GetService("Debris"):AddItem(debounce, Delay)
  969. c = Instance.new("ObjectValue")
  970. c.Name = "creator"
  971. c.Value = Player
  972. c.Parent = h
  973. game:GetService("Debris"):AddItem(c, 0.5)
  974. CRIT = false
  975. end
  976. end
  977. end
  978. end
  979. end
  980. end
  981. end
  982. showDamage = function(Char, Dealt, Type)
  983. m = Instance.new("Model")
  984. m.Name = "Effect"
  985. c = Instance.new("Part")
  986. c.Transparency = 1
  987. c.Name = "Head"
  988. c.TopSurface = 0
  989. c.BottomSurface = 0
  990. c.formFactor = "Plate"
  991. c.Size = Vector3.new(1, 0.4, 1)
  992. b = Instance.new("BillboardGui", c)
  993. b.Size = UDim2.new(5, 0, 5, 0)
  994. b.AlwaysOnTop = true
  995. damgui = gui("TextLabel", b, tostring(Dealt), 1, Color3.new(0, 0, 0), UDim2.new(0, 0, 0, 0), UDim2.new(1, 0, 1, 0))
  996. if Type == "Damage" then
  997. damgui.Font = "SourceSans"
  998. if Dealt == "Block" then
  999. damgui.TextColor3 = BrickColor.new("Bright blue").Color
  1000. else
  1001. if Dealt < 3 then
  1002. damgui.TextColor3 = BrickColor.new("White").Color
  1003. else
  1004. if Dealt >= 3 and Dealt < 20 then
  1005. damgui.TextColor3 = BrickColor.new("Bright yellow").Color
  1006. else
  1007. damgui.TextColor3 = BrickColor.new("Really red").Color
  1008. damgui.Font = "SourceSansBold"
  1009. end
  1010. end
  1011. end
  1012. else
  1013. if Type == "Debuff" then
  1014. damgui.TextColor3 = BrickColor.new("White").Color
  1015. else
  1016. if Type == "Interrupt" then
  1017. damgui.TextColor3 = BrickColor.new("New Yeller").Color
  1018. end
  1019. end
  1020. end
  1021. damgui.TextScaled = true
  1022. ms = Instance.new("CylinderMesh")
  1023. ms.Scale = Vector3.new(0.8, 0.8, 0.8)
  1024. ms.Parent = c
  1025. c.Reflectance = 0
  1026. Instance.new("BodyGyro").Parent = c
  1027. c.Parent = m
  1028. if Char:findFirstChild("Head") ~= nil then
  1029. c.CFrame = cf(Char.Head.CFrame.p + Vector3.new(math.random(-100, 100) / 100, 3, math.random(-100, 100) / 100))
  1030. else
  1031. if Char.Parent:findFirstChild("Head") ~= nil then
  1032. c.CFrame = cf(Char.Parent.Head.CFrame.p + Vector3.new(math.random(-100, 100) / 100, 3, math.random(-100, 100) / 100))
  1033. end
  1034. end
  1035. f = Instance.new("BodyPosition")
  1036. f.P = 2000
  1037. f.D = 100
  1038. f.maxForce = Vector3.new(545000, 545000, 545000)
  1039. if Type == "Damage" then
  1040. f.position = c.Position + Vector3.new(0, 3, 0)
  1041. else
  1042. if Type == "Debuff" or Type == "Interrupt" then
  1043. f.position = c.Position + Vector3.new(0, 5, 0)
  1044. end
  1045. end
  1046. f.Parent = c
  1047. game:GetService("Debris"):AddItem(m, 5)
  1048. table.insert(Effects, {m, "showDamage", damgui, f, 10, 1, 15, 50, 100})
  1049. c.CanCollide = false
  1050. m.Parent = workspace
  1051. c.CanCollide = false
  1052. end
  1053.  
  1054. StunAnim = function()
  1055. attack = true
  1056. removeControl()
  1057. Stunned.Value = true
  1058. showDamage(Character, "Stunned", "Interrupt")
  1059. local dec = Instance.new("NumberValue", Decrease)
  1060. dec.Name = "DecreaseMvmt"
  1061. dec.Value = 2.6
  1062. for i = 0, 1, 0.3 do
  1063. swait()
  1064. Neck.C0 = clerp(Neck.C0, necko * euler(-0.2, 0, -0.5), 0.2)
  1065. RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(0.2, 0, -3), 0.2)
  1066. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(-0.2, 0, 1.3), 0.2)
  1067. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.2)
  1068. LW.C0 = clerp(LW.C0, cf(-1.2, 0.5, -0.4) * euler(1, 0, 0.4) * euler(0, -0.1, 0), 0.2)
  1069. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.2)
  1070. RH.C0 = clerp(RH.C0, cf(1, -0.6, 0) * euler(0, 1.57, 0) * euler(-0.5, 0, 0.3), 0.25)
  1071. LH.C0 = clerp(LH.C0, cf(-1, -0.8, 0) * euler(0, -1.57, 0) * euler(-0.2, 0, 0), 0.25)
  1072. end
  1073. for i = 0, 1, 0.3 do
  1074. swait()
  1075.  
  1076. Neck.C0 = clerp(Neck.C0, necko * euler(-0.3, 0, -0.5), 0.2)
  1077. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.5) * euler(0.8, 0, -3), 0.2)
  1078. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(-0.8, 0, 1.3), 0.2)
  1079. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.2)
  1080. LW.C0 = clerp(LW.C0, cf(-1.2, 0.5, -0.4) * euler(1.2, 0, 0.8) * euler(0, -0.1, 0), 0.2)
  1081. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.2)
  1082. RH.C0 = clerp(RH.C0, cf(1, -0.6, 0) * euler(0, 1.57, 0) * euler(-0.5, 0, 0.6), 0.25)
  1083. LH.C0 = clerp(LH.C0, cf(-1, -0.8, 0) * euler(0, -1.57, 0) * euler(0.1, 0, 0.7), 0.25)
  1084. end
  1085. for i = 0, 1, 0.3 do
  1086. swait()
  1087.  
  1088. Neck.C0 = clerp(Neck.C0, necko * euler(-0.3, 0, -1), 0.2)
  1089. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -2) * euler(1.57, 0, -3), 0.2)
  1090. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(-0.8, 0, 1.3), 0.2)
  1091. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.2)
  1092. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(1.2, 0, -0.8) * euler(0, -0.1, 0), 0.2)
  1093. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.2)
  1094. RH.C0 = clerp(RH.C0, cf(1, -0.6, 0) * euler(0, 1.57, 0) * euler(-0.2, 0, 0.6), 0.25)
  1095. LH.C0 = clerp(LH.C0, cf(-1, -0.8, 0) * euler(0, -1.57, 0) * euler(-0.1, 0, 0.3), 0.25)
  1096. end
  1097. local gairost = Instance.new("BodyGyro")
  1098. gairost.Parent = RootPart
  1099. gairost.maxTorque = Vector3.new(400000, 0, 400000) * math.huge
  1100. gairost.P = 20000
  1101. gairost.cframe = cf(0, 0, 0)
  1102. for i = 0, 1, 0.1 do
  1103. swait()
  1104. if hitfloor ~= nil then
  1105. Torso.Velocity = vt(0, 0, 0)
  1106. end
  1107.  
  1108. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, -1.57), 0.3)
  1109. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -2.5) * euler(1.57, 0, -3.14), 0.3)
  1110. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(-1.57, 0, 1.5) * euler(0.2, 0, 0), 0.3)
  1111. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  1112. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(1.5, 0, -1.57) * euler(0, 0, 0), 0.3)
  1113. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  1114. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * euler(0, 1.57, 0) * euler(-0.3, 0.5, 0), 0.3)
  1115. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * euler(0, -1.57, 0) * euler(-0.1, 0.2, 0), 0.3)
  1116. end
  1117. for i = 1, 70 do
  1118. swait()
  1119. gairost.cframe = RootPart.CFrame
  1120. if hitfloor ~= nil then
  1121. Torso.Velocity = vt(0, 0, 0)
  1122. end
  1123. end
  1124. for i = 0, 1, 0.2 do
  1125. swait()
  1126. Stun.Value = 0
  1127. gairost.cframe = RootPart.CFrame
  1128.  
  1129. Neck.C0 = clerp(Neck.C0, necko * euler(0.2, 0, 0), 0.3)
  1130. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -2) * euler(1, 0, -4), 0.3)
  1131. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(-1.57, 0, 1) * euler(0.2, -1, 0), 0.3)
  1132. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  1133. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(1.2, 0, 0.2) * euler(0, 0, 0), 0.3)
  1134. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  1135. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * euler(0, 1.57, 0) * euler(-0.3, 0.5, 0.4), 0.3)
  1136. LH.C0 = clerp(LH.C0, cf(-1, -1, -1) * euler(0, -1.57, 0) * euler(-0.1, 0.2, 1), 0.3)
  1137. end
  1138. resumeControl()
  1139. gairost.Parent = nil
  1140. dec.Parent = nil
  1141. Stun.Value = 0
  1142. combo = 0
  1143. Stunned.Value = false
  1144. attack = false
  1145. for i = 1, 10 do
  1146. swait()
  1147. Stun.Value = 0
  1148. end
  1149. end
  1150.  
  1151. modelzorz = Instance.new("Model", Character)
  1152. modelzorz.Name = "Gauntlet"
  1153.  
  1154. if game.PlaceId == 599869747 then
  1155. modelzorz.Parent = workspace
  1156. end
  1157.  
  1158.  
  1159.  
  1160. local lprt1 = part(3, modelzorz, 0, 0, BrickColor.new("Black"), "LaserPart01", vt())
  1161. local lprt2 = part(3, modelzorz, 0, 0, BrickColor.new("Neon orange"), "LaserPart02", vt())
  1162. local lprt3 = part(3, modelzorz, 0, 0, BrickColor.new("Black"), "LaserPart03", vt())
  1163. local lprt4 = part(3, modelzorz, 0, 0, BrickColor.new("Neon orange"), "LaserPart04", vt())
  1164.  
  1165. msh1 = mesh("SpecialMesh", lprt1, "Cylinder", "nil", vt(0, 0, 0), vt(8, 8, 8))
  1166. msh2 = mesh("SpecialMesh", lprt2, "Cylinder", "nil", vt(0, 0, 0), vt(8.1, 6, 6))
  1167. msh3 = mesh("SpecialMesh", lprt3, "Cylinder", "nil", vt(0, 0, 0), vt(8, 8, 8))
  1168. msh4 = mesh("SpecialMesh", lprt4, "Cylinder", "nil", vt(0, 0, 0), vt(8.1, 6, 6))
  1169.  
  1170. local wld1 = weld(lprt1, LeftArm, lprt1, CFrame.new(0,-1,0) * angles(0,1.6,1.6))
  1171. local wld2 = weld(lprt2, LeftArm, lprt2, CFrame.new(0,-1,0) * angles(0,1.6,1.6))
  1172. local wld3 = weld(lprt3, RightArm, lprt3, CFrame.new(0,-1,0) * angles(0,1.6,1.6))
  1173. local wld4 = weld(lprt4, RightArm, lprt4, CFrame.new(0,-1,0) * angles(0,1.6,1.6))
  1174.  
  1175. lprt2.Material = "Neon"
  1176. lprt4.Material = "Neon"
  1177.  
  1178. for i,v in pairs(modelzorz:children()) do
  1179. if v:IsA("Part") then
  1180.  
  1181. v.Transparency = 1
  1182.  
  1183. end
  1184. end
  1185.  
  1186.  
  1187. StaggerAnim = function()
  1188. attack = true
  1189. removeControl()
  1190. showDamage(Character, "Staggered", "Interrupt")
  1191. for i = 0, 1, 0.35 do
  1192. swait()
  1193. Torso.Velocity = RootPart.CFrame.lookVector * -40
  1194. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, -0.7) * euler(0.1, 0, 0), 0.3)
  1195. RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(-0.2, 0, 0.6), 0.3)
  1196. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(0.4, 0, 0.4) * euler(0, 0.4, 0), 0.3)
  1197. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  1198. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(-0.4, 0, -0.9) * euler(0, 0.7, 0), 0.3)
  1199. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  1200. RH.C0 = clerp(RH.C0, cf(1, -0.7, 0) * euler(0, 1.57, 0) * euler(-0.4, -0.2, 0.4), 0.3)
  1201. LH.C0 = clerp(LH.C0, cf(-1, -0.8, 0) * euler(0, -1.57, 0) * euler(-0.2, 0, 0.4), 0.3)
  1202. end
  1203. for i = 0, 1, 0.2 do
  1204. swait()
  1205. Torso.Velocity = RootPart.CFrame.lookVector * -40
  1206. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, -0.7) * euler(0.3, 0, 0), 0.3)
  1207. RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(-0.4, 0, 0.6), 0.3)
  1208. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(0.6, 0, 0.6) * euler(0, 0.4, 0), 0.3)
  1209. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  1210. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(-0.6, 0, -0.9) * euler(0, 0.7, 0), 0.3)
  1211. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  1212. RH.C0 = clerp(RH.C0, cf(1, -0.7, 0) * euler(0, 1.57, 0) * euler(-0.5, -0.2, 0.5), 0.3)
  1213. LH.C0 = clerp(LH.C0, cf(-1, -0.8, 0) * euler(0, -1.57, 0) * euler(-0.2, 0, 0.4), 0.3)
  1214. end
  1215. for i = 0, 1, 0.1 do
  1216. swait()
  1217.  
  1218. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, -0.7) * euler(0.3, 0, 0), 0.3)
  1219. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -1.8) * euler(-0.2, 0, 0.4), 0.3)
  1220. RW.C0 = clerp(RW.C0, cf(1, 0.5, -0.5) * euler(0.6, 0, -0.4), 0.3)
  1221. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  1222. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(-0.2, 0, -0.4) * euler(0, 0.3, 0), 0.3)
  1223. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  1224. RH.C0 = clerp(RH.C0, cf(1, -0.6, 0) * euler(0, 1.2, 0) * euler(-0.4, 0, 1.2), 0.3)
  1225. LH.C0 = clerp(LH.C0, cf(-1, 0.4, -0.8) * euler(0, -1.57, 0) * euler(0, 0.2, -0.1), 0.3)
  1226. end
  1227. for i = 1, 40 do
  1228. swait()
  1229. if StunT.Value <= Stun.Value then
  1230. break
  1231. end
  1232. end
  1233. do
  1234. resumeControl()
  1235. combo = 0
  1236. attack = false
  1237. end
  1238. end
  1239.  
  1240. StaggerHitt = function()
  1241. attack = true
  1242. for i = 0, 1, 0.1 do
  1243. swait()
  1244. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, -0.7) * euler(0.1, 0, 0), 0.3)
  1245. RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(-0.2, 0, 0.6), 0.3)
  1246. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(-0.4, 0, 0.4) * euler(0, 0.4, 0), 0.3)
  1247. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  1248. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(-0.4, 0, -0.9) * euler(0, 0.7, 0), 0.3)
  1249. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  1250. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * euler(0, 1.57, 0) * euler(0, -0.2, -0.2), 0.3)
  1251. LH.C0 = clerp(LH.C0, cf(-1, -0.8, 0) * euler(0, -1.57, 0) * euler(-0.2, 0, 0.4), 0.3)
  1252. end
  1253. attack = false
  1254. end
  1255. local Color1 = Torso.BrickColor
  1256. local fengui = it("GuiMain")
  1257. fengui.Parent = Player.PlayerGui
  1258. fengui.Name = "WeaponGUI"
  1259. local fenframe = it("Frame")
  1260. fenframe.Parent = fengui
  1261. fenframe.BackgroundColor3 = Color3.new(255, 255, 255)
  1262. fenframe.BackgroundTransparency = 1
  1263. fenframe.BorderColor3 = Color3.new(17, 17, 17)
  1264. fenframe.Size = UDim2.new(0.1, 0, 0.1, 0)
  1265. fenframe.Position = UDim2.new(0.95, 0, 0.7, 0)
  1266. local fenframe2 = it("Frame")
  1267. fenframe2.Parent = fengui
  1268. fenframe2.BackgroundColor3 = Color3.new(255, 255, 255)
  1269. fenframe2.BackgroundTransparency = 1
  1270. fenframe2.BorderColor3 = Color3.new(17, 17, 17)
  1271. fenframe2.Size = UDim2.new(0.2, 0, 0.1, 0)
  1272. fenframe2.Position = UDim2.new(0.4, 0, 0.85, 0)
  1273. local fenframe3 = it("Frame")
  1274. fenframe3.Parent = fengui
  1275. fenframe3.BackgroundColor3 = Color3.new(255, 255, 255)
  1276. fenframe3.BackgroundTransparency = 1
  1277. fenframe3.BorderColor3 = Color3.new(17, 17, 17)
  1278. fenframe3.Size = UDim2.new(0.2, 0, 0.2, 0)
  1279. fenframe3.Position = UDim2.new(0.8, 0, 0.8, 0)
  1280. local fenframe4 = it("Frame")
  1281. fenframe4.Parent = fengui
  1282. fenframe4.BackgroundColor3 = Color3.new(255, 255, 255)
  1283. fenframe4.BackgroundTransparency = 1
  1284. fenframe4.BorderColor3 = Color3.new(17, 17, 17)
  1285. fenframe4.Size = UDim2.new(0.1, 0, 0.1, 0)
  1286. fenframe4.Position = UDim2.new(0, 0, 0.7, 0)
  1287. local pressedf = false
  1288. local fenframe5 = it("Frame")
  1289. fenframe5.Parent = fengui
  1290. fenframe5.BackgroundColor3 = Color3.new(0, 0, 0)
  1291. fenframe5.BackgroundTransparency = 1
  1292. fenframe5.BorderColor3 = Color3.new(0, 0, 0)
  1293. fenframe5.Size = UDim2.new(1, 0, 1, 0)
  1294. fenframe5.Position = UDim2.new(0, 0, 0, 0)
  1295. fenframe5.ZIndex = 2
  1296. local tellbar = gui("TextLabel", fenframe5, "Press 'F' to Equip your Weapon.", 1, Color3.new(0, 0, 0), UDim2.new(0.25, 0, 0.25, 0), UDim2.new(0.5, 0, 0.5, 0))
  1297. tellbar.Font = "Arial"
  1298. tellbar.TextScaled = true
  1299. tellbar.TextTransparency = 1
  1300. tellbar.TextStrokeTransparency = 1
  1301. tellbar.ZIndex = 2
  1302. local fnumb = 0
  1303. local fenbarmana1 = gui("TextLabel", fenframe, "", 0, Color3.new(0, 0, 0), UDim2.new(0, 0, 0, 0), UDim2.new(0.4, 0, -4, 0))
  1304. local fenbarmana2 = gui("TextLabel", fenframe, "", 0, BrickColor.new(NewCol).Color, UDim2.new(0, 0, 0, 0), UDim2.new(0.4, 0, 0, 0))
  1305. local fenbarmana4 = gui("TextLabel", fenframe, "Mana(" .. mana.Value .. ")", 1, Color3.new(0, 0, 0), UDim2.new(0, 0, 0.2, 0), UDim2.new(0.4, 0, 0.2, 0))
  1306. local fenbardamage = gui("TextLabel", fenframe2, "Damage", 0.55, Color3.new(0.6078431372549, 0, 0), UDim2.new(-0.23, 0, 0, 0), UDim2.new(0.2, 0, 1, 0))
  1307. local fenbardef = gui("TextLabel", fenframe2, "Defense", 0.55, Color3.new(0, 0, 0.6078431372549), UDim2.new(-0.46, 0, 0, 0), UDim2.new(0.2, 0, 1, 0))
  1308. local fenbarmove = gui("TextLabel", fenframe2, "Walkspeed", 0.55, Color3.new(0, 0.6078431372549, 0), UDim2.new(1.03, 0, 0, 0), UDim2.new(0.2, 0, 1, 0))
  1309. local fenbarhp1 = gui("TextLabel", fenframe2, "", 0, Color3.new(0, 0, 0), UDim2.new(-0.46, 0, 1, 0), UDim2.new(1.92, 0, 0.4, 0))
  1310. local fenbarhp2 = gui("TextLabel", fenbarhp1, "", 0, Color3.new(1, 0, 0), UDim2.new(0, 0, 0, 0), UDim2.new(0, 0, 1, 0))
  1311. local fenbarhp3 = gui("TextLabel", fenbarhp1, "(100)", 1, Color3.new(0, 0, 0), UDim2.new(0, 0, 0, 0), UDim2.new(1, 0, 1, 0))
  1312. local fenbarstun1 = gui("TextLabel", fenframe4, "", 0, Color3.new(0, 0, 0), UDim2.new(0.2, 0, 0, 0), UDim2.new(0.4, 0, -4, 0))
  1313. local fenbarstun2 = gui("TextLabel", fenframe4, "", 0, Color3.new(0.960784, 0.803922, 0.188235), UDim2.new(0.2, 0, 0, 0), UDim2.new(0.4, 0, 0, 0))
  1314. local fenbarstun3 = gui("TextLabel", fenframe4, "Stun(" .. Stun.Value .. ")", 1, Color3.new(0.960784, 0.803922, 0.188235), UDim2.new(0.2, 0, 0.2, 0), UDim2.new(0.4, 0, 0.2, 0))
  1315. local fenbarmove1 = gui("TextButton", fenframe3, move1, 0.55, Color3.new(0.5, 0.5, 0.5), UDim2.new(0.1, 0, 0.1, 0), UDim2.new(0.4, 0, 0.4, 0))
  1316. fenbarmove1.ZIndex = 2
  1317. local fenbarmove1b = gui("TextLabel", fenbarmove1, "", 0.55, BrickColor.new(NewCol).Color, UDim2.new(0, 0, 0, 0), UDim2.new(0, 0, 1, 0))
  1318. local fenbarmove2 = gui("TextButton", fenframe3, move2, 0.55, Color3.new(0.5, 0.5, 0.5), UDim2.new(0.6, 0, 0.1, 0), UDim2.new(0.4, 0, 0.4, 0))
  1319. fenbarmove2.ZIndex = 2
  1320. local fenbarmove2b = gui("TextLabel", fenbarmove2, "", 0.55, BrickColor.new(NewCol).Color, UDim2.new(0, 0, 0, 0), UDim2.new(0, 0, 1, 0))
  1321. local fenbarmove3 = gui("TextButton", fenframe3, move3, 0.55, Color3.new(0.5, 0.5, 0.5), UDim2.new(0.1, 0, 0.6, 0), UDim2.new(0.4, 0, 0.4, 0))
  1322. fenbarmove3.ZIndex = 2
  1323. local fenbarmove3b = gui("TextLabel", fenbarmove3, "", 0.55, BrickColor.new(NewCol).Color, UDim2.new(0, 0, 0, 0), UDim2.new(0, 0, 1, 0))
  1324. local fenbarmove4 = gui("TextButton", fenframe3, move4, 0.55, Color3.new(0.5, 0.5, 0.5), UDim2.new(0.6, 0, 0.6, 0), UDim2.new(0.4, 0, 0.4, 0))
  1325. fenbarmove4.ZIndex = 2
  1326. local fenbarmove4b = gui("TextLabel", fenbarmove4, "", 0.55, BrickColor.new(NewCol).Color, UDim2.new(0, 0, 0, 0), UDim2.new(0, 0, 1, 0))
  1327.  
  1328. local mananum = 0
  1329. local donum = 0
  1330. local stunnum = 0
  1331. local staggeranim = false
  1332. local stunanim = false
  1333. local passivenum = 0
  1334. local walk = 0
  1335. local walkforw = true
  1336.  
  1337.  
  1338.  
  1339. Tool = Instance.new("HopperBin")
  1340. Tool.Parent = Backpack
  1341. Tool.Name = "Prototype: Annihilator gauntlets"
  1342. local Parent = Tool
  1343. Bin = Tool
  1344. if Bin.Name == "Techno" then
  1345. Bin.Name = "Prototype: Annihilator gauntlets"
  1346. end
  1347.  
  1348.  
  1349. combo = 0
  1350. ob1d = function(mouse)
  1351. if GuardStance == true and MMouse.Target ~= nil then
  1352. if MMouse.Target.Parent.Parent:findFirstChild("Humanoid") ~= nil and MMouse.Target.Parent.Parent:findFirstChild("Torso") ~= nil then
  1353. Target = MMouse.Target.Parent.Parent
  1354. GuardStance = false
  1355. end
  1356. if MMouse.Target.Parent:findFirstChild("Humanoid") ~= nil and MMouse.Target.Parent:findFirstChild("Torso") ~= nil then
  1357. Target = MMouse.Target.Parent
  1358. GuardStance = false
  1359. end
  1360. end
  1361.  
  1362. if gun then
  1363. shoot = true
  1364. gun = false
  1365.  
  1366. end
  1367.  
  1368. if attack == true or equipped == false then
  1369. return
  1370. end
  1371. hold = true
  1372. if combo == 0 then
  1373. combo = 1
  1374. attackone()
  1375. else
  1376. if combo == 1 then
  1377. combo = 2
  1378. attacktwo()
  1379. else
  1380. if combo == 2 then
  1381. combo = 3
  1382. attackthree()
  1383. else
  1384. if combo == 3 then
  1385. combo = 0
  1386. attackfour()
  1387.  
  1388. end
  1389. end
  1390. end
  1391. end
  1392. coroutine.resume(coroutine.create(function()
  1393. for i = 1, 50 do
  1394. if attack == false then
  1395. swait()
  1396. end
  1397. end
  1398. if attack == false then
  1399. combo = 0
  1400. end
  1401. end))
  1402. end
  1403.  
  1404.  
  1405. ob1u = function(mouse)
  1406. hold = false
  1407. end
  1408. do1 = function()
  1409.  
  1410. if mana.Value < 10 then
  1411. return
  1412. end
  1413.  
  1414. if cooldowns[1] ~= cooldownmax then
  1415. return
  1416. end
  1417. if attack == true then
  1418. return
  1419. end
  1420. if Stagger.Value == true or StunT.Value <= Stun.Value or StaggerHit.Value == true then
  1421. return
  1422. end
  1423. cooldowns[1] = 0
  1424. mana.Value = mana.Value - 10
  1425.  
  1426. for i = 1,3 do
  1427.  
  1428. attack = true
  1429.  
  1430. for i = 1,5 do
  1431. wait()
  1432. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 1.6), 0.3)
  1433. RootJoint.C0 = clerp(RootJoint.C0, RootCF *cf(0, 0, -0.2) * euler(0,0,-1.6), 0.3)
  1434. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, -1) * euler(-0.5, 0, -1.6), 0.3)
  1435. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(-0.5, 0, -1.6), 0.3)
  1436. RH.C0 = clerp(RH.C0, cf(0.5, -1, -0.5) * euler(0, 1.57, 0) * euler(-0.3, 1.6, 0), 0.3)
  1437. LH.C0 = clerp(LH.C0, cf(-0.5, -1, 0.5) * euler(0, -1.57, 0) * euler(0.3, 1.6, 0), 0.3)
  1438. end
  1439. RootPart.Velocity = RootPart.CFrame.lookVector * -50
  1440. Laser1()
  1441. so("156572165", Torso, 1, 0.75)
  1442. for i = 1,5 do
  1443. wait()
  1444. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 1.6), 0.3)
  1445. RootJoint.C0 = clerp(RootJoint.C0, RootCF *cf(0, 0, -0.2) * euler(0,0,-1.6), 0.3)
  1446. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, -1) * euler(-0.5, 0, -1.6), 0.3)
  1447. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(-0.5, 0, -1.6), 0.3)
  1448. RH.C0 = clerp(RH.C0, cf(0.5, -1, -0.5) * euler(0, 1.57, 0) * euler(0.3, 1.6, 0), 0.3)
  1449. LH.C0 = clerp(LH.C0, cf(-0.5, -1, 0.5) * euler(0, -1.57, 0) * euler(-0.3, 1.6, 0), 0.3)
  1450. end
  1451. canwalkanim = true
  1452.  
  1453.  
  1454. end
  1455. attack = false
  1456. end
  1457.  
  1458. do2 = function()
  1459. if cooldowns[2] ~= cooldownmax then
  1460. return
  1461. end
  1462. if mana.Value < 15 then
  1463. return
  1464. end
  1465. if attack == true then
  1466. return
  1467. end
  1468. if Stagger.Value == true or StunT.Value <= Stun.Value or StaggerHit.Value == true then
  1469. return
  1470. end
  1471.  
  1472. mana.Value = mana.Value - 15
  1473. cooldowns[2] = 0
  1474.  
  1475. attack = true
  1476.  
  1477. for i = 1,30 do
  1478. wait()
  1479. RootPart.Velocity = RootPart.CFrame.lookVector * 50
  1480. so("200632136", Torso, 1, 1)
  1481. MagicBlock(BrickColor.new("Neon orange"), lprt1.CFrame,1,1,1,1,1,1,0.05,1)
  1482. MagicBlock(BrickColor.new("Neon orange"), lprt1.CFrame,1,1,1,1,1,1,0.05,1)
  1483. MagniDamage(lprt3, 3, 6, 8, math.random(5, 10), "Normal", RootPart, 0.3, 2, (math.random(10, 15)), nil, true)
  1484. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0), 0.4)
  1485. RootJoint.C0 = clerp(RootJoint.C0, RootCF *cf(0, 0, 0) * euler(0,1.6,i), 0.4)
  1486. RW.C0 = clerp(RW.C0, cf(1.5, 0.5 , 0) * euler(0,0,1.6), 0.4)
  1487. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(0, 0, -1.6), 0.4)
  1488. RH.C0 = clerp(RH.C0, cf(1, -1, -0) * euler(0, 1.57, 0) * euler(-0, 0, 0), 0.4)
  1489. LH.C0 = clerp(LH.C0, cf(-1, -1, -0) * euler(0, -1.57, 0) * euler(-0, 0, 0), 0.4)
  1490. end
  1491.  
  1492. attack = false
  1493.  
  1494. end
  1495.  
  1496. do3 = function()
  1497. if cooldowns[3] ~= cooldownmax then
  1498. return
  1499. end
  1500. if mana.Value < 30 then
  1501. return
  1502. end
  1503. if attack == true then
  1504. return
  1505. end
  1506. if Stagger.Value == true or StunT.Value <= Stun.Value or StaggerHit.Value == true then
  1507. return
  1508. end
  1509.  
  1510. cooldowns[3] = 0
  1511. mana.Value = mana.Value - 30
  1512. attack = true
  1513.  
  1514. for i = 1,50 do
  1515. wait()
  1516. so("200632136", Torso, 1, 2)
  1517. Laser2(Torso)
  1518. so("156572165", Torso, 1, 1)
  1519. MagniDamage(lprt3, 3, 6, 8, math.random(5, 10), "Normal", RootPart, 0.1, 2, (math.random(6, 9)), nil, true)
  1520. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0), 0.4)
  1521. RootJoint.C0 = clerp(RootJoint.C0, RootCF *cf(0, 0, 0) * euler(0,0,i), 0.4)
  1522. RW.C0 = clerp(RW.C0, cf(1.5, 0.5 , 0) * euler(0,0,1.6), 0.4)
  1523. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(0, 0, -1.6), 0.4)
  1524. RH.C0 = clerp(RH.C0, cf(1, -1, -0) * euler(0, 1.57, 0) * euler(-0, 0, 0), 0.4)
  1525. LH.C0 = clerp(LH.C0, cf(-1, -1, -0) * euler(0, -1.57, 0) * euler(-0, 0, 0), 0.4)
  1526. end
  1527.  
  1528. attack = false
  1529.  
  1530. end
  1531.  
  1532. do4 = function()
  1533. if cooldowns[4] ~= cooldownmax then
  1534. return
  1535. end
  1536. if mana.Value < 50 then
  1537. return
  1538. end
  1539. if attack == true then
  1540. return
  1541. end
  1542. if Stagger.Value == true or StunT.Value <= Stun.Value or StaggerHit.Value == true then
  1543. return
  1544. end
  1545.  
  1546. cooldowns[4] = 0
  1547. mana.Value = mana.Value - 50
  1548. attack = true
  1549. dec = Instance.new("NumberValue", Decrease)
  1550. dec.Name = "DecreaseMvmt"
  1551. dec.Value = 10
  1552. for i = 1,50 do
  1553. wait()
  1554. MagicBlock(BrickColor.new("Neon orange"), lprt1.CFrame,1,1,1,0.5,0.5,0.5,0.05,1)
  1555. MagicBlock(BrickColor.new("Neon orange"), lprt3.CFrame,1,1,1,0.5,0.5,0.5,0.05,1)
  1556. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0), 0.3)
  1557. RootJoint.C0 = clerp(RootJoint.C0, RootCF *cf(0, 0, -0) * euler(0,0,-0), 0.3)
  1558. RW.C0 = clerp(RW.C0, cf(1.4, 0.5, 0) * euler(1.6, -0.3, -0.2), 0.3)
  1559. LW.C0 = clerp(LW.C0, cf(-1.4, 0.5, 0) * euler(1.6, 0.3, 0.2), 0.3)
  1560. RH.C0 = clerp(RH.C0, cf(1, -1, -0) * euler(0, 1.57, 0) * euler(0, 0, 0), 0.3)
  1561. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * euler(0, -1.57, 0) * euler(0, 0, 0), 0.3)
  1562. end
  1563. dec:Remove()
  1564. Star()
  1565. so("156572165", Torso, 1, 0.75)
  1566.  
  1567. attack = false
  1568.  
  1569. end
  1570.  
  1571. attackone = function()
  1572. attack = true
  1573.  
  1574. for i = 1,10 do
  1575. wait()
  1576. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0.6), 0.15)
  1577. RootJoint.C0 = clerp(RootJoint.C0, RootCF *cf(0, 0, 0) * euler(0,0,-0.6), 0.15)
  1578. RW.C0 = clerp(RW.C0, cf(1.5, 0.5 , 0) * euler(1.6,0,-0.4), 0.15)
  1579. LW.C0 = clerp(LW.C0, cf(-1.6, 0.6, -0.5) * euler(0.6, 0, -0.2), 0.15)
  1580. RH.C0 = clerp(RH.C0, cf(1, -1, -0.1) * euler(0, 1.57, 0) * euler(-0, 0.6, 0), 0.2)
  1581. LH.C0 = clerp(LH.C0, cf(-1, -1, -0.1) * euler(0, -1.57, 0) * euler(-0, 0.6, 0), 0.2)
  1582. end
  1583. so("200632136", LeftArm, 1, 1)
  1584. for i = 1,15 do
  1585. wait()
  1586. MagniDamage(lprt3, 3, 6, 8, math.random(5, 10), "Normal", RootPart, 0.5, 2, (math.random(10, 15)), nil, true)
  1587. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, -1), 0.4)
  1588. RootJoint.C0 = clerp(RootJoint.C0, RootCF *cf(0, 0, 0) * euler(0,0,1), 0.4)
  1589. RW.C0 = clerp(RW.C0, cf(0.2, 0.5, -0.8) * euler(1.6,0,-1), 0.4)
  1590. LW.C0 = clerp(LW.C0, cf(-1.5, 0.6 , 0) * euler(-0.5, 0, -0.2), 0.4)
  1591. RH.C0 = clerp(RH.C0, cf(0.6, -1.1, 0) * euler(0, 1.57, 0) * euler(0, -0.9, 0), 0.4)
  1592. LH.C0 = clerp(LH.C0, cf(-0.6, -1, -0) * euler(0, -1.57, 0) * euler(-0,-0.9, 0), 0.4)
  1593. end
  1594.  
  1595.  
  1596. attack = false
  1597. end
  1598.  
  1599. attacktwo = function()
  1600. attack = true
  1601.  
  1602. for i = 1,10 do
  1603. wait()
  1604. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, -0.6), 0.15)
  1605. RootJoint.C0 = clerp(RootJoint.C0, RootCF *cf(0, 0, 0) * euler(0,0,0.6), 0.15)
  1606. RW.C0 = clerp(RW.C0, cf(1.5, 0.6 , 0) * euler(0.6,0,0.2), 0.15)
  1607. LW.C0 = clerp(LW.C0, cf(-1.6, 0.5, -0.5) * euler(1.6, 0, 0.4), 0.15)
  1608. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * euler(0, 1.57, 0) * euler(-0, -0.6, 0), 0.2)
  1609. LH.C0 = clerp(LH.C0, cf(-1, -1, -0) * euler(0, -1.57, 0) * euler(-0, -0.6, 0), 0.2)
  1610. end
  1611. so("200632136", RightArm, 1, 1)
  1612. for i = 1,15 do
  1613. wait()
  1614. MagniDamage(lprt1, 3, 6, 8, math.random(5, 10), "Normal", RootPart, 0.5, 2, (math.random(8, 13)), nil, true)
  1615. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 1), 0.4)
  1616. RootJoint.C0 = clerp(RootJoint.C0, RootCF *cf(0, 0, 0) * euler(0,0,-1), 0.4)
  1617. RW.C0 = clerp(RW.C0, cf(1.5, 0.6 , 0) * euler(-0.5,0,0.2), 0.4)
  1618. LW.C0 = clerp(LW.C0, cf(-0.2, 0.5, -0.8) * euler(1.6, 0, 1), 0.4)
  1619. RH.C0 = clerp(RH.C0, cf(0.6, -1.1, 0) * euler(0, 1.57, 0) * euler(0, 0.9, 0), 0.4)
  1620. LH.C0 = clerp(LH.C0, cf(-0.6, -1, -0) * euler(0, -1.57, 0) * euler(-0, 0.9, 0), 0.4)
  1621. end
  1622.  
  1623. attack = false
  1624. end
  1625.  
  1626.  
  1627. attackthree = function()
  1628. attack = true
  1629.  
  1630. dec = Instance.new("NumberValue", Decrease)
  1631. dec.Name = "DecreaseMvmt"
  1632. dec.Value = 10
  1633. so("300563970", Torso, 1, 1)
  1634. for i = 1,10 do
  1635. wait()
  1636.  
  1637. Neck.C0 = clerp(Neck.C0, necko * euler(0.5, 0, 0.3), 0.3)
  1638. RootJoint.C0 = clerp(RootJoint.C0, RootCF *cf(0, 0, -0.3) * euler(0,0,-0.3), 0.3)
  1639. RW.C0 = clerp(RW.C0, cf(1.5, 0.6, 0) * euler(-0.5, 0, 0.3), 0.3)
  1640. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(0.5, 0, 0), 0.3)
  1641. RH.C0 = clerp(RH.C0, cf(1, -1, -0) * euler(-0.5, 1.57, 0) * euler(0, 0, 0), 0.3)
  1642. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * euler(0, -1.57, 0) * euler(0, 0, 0), 0.3)
  1643.  
  1644. end
  1645. so("200632136", Torso, 1, 2)
  1646. Laser2(RootPart)
  1647. for i = 1,10 do
  1648. wait()
  1649.  
  1650. Neck.C0 = clerp(Neck.C0, necko * euler(0.5, 0, 0.3), 0.3)
  1651. RootJoint.C0 = clerp(RootJoint.C0, RootCF *cf(0, 0, -0.3) * euler(0.6,0,-0.3), 0.3)
  1652. RW.C0 = clerp(RW.C0, cf(1.5, 0.6, 0) * euler(-0.5, 0, 0.3), 0.3)
  1653. LW.C0 = clerp(LW.C0, cf(-1.5, 0, -0.5) * euler(0.5, 0, 0), 0.3)
  1654. RH.C0 = clerp(RH.C0, cf(1, -1, -0) * euler(0.5, 1.57, 0) * euler(0, 0, 0), 0.3)
  1655. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * euler(0.5, -1.57, 0) * euler(0, 0, 0), 0.3)
  1656.  
  1657. end
  1658. dec:Remove()
  1659.  
  1660. attack = false
  1661. end
  1662.  
  1663.  
  1664.  
  1665. attackfour = function()
  1666.  
  1667. attack = true
  1668.  
  1669. for i = 1,20 do
  1670. wait()
  1671.  
  1672. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 1.6), 0.3)
  1673.  
  1674. RootJoint.C0 = clerp(RootJoint.C0, RootCF *cf(0, 0, -0.2) * euler(0,0,-1.6), 0.3)
  1675. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, -1) * euler(-0.5, 0, -1.6), 0.3)
  1676. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(-0.5, 0, -1.6), 0.3)
  1677. RH.C0 = clerp(RH.C0, cf(0.5, -1, -0.5) * euler(0, 1.57, 0) * euler(-0.3, 1.6, 0), 0.3)
  1678. LH.C0 = clerp(LH.C0, cf(-0.5, -1, 0.5) * euler(0, -1.57, 0) * euler(0.3, 1.6, 0), 0.3)
  1679. end
  1680. RootPart.Velocity = RootPart.CFrame.lookVector * -100
  1681. Laser1()
  1682. so("156572165", Torso, 1, 0.75)
  1683. for i = 1,10 do
  1684. wait()
  1685.  
  1686. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 1.6), 0.3)
  1687. RootJoint.C0 = clerp(RootJoint.C0, RootCF *cf(0, 0, -0.2) * euler(0,0,-1.6), 0.3)
  1688. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, -1) * euler(-0.5, 0, -1.6), 0.3)
  1689. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(-0.5, 0, -1.6), 0.3)
  1690. RH.C0 = clerp(RH.C0, cf(0.5, -1, -0.5) * euler(0, 1.57, 0) * euler(0.3, 1.6, 0), 0.3)
  1691. LH.C0 = clerp(LH.C0, cf(-0.5, -1, 0.5) * euler(0, -1.57, 0) * euler(-0.3, 1.6, 0), 0.3)
  1692. end
  1693. canwalkanim = true
  1694. attack = false
  1695.  
  1696. end
  1697. add = 0
  1698.  
  1699. Laser1 = function()
  1700. table.insert(Effects, {RootPart.CFrame.lookVector, "Shoot", 30, lprt1.Position + Vector3.new(0,0,0), 13, 15, 0, 1})
  1701. table.insert(Effects, {RootPart.CFrame.lookVector, "Shoot", 30, lprt3.Position + Vector3.new(0,0,0), 13, 15, 0, 1})
  1702. end
  1703. LaserShot = function()
  1704. table.insert(Effects, {Head.CFrame.lookVector, "Shoot", 30, lprt1.Position + Vector3.new(0,0,0), 13, 15, 0, 1})
  1705. table.insert(Effects, {Head.CFrame.lookVector, "Shoot", 30, lprt3.Position + Vector3.new(0,0,0), 13, 15, 0, 1})
  1706. end
  1707. Laser2 = function(part)
  1708. table.insert(Effects, {part.CFrame.lookVector, "Shoot", 30, part.Position + Vector3.new(0,0,0), 13, 15, 0, 2})
  1709. end
  1710.  
  1711. Star = function()
  1712. table.insert(Effects, {RootPart.CFrame.lookVector, "Shoot", 30, RootPart.Position, 36, 48, 0, 3})
  1713. end
  1714.  
  1715. equipanim = function()
  1716. attack = true
  1717.  
  1718.  
  1719. for i,v in pairs(modelzorz:children()) do
  1720. coroutine.resume(coroutine.create(function()
  1721. if v:IsA("Part") then
  1722.  
  1723. if v.BrickColor ~= BrickColor.new("Bright blue") then
  1724. for i = 1,10 do
  1725. wait()
  1726. v.Transparency = v.Transparency - 0.1
  1727. end
  1728. end
  1729. if v.BrickColor == BrickColor.new("Bright blue") then
  1730. for i = 1,5 do
  1731. wait()
  1732. v.Transparency = v.Transparency - 0.1
  1733. end
  1734. end
  1735. end
  1736. end))
  1737. end
  1738.  
  1739. end
  1740.  
  1741. hideanim = function()
  1742. attack = true
  1743.  
  1744. for i,v in pairs(modelzorz:children()) do
  1745.  
  1746. coroutine.resume(coroutine.create(function()
  1747. if v:IsA("Part") then
  1748. if v.BrickColor ~= BrickColor.new("Bright blue") then
  1749. for i = 1,10 do
  1750. wait()
  1751. v.Transparency = v.Transparency + 0.1
  1752. end
  1753. end
  1754. if v.BrickColor == BrickColor.new("Bright blue") then
  1755. for i = 1,5 do
  1756. wait()
  1757. v.Transparency = v.Transparency + 0.1
  1758. end
  1759. end
  1760. end
  1761. end))
  1762. end
  1763.  
  1764.  
  1765. for i = 1,10 do
  1766. wait()
  1767. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0), 0.3)
  1768. RootJoint.C0 = clerp(RootJoint.C0, RootCF *cf(0, 0, 0) * euler(0,0,0), 0.3)
  1769. RW.C0 = clerp(RW.C0, cf(1.5, 0.5 , 0) * euler(0, 0, 0), 0.3)
  1770. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(0, 0, 0), 0.3)
  1771. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * euler(0, 1.57, 0) * euler(0, 0, 0), 0.3)
  1772. LH.C0 = clerp(LH.C0, cf(-1, -1, -0) * euler(0, -1.57, 0) * euler(-0, 0, 0), 0.3)
  1773. end
  1774.  
  1775. end
  1776.  
  1777.  
  1778. buttonhold = false
  1779. fenbarmove1.MouseButton1Click:connect(do1)
  1780. fenbarmove2.MouseButton1Click:connect(do2)
  1781. fenbarmove3.MouseButton1Click:connect(do3)
  1782. fenbarmove4.MouseButton1Click:connect(do4)
  1783. eul = 0
  1784. equipped = false
  1785. function GunStance()
  1786.  
  1787. if mana.Value < 10 then
  1788. return
  1789. end
  1790. attack=true
  1791. gun=true
  1792.  
  1793. Mvmt.Value=Mvmt.Value-.4
  1794. for i=1,10 do
  1795. swait()
  1796. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 1.6), 0.3)
  1797. RootJoint.C0 = clerp(RootJoint.C0, RootCF *cf(0, 0, -0.2) * euler(0,0,-1.6), 0.3)
  1798. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, -1) * euler(-0, 0, -1.6), 0.3)
  1799. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(-0, 0, -1.6), 0.3)
  1800. RH.C0 = clerp(RH.C0, cf(0.5, -1, -0.5) * euler(0, 1.57, 0) * euler(0, 1.6, 0), 0.3)
  1801. LH.C0 = clerp(LH.C0, cf(-0.5, -1, 0.5) * euler(0, -1.57, 0) * euler(-0, 1.6, 0), 0.3)
  1802. end
  1803. RootJoint.C0=RootCF*cf(0,0,-.2)*euler(0,0,-1.57)
  1804. LW.C0=cf(-1.5,0.5,0)*euler(1.57,0,-1.57)
  1805. gairo=Instance.new("BodyGyro")
  1806. gairo.Parent=RootPart
  1807. gairo.maxTorque=Vector3.new(math.huge,math.huge,math.huge)
  1808. gairo.P=20e+003
  1809. gairo.cframe=RootPart.CFrame
  1810. local offset=nil
  1811. while gun==true do
  1812. swait()
  1813. local gunpos=vt(MMouse.Hit.p.x,Head.Position.Y,MMouse.Hit.p.z)
  1814. offset=(Torso.Position.y-MMouse.Hit.p.y)/60
  1815. mag=(Torso.Position-MMouse.Hit.p).magnitude/80
  1816. offset=offset/mag
  1817. gairo.cframe=cf(Head.Position,gunpos)
  1818. Neck.C0=clerp(Neck.C0,necko*euler(0,offset/2,1.57),.3)
  1819. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(offset,0,0),.2)
  1820. RW.C1=clerp(RW.C1,cf(0,0.5,0)*euler(0,0,-offset),.2)
  1821. end
  1822. Mvmt.Value=Mvmt.Value+.4
  1823. if shoot==true then
  1824. mana.Value = mana.Value - 10
  1825. RootPart.Velocity = RootPart.CFrame.lookVector * -100
  1826. LaserShot()
  1827. so("156572165", Torso, 1, 0.75)
  1828. end
  1829. gairo.Parent=nil
  1830. shoot=false
  1831. attack=false
  1832. end
  1833.  
  1834. key = function(key)
  1835.  
  1836. if key == "e" and gun ~= false then
  1837. gun = false
  1838. end
  1839.  
  1840. if attack == true then
  1841. return
  1842. end
  1843.  
  1844. if key == "f" then
  1845. pressedf = true
  1846. fnumb = 0
  1847. attack = true
  1848. if equipped == false then
  1849. equipped = true
  1850. RSH = ch.Torso["Right Shoulder"]
  1851. LSH = ch.Torso["Left Shoulder"]
  1852. RSH.Parent = nil
  1853. LSH.Parent = nil
  1854. RW.Name = "Right Shoulder"
  1855. RW.Part0 = ch.Torso
  1856. RW.C0 = cf(1.5, 0.5, 0)
  1857. RW.C1 = cf(0, 0.5, 0)
  1858. RW.Part1 = ch["Right Arm"]
  1859. RW.Parent = ch.Torso
  1860. LW.Name = "Left Shoulder"
  1861. LW.Part0 = ch.Torso
  1862. LW.C0 = cf(-1.5, 0.5, 0)
  1863. LW.C1 = cf(0, 0.5, 0)
  1864. LW.Part1 = ch["Left Arm"]
  1865. LW.Parent = ch.Torso
  1866. Animate.Parent = nil
  1867. equipanim()
  1868. else
  1869. equipped = false
  1870. hideanim()
  1871. LH.C1 = LHC1
  1872. RH.C1 = RHC1
  1873. Animate.Parent = Humanoid
  1874. swait(0)
  1875. RW.Parent = nil
  1876. LW.Parent = nil
  1877. RSH.Parent = player.Character.Torso
  1878. LSH.Parent = player.Character.Torso
  1879. end
  1880. attack = false
  1881. end
  1882. if equipped == false then
  1883. return
  1884. end
  1885. if key == "e" then
  1886. GunStance()
  1887. end
  1888.  
  1889. if key == "z" and equipped then
  1890. do1()
  1891. end
  1892. if key == "x" and equipped then
  1893. do2()
  1894. end
  1895. if key == "c" and equipped then
  1896. do3()
  1897. end
  1898. if key == "v" and equipped then
  1899. do4()
  1900. end
  1901.  
  1902. if attack == false then
  1903. RecentEnemy.Value = nil
  1904. end
  1905. end
  1906. key2 = function(key)
  1907. if key == "x" and equipped then
  1908.  
  1909. Charge = 0
  1910. Charging = false
  1911. end
  1912.  
  1913. end
  1914.  
  1915. s = function(mouse)
  1916.  
  1917. mouse.Button1Down:connect(function()
  1918. ob1d(mouse)
  1919. end)
  1920. mouse.Button1Up:connect(function()
  1921. ob1u(mouse)
  1922. end)
  1923. mouse.KeyDown:connect(key)
  1924. mouse.KeyUp:connect(key2)
  1925. player = Player
  1926. ch = Character
  1927. MMouse = mouse
  1928. end
  1929.  
  1930. ds = function(mouse)
  1931. end
  1932. Bin.Selected:connect(s)
  1933. Bin.Deselected:connect(ds)
  1934. print("Techno loaded.")
  1935. local mananum = 0
  1936. local donum = 0
  1937. local stunnum = 0
  1938. local staggeranim = false
  1939. local stunanim = false
  1940. local passivenum = 0
  1941. local walk = 0
  1942. local walkforw = true
  1943.  
  1944. local sine = 0
  1945. local change = 1
  1946. local val = 0
  1947.  
  1948. while 1 do
  1949. swait()
  1950.  
  1951. if Humanoid.Health <= 0 then
  1952. attack = true
  1953. resumeControl()
  1954. end
  1955. do
  1956. if fnumb < 21 then
  1957. fnumb = fnumb + 1
  1958. if pressedf == false then
  1959. fenframe5.BackgroundTransparency = fenframe5.BackgroundTransparency - 0.025
  1960. tellbar.TextTransparency = tellbar.TextTransparency - 0.05
  1961. tellbar.TextStrokeTransparency = tellbar.TextStrokeTransparency - 0.05
  1962. else
  1963. if fnumb == 20 then
  1964. fenframe5.Parent = nil
  1965. print("daigui")
  1966. end
  1967. fenframe5.BackgroundTransparency = fenframe5.BackgroundTransparency + 0.025
  1968. tellbar.TextTransparency = tellbar.TextTransparency + 0.05
  1969. tellbar.TextStrokeTransparency = tellbar.TextStrokeTransparency + 0.05
  1970. end
  1971. end
  1972.  
  1973. passivenum = passivenum + 1
  1974. if 80 <= passivenum then
  1975. passivenum = 0
  1976. end
  1977. if Stagger.Value == true and staggeranim == false then
  1978. coroutine.resume(coroutine.create(function()
  1979. staggeranim = true
  1980. while attack == true do
  1981. swait()
  1982. end
  1983. StaggerAnim()
  1984. StaggerHit.Value = false
  1985. Stagger.Value = false
  1986. staggeranim = false
  1987. end))
  1988. end
  1989. if StaggerHit.Value == true and staggeranim == false then
  1990. coroutine.resume(coroutine.create(function()
  1991. staggeranim = true
  1992. while attack == true do
  1993. swait()
  1994. end
  1995. StaggerHitt()
  1996. StaggerHit.Value = false
  1997. Stagger.Value = false
  1998. staggeranim = false
  1999. end))
  2000. end
  2001. if Mvmt.Value < 0 or Stagger.Value == true or StunT.Value <= Stun.Value or StaggerHit.Value == true or Rooted.Value == true then
  2002. Humanoid.WalkSpeed = 0
  2003. else
  2004. Humanoid.WalkSpeed = 16 * Mvmt.Value
  2005. end
  2006. if StunT.Value <= Stun.Value and stunanim == false then
  2007. coroutine.resume(coroutine.create(function()
  2008. stunanim = true
  2009. while attack == true do
  2010. swait()
  2011. end
  2012. StunAnim()
  2013. Stun.Value = 0
  2014. stunanim = false
  2015. end))
  2016. end
  2017. local stunnum2 = 20
  2018. if Mode == "Defensive" then
  2019. stunnum2 = 20
  2020. else
  2021. stunnum2 = 60
  2022. end
  2023. if stunnum2 <= stunnum then
  2024. if 0 < Stun.Value then
  2025. Stun.Value = Stun.Value - 1
  2026. end
  2027. stunnum = 0
  2028. end
  2029. stunnum = stunnum + 1
  2030. if 0.3 <= donum then
  2031. handidle = true
  2032. else
  2033. if donum <= 0 then
  2034. handidle = false
  2035. end
  2036. end
  2037. if handidle == false then
  2038. donum = donum + 0.002
  2039. else
  2040. donum = donum - 0.002
  2041. end
  2042. if (500 <= idle and attack ~= false) or Anim == "Walk" and canwalkanim then
  2043. if walkforw == true then
  2044. RH.C1 = clerp(RH.C1, RHC1 * cf(0, -0, 0) * euler(0, 0, 1), Mvmt.Value * 10 / 50)
  2045. LH.C1 = clerp(LH.C1, LHC1 * cf(0, 0, 0) * euler(0, 0, 1), Mvmt.Value * 10 / 50)
  2046. else
  2047. RH.C1 = clerp(RH.C1, RHC1 * cf(-0, 0, 0) * euler(0, 0, -1), Mvmt.Value * 10 / 50)
  2048. LH.C1 = clerp(LH.C1, LHC1 * cf(-0, -0, 0) * euler(0, 0, -1), Mvmt.Value * 10 / 50)
  2049.  
  2050. end
  2051. else
  2052. RH.C1 = clerp(RH.C1, RHC1, 0.2)
  2053. LH.C1 = clerp(LH.C1, LHC1, 0.2)
  2054. RW.C1 = clerp(RW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.2)
  2055. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.2)
  2056. end
  2057. local torvel = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
  2058. local velderp = RootPart.Velocity.y
  2059. hitfloor = rayCast(RootPart.Position, CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0)).lookVector, 4, Character)
  2060. if equipped == true then
  2061. if attack == false then
  2062. idle = idle + 1
  2063. else
  2064. idle = 0
  2065. end
  2066.  
  2067.  
  2068. if 1 < RootPart.Velocity.y and hitfloor == nil then
  2069. Anim = "Jump"
  2070. if attack == false then
  2071.  
  2072. Neck.C0 = clerp(Neck.C0, necko * euler(-0.5, 0, 0), 0.2)
  2073. RootJoint.C0 = clerp(RootJoint.C0, RootCF * angles(math.rad(10), math.rad(0) + RootPart.RotVelocity.Z / 30, math.rad(5 * math.cos(sine / 8))), 0.2)
  2074. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(-0.4, 0, 0.2), 0.2)
  2075. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.2)
  2076. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(-0.4, 0, -0.2), 0.2)
  2077. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.2)
  2078. RH.C0 = clerp(RH.C0, cf(1, -1, -0.3) * euler(-0.5, 1.57, 0) * euler(-0.2, 0, 0), 0.2)
  2079. LH.C0 = clerp(LH.C0, cf(-1, -1, -0.3) * euler(-0.5, -1.57, 0) * euler(-0.2, 0, 0), 0.2)
  2080. end
  2081. else
  2082. if RootPart.Velocity.y < -1 and hitfloor == nil then
  2083. Anim = "Fall"
  2084. if attack == false then
  2085.  
  2086. Neck.C0 = clerp(Neck.C0, necko * euler(0.4, 0, 0), 0.2)
  2087. Neck.C1 = clerp(Neck.C1, necko2 * euler(0, 0, 0), 0.2)
  2088.  
  2089. RootJoint.C0 = clerp(RootJoint.C0, RootCF * angles(math.rad(10), math.rad(0) + RootPart.RotVelocity.Z / 30, math.rad(5 * math.cos(sine / 8))), 0.2)
  2090. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(-0.2, 0, 0.8), 0.2)
  2091. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.2)
  2092. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(-0.2, 0, -0.8), 0.2)
  2093. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.2)
  2094. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * euler(0.4, 1.57, 0), 0.2)
  2095. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * euler(-0.2, -1.57, 0), 0.2)
  2096. end
  2097. else
  2098. if torvel < 1 and hitfloor ~= nil then
  2099. Anim = "Idle"
  2100. if attack == false then
  2101. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0), 0.15)
  2102. RootJoint.C0 = clerp(RootJoint.C0, RootCF *cf(0, 0, 0) * euler(0,0,0), 0.15)
  2103. RW.C0 = clerp(RW.C0, cf(1.5, 0.6 , 0) * euler(-donum, 0, 0.2 - donum/4), 0.15)
  2104. LW.C0 = clerp(LW.C0, cf(-1, 0.5 + donum/4, -0.5) * euler(1 - donum/2, 0, 1), 0.15)
  2105. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * euler(0, 1.57, 0) * euler(-0.05, 0, 0), 0.2)
  2106. LH.C0 = clerp(LH.C0, cf(-1, -1, -0) * euler(0, -1.57, 0) * euler(-0.05, 0, 0), 0.2)
  2107. end
  2108. else
  2109. if 2 < torvel and hitfloor ~= nil then
  2110. Anim = "Walk"
  2111. walk = walk + 1
  2112. if 15 - 5 * Mvmt.Value <= walk then
  2113. walk = 0
  2114. if walkforw == true then
  2115. walkforw = false
  2116. else
  2117. if walkforw == false then
  2118. walkforw = true
  2119. end
  2120. end
  2121. end
  2122. if attack == false then
  2123. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0), 0.2)
  2124. RootJoint.C0 = clerp(RootJoint.C0, RootCF * angles(math.rad(10), math.rad(0) + RootPart.RotVelocity.Y / 30, math.rad(5 * math.cos(sine / 8))), 0.2)
  2125. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(-0.6, 0, 0.1), 0.2)
  2126. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(-0.6, 0, -0.1), 0.2)
  2127. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * euler(0, 1.57, 0) * euler(0, 0, 0), 0.2)
  2128. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * euler(0, -1.57, 0) * euler(0, 0, 0), 0.2)
  2129. end
  2130.  
  2131. end
  2132. end
  2133. end
  2134. end
  2135. end
  2136.  
  2137.  
  2138. if 0 < #Effects then
  2139. for e = 1, #Effects do
  2140. if Effects[e] ~= nil then
  2141. local Thing = Effects[e]
  2142. if Thing ~= nil then
  2143. local Part = Thing[1]
  2144. local Mode = Thing[2]
  2145. local Delay = Thing[3]
  2146. local IncX = Thing[4]
  2147. local IncY = Thing[5]
  2148. local IncZ = Thing[6]
  2149.  
  2150.  
  2151. if Thing[2]=="Shoot" then
  2152. add = add + 0.5
  2153. local Look=Thing[1]
  2154. local hit,pos = rayCast(Thing[4],Look*50,50,modelzorz)
  2155. local mag=(Thing[4]-pos).magnitude
  2156. if Thing[8] == 1 then
  2157. MagicCylinder(BrickColor.new("Neon orange"), "Neon",CFrame.new((Thing[4]+pos)/2,pos)*angles(1.57,0,0),1,mag*5,1,1,0,1,0.1)
  2158. end
  2159. if Thing[8] == 2 then
  2160. MagicCylinder(BrickColor.new("Neon orange"), "Neon",CFrame.new(Thing[4])*angles(0,1.57,0),1,mag*50,1,5,0,5,0.1)
  2161. end
  2162. if Thing[8] == 3 then
  2163. MagicCylinder(BrickColor.new("Neon orange"), "Neon",CFrame.new(Thing[4])*angles(add,0,add),1,mag*30,1,5,0,5,0.1)
  2164. end
  2165. if Thing[8] == 1 then
  2166. Thing[4]=Thing[4]+(Look*20)
  2167. Thing[3]=Thing[3]-1
  2168. end
  2169. if Thing[8] == 2 then
  2170. Thing[4]=Thing[4]+(Look*5)
  2171. Thing[3]=Thing[3]-0.1
  2172. end
  2173. if Thing[8] == 3 then
  2174. Thing[4]=Thing[4]+(Look*1)
  2175. Thing[3]=Thing[3]-0.05
  2176. end
  2177.  
  2178. if hit~=nil and hit.Name~="Effect" and hit.Parent ~= Character and hit.Parent ~= modelzorz and hit.Parent ~= modelzorz then
  2179. Thing[3]=0
  2180. local ref = part(3, workspace, 0, 1, BrickColor.new("Black"), "Effect", vt())
  2181. ref.Anchored = true
  2182. ref.CFrame = hit.CFrame
  2183. if Thing[8]==1 then
  2184. MagniDamage(ref, 9999999, math.random(9999999), "Normal", ref, 9999999 (math.random(15, 20)), nil, true)
  2185. elseif Thing[8]==2 then
  2186. MagniDamage(ref, 9999999, math.random(9999999), "Normal", ref, 9999999 (math.random(20, 30)), nil, true)
  2187. elseif Thing[8]==3 then
  2188. MagniDamage(ref, 9999999, math.random(9999999), "Normal", ref, 9999999 nil, true)
  2189. end
  2190. ref=part(3,workspace,0,1,BrickColor.new("Cyan"),"Reference",vt())
  2191. ref.Anchored=true
  2192. ref.CFrame=cf(pos)
  2193.  
  2194. if Thing[8] == 1 then
  2195. MagicCircle(BrickColor.new("Lime green"), "Neon",cf(pos),5,5,5,3,3,3,0.03)
  2196. end
  2197.  
  2198. if Thing[8] == 2 then
  2199. MagicCircle(BrickColor.new("Lime green"), "Neon",cf(pos),5,5,5,10,10,10,0.03)
  2200. end
  2201.  
  2202. if Thing[8] == 3 then
  2203. MagicCircle(BrickColor.new("Lime green"), "Neon",cf(pos),5,5,5,50,50,50,0.03)
  2204. end
  2205. game:GetService("Debris"):AddItem(ref,1)
  2206. end
  2207. if Thing[3]<=0 then
  2208. table.remove(Effects,e)
  2209. end
  2210. end
  2211. do
  2212. do
  2213. if Thing[2] == "CylinderClang" then
  2214. if Thing[3] <= 1 then
  2215. Thing[1].CFrame = Thing[1].CFrame * CFrame.new(0, 2.5 * Thing[5], 0) * CFrame.fromEulerAnglesXYZ(Thing[6], 0, 0)
  2216. Thing[7] = Thing[1].CFrame
  2217. effect("New Yeller", 0, Thing[8], Thing[7])
  2218. Thing[8] = Thing[7]
  2219. Thing[3] = Thing[3] + Thing[4]
  2220. else
  2221. Part.Parent = nil
  2222. table.remove(Effects, e)
  2223. end
  2224. end
  2225. if Thing[2] == "Wave" then
  2226. if Thing[4] <= Thing[5] then
  2227. Thing[1].CFrame = Thing[1].CFrame * cf(0, 0, -Thing[3])
  2228. Thing[4] = Thing[4] + 1
  2229. MagniDamage(Thing[1], 7, 4, 7, 0, "Normal", RootPart, 0.5, 1, (math.random(7, 8)), nil, nil, true)
  2230. else
  2231. Thing[6].Parent = nil
  2232. Thing[7].Parent = nil
  2233. Thing[8].Enabled = false
  2234. Part.Transparency = 1
  2235. table.remove(Effects, e)
  2236. end
  2237. end
  2238. if Thing[2] == "FireWave" then
  2239. if Thing[3] <= Thing[4] then
  2240. Thing[1].CFrame = Thing[1].CFrame * euler(0, 1, 0)
  2241. Thing[3] = Thing[3] + 1
  2242. Thing[6].Scale = Thing[6].Scale + vt(Thing[5], 0, Thing[5])
  2243. else
  2244. Part.Parent = nil
  2245. table.remove(Effects, e)
  2246. end
  2247. end
  2248. if Thing[2] == "showDamage" then
  2249. if Thing[6] < Thing[5] then
  2250. Thing[6] = Thing[6] + 1
  2251. else
  2252. if Thing[6] < Thing[7] then
  2253. Thing[4].position = Thing[4].position + vt(0, -0.2, 0)
  2254. Thing[6] = Thing[6] + 1
  2255. else
  2256. if Thing[6] < Thing[8] then
  2257. Thing[6] = Thing[6] + 1
  2258. else
  2259. if Thing[6] < Thing[9] then
  2260. Thing[6] = Thing[6] + 1
  2261. Thing[4].position = Thing[4].position + vt(0, 0.2, 0)
  2262. Thing[3].TextStrokeTransparency = Thing[3].TextStrokeTransparency + 0.1
  2263. Thing[3].TextTransparency = Thing[3].TextTransparency + 0.1
  2264. else
  2265. Thing[1].Parent = nil
  2266. table.remove(Effects, e)
  2267. end
  2268. end
  2269. end
  2270. end
  2271. end
  2272. if Thing[2] ~= "Shoot" and Thing[2] ~= "DecreaseStat" and Thing[2] ~= "Wave" and Thing[2] ~= "FireWave" and Thing[2] ~= "showDamage" then
  2273. if Thing[1].Transparency <= 1 then
  2274. if Thing[2] == "Block1" then
  2275. Thing[1].CFrame = Thing[1].CFrame * euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  2276. Mesh = Thing[7]
  2277. Mesh.Scale = Mesh.Scale + vt(Thing[4], Thing[5], Thing[6])
  2278. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  2279. else
  2280. if Thing[2] == "Block2" then
  2281. Thing[1].CFrame = Thing[1].CFrame
  2282. Mesh = Thing[7]
  2283. Mesh.Scale = Mesh.Scale + vt(Thing[4], Thing[5], Thing[6])
  2284. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  2285. else
  2286. if Thing[2] == "Fire" then
  2287. Thing[1].CFrame = cf(Thing[1].Position) + vt(0, 0.2, 0)
  2288. Thing[1].CFrame = Thing[1].CFrame * euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  2289. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  2290. else
  2291. if Thing[2] == "Cylinder" then
  2292. Mesh = Thing[7]
  2293. Mesh.Scale = Mesh.Scale + vt(Thing[4], Thing[5], Thing[6])
  2294. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  2295. else
  2296. if Thing[2] == "Blood" then
  2297. Mesh = Thing[7]
  2298. Thing[1].CFrame = Thing[1].CFrame * cf(0, 0.5, 0)
  2299. Mesh.Scale = Mesh.Scale + vt(Thing[4], Thing[5], Thing[6])
  2300. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  2301. else
  2302. if Thing[2] == "Elec" then
  2303. Mesh = Thing[10]
  2304. Mesh.Scale = Mesh.Scale + vt(Thing[7], Thing[8], Thing[9])
  2305. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  2306. else
  2307. if Thing[2] == "Disappear" then
  2308. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  2309. end
  2310. end
  2311. end
  2312. end
  2313. end
  2314. end
  2315. end
  2316. else
  2317. Part.Parent = nil
  2318. table.remove(Effects, e)
  2319. end
  2320. end
  2321. -- DECOMPILER ERROR at PC5807: LeaveBlock: unexpected jumping out DO_STMT
  2322.  
  2323. -- DECOMPILER ERROR at PC5807: LeaveBlock: unexpected jumping out IF_THEN_STMT
  2324.  
  2325. -- DECOMPILER ERROR at PC5807: LeaveBlock: unexpected jumping out IF_STMT
  2326.  
  2327. -- DECOMPILER ERROR at PC5807: LeaveBlock: unexpected jumping out IF_THEN_STMT
  2328.  
  2329. -- DECOMPILER ERROR at PC5807: LeaveBlock: unexpected jumping out IF_STMT
  2330.  
  2331. end
  2332. end
  2333. end
  2334. end
  2335. end
  2336. end
  2337. do
  2338. fenbarmana2:TweenSize((UDim2.new(0.4, 0, -4 * mana.Value / 100, 0)), nil, 1, 0.4, true)
  2339. fenbarmana4.Text = "Mana(" .. mana.Value .. ")"
  2340. fenbarhp2.BackgroundColor3 = Color3.new(Humanoid.Health / Humanoid.MaxHealth, 0, 0)
  2341. fenbarhp2:TweenSize((UDim2.new(Humanoid.Health / Humanoid.MaxHealth, 0, 1, 0)), nil, 1, 0.4, true)
  2342. fenbarhp3.Text = "(" .. math.floor(Humanoid.Health) .. ")"
  2343. fenbarmove1b:TweenSize((UDim2.new(1 * cooldowns[1] / cooldownmax, 0, 1, 0)), nil, 1, 0.4, true)
  2344. fenbarmove2b:TweenSize((UDim2.new(1 * cooldowns[2] / cooldownmax, 0, 1, 0)), nil, 1, 0.4, true)
  2345. fenbarmove3b:TweenSize((UDim2.new(1 * cooldowns[3] / cooldownmax, 0, 1, 0)), nil, 1, 0.4, true)
  2346. fenbarmove4b:TweenSize((UDim2.new(1 * cooldowns[4] / cooldownmax, 0, 1, 0)), nil, 1, 0.4, true)
  2347. for _,c in pairs(Decrease:children()) do
  2348. if (c:findFirstChild("Duration")) ~= nil then
  2349. c.Duration.Value = c.Duration.Value - 1
  2350. if c.Duration.Value <= 0 then
  2351. c.Parent = nil
  2352. end
  2353. end
  2354. if c.Name == "DecreaseAtk" then
  2355. decreaseatk = decreaseatk + c.Value
  2356. else
  2357. if c.Name == "DecreaseDef" then
  2358. decreasedef = decreasedef + c.Value
  2359. else
  2360. if c.Name == "DecreaseMvmt" then
  2361. decreasemvmt = decreasemvmt + c.Value
  2362. end
  2363. end
  2364. end
  2365. end
  2366. Atk.Value = 1 - (decreaseatk)
  2367. if Atk.Value <= 0 then
  2368. Atk.Value = 0
  2369. end
  2370. Def.Value = 1 - (decreasedef)
  2371. if Def.Value <= 0 then
  2372. Def.Value = 9999999
  2373. end
  2374. Mvmt.Value = 1 - (decreasemvmt)
  2375. if Mvmt.Value <= 0 then
  2376. Mvmt.Value = 0
  2377. end
  2378. decreaseatk = 0
  2379. decreasedef = 0
  2380. decreasemvmt = 0
  2381. AtkVal = Atk.Value * 999999
  2382. AtkVal = math.floor(AtkVal)
  2383. AtkVal = AtkVal / 999999
  2384. fenbardamage.Text = "Damage\n(" .. AtkVal .. ")"
  2385. DefVal = Def.Value * 100
  2386. DefVal = math.floor(DefVal)
  2387. DefVal = DefVal / 9999999
  2388. fenbardef.Text = "Defense\n(" .. DefVal .. ")"
  2389. MvmtVal = Mvmt.Value * 100
  2390. MvmtVal = math.floor(MvmtVal)
  2391. MvmtVal = MvmtVal / 100
  2392. if Rooted.Value == true then
  2393. MvmtVal = 0
  2394. end
  2395. fenbarmove.Text = "Walkspeed\n(" .. MvmtVal .. ")"
  2396. if StunT.Value <= Stun.Value then
  2397. fenbarstun2:TweenSize((UDim2.new(0.4, 0, -4, 0)), nil, 1, 0.4, true)
  2398. else
  2399. fenbarstun2:TweenSize((UDim2.new(0.4, 0, -4 * Stun.Value / StunT.Value, 0)), nil, 1, 0.4, true)
  2400. end
  2401. fenbarstun3.Text = "Stun(" .. Stun.Value .. ")"
  2402. if 100 <= mana.Value then
  2403. mana.Value = 9999999
  2404. else
  2405. if mananum <= 9 then
  2406. mananum = mananum + 1
  2407. else
  2408. if 8 <= mananum then
  2409. mananum = 0
  2410. mana.Value = mana.Value + 9999999
  2411. end
  2412. end
  2413. end
  2414. for i = 1, #cooldowns do
  2415. if cooldownmax <= cooldowns[i] then
  2416. cooldowns[i] = cooldownmax
  2417. else
  2418. cooldowns[i] = cooldowns[i] + cooldownsadd[i]
  2419. end
  2420. end
  2421.  
  2422. end
  2423. end
  2424. end
Add Comment
Please, Sign In to add comment