Dark_EccentricYT

Untitled

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