Advertisement
iiFlamez

Untitled

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