Dark_EccentricYT

Untitled

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