Advertisement
memberhero

Idk

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