AgentVK

Untitled

Sep 20th, 2017
191
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 168.23 KB | None | 0 0
  1. --//====================================================\\--
  2. --|| CREATED BY BRANNON1964802, EDITED BY KARMARANGE
  3. --\\====================================================//--
  4.  
  5. --[[c=script.Parent:getChildren()
  6. for i = 1, #c do
  7. if c[i].className=="BodyColors" then
  8. c[i]:Remove()
  9. end
  10. end]]--
  11. local e = script.Parent:FindFirstChild("Body Colors")
  12. if e then
  13. e:Destroy()
  14. end
  15.  
  16. wait(1 / 60)
  17.  
  18. intro = true
  19. Player = game:GetService("Players").LocalPlayer
  20. PlayerGui = Player.PlayerGui
  21. Cam = workspace.CurrentCamera
  22. Backpack = Player.Backpack
  23. Character = Player.Character
  24. Humanoid = Character.Humanoid
  25. Mouse = Player:GetMouse()
  26. RootPart = Character["HumanoidRootPart"]
  27. Torso = Character["Torso"]
  28. Head = Character["Head"]
  29. RightArm = Character["Right Arm"]
  30. LeftArm = Character["Left Arm"]
  31. RightLeg = Character["Right Leg"]
  32. LeftLeg = Character["Left Leg"]
  33. RootJoint = RootPart["RootJoint"]
  34. Neck = Torso["Neck"]
  35. RightShoulder = Torso["Right Shoulder"]
  36. LeftShoulder = Torso["Left Shoulder"]
  37. RightHip = Torso["Right Hip"]
  38. LeftHip = Torso["Left Hip"]
  39. Humanoid.WalkSpeed = 0
  40. Humanoid.JumpPower = 0
  41. Humanoid.MaxHealth = "inf"
  42. Humanoid.Health = "inf"
  43. kkk = Instance.new("Sound",Character)
  44. kkk.Volume = 0.7
  45. kkk.PlaybackSpeed = 1
  46. kkk.Pitch = 1
  47. kkk.SoundId = "rbxassetid://700037500"
  48. kkk:Play()
  49. kkk.Name = "BackgroundMusic"
  50. kkk.Looped = true
  51. Head.BrickColor = BrickColor.new("Really black")
  52. RightArm.BrickColor = BrickColor.new("Really black")
  53. LeftArm.BrickColor = BrickColor.new("Really black")
  54. LeftLeg.BrickColor = BrickColor.new("Really black")
  55. RightLeg.BrickColor = BrickColor.new("Really black")
  56. Torso.BrickColor = BrickColor.new("Really black")
  57. script.Parent.Shirt.ShirtTemplate = "rbxassetid://954263345"
  58. script.Parent.Pants.PantsTemplate = "rbxassetid://691836956"
  59. c=script.Parent:getChildren()
  60. for i = 1, #c do
  61. if c[i].className=="CharacterMesh" then
  62. c[i]:Remove()
  63. end
  64. end
  65. wait(0.0005)
  66. Humanoid.WalkSpeed = 35
  67. Humanoid.JumpPower = 85
  68. Head.BrickColor = BrickColor.new("Really black")
  69. RightArm.BrickColor = BrickColor.new("Really black")
  70. LeftArm.BrickColor = BrickColor.new("Really black")
  71. LeftLeg.BrickColor = BrickColor.new("Really black")
  72. RightLeg.BrickColor = BrickColor.new("Really black")
  73. Torso.BrickColor = BrickColor.new("Really black")
  74. local hat = Instance.new("Hat")
  75. hat.AttachmentPos = Vector3.new(0,-1.0,0)
  76. hat.AttachmentForward = Vector3.new(0,0,-1)
  77. hat.AttachmentRight = Vector3.new(1,0,0)
  78. hat.AttachmentUp = Vector3.new(0,1,0)
  79. local handle = Instance.new("Part")
  80. handle.Name = "Handle"
  81. local mesh = Instance.new("SpecialMesh")
  82. mesh.MeshId = "http://www.roblox.com/asset/?id=21057410"
  83. mesh.TextureId = "http://www.roblox.com/asset/?id=64444605"
  84. mesh.Scale = Vector3.new(6,6,6)
  85. mesh.Parent = handle
  86. handle.Parent = hat
  87.  
  88.  
  89. IT = Instance.new
  90. CF = CFrame.new
  91. VT = Vector3.new
  92. RAD = math.rad
  93. C3 = Color3.new
  94. UD2 = UDim2.new
  95. BRICKC = BrickColor.new
  96. ANGLES = CFrame.Angles
  97. EULER = CFrame.fromEulerAnglesXYZ
  98. COS = math.cos
  99. ACOS = math.acos
  100. SIN = math.sin
  101. ASIN = math.asin
  102. ABS = math.abs
  103. MRANDOM = math.random
  104. FLOOR = math.floor
  105.  
  106.  
  107. function reap(t)
  108. if t.Name ~= "Corpse" and t:FindFirstChild("Torso") then
  109. local s = Instance.new("Model")
  110. s.Name = t.Name
  111. local larm = t:FindFirstChild("Left Arm")
  112. local rarm = t:FindFirstChild("Right Arm")
  113. local lleg = t:FindFirstChild("Left Leg")
  114. local rleg = t:FindFirstChild("Right Leg")
  115. s.Parent = workspace
  116. local tors = Instance.new("Part")
  117. tors.Name = "Torso"
  118. tors.Size = t.Torso.Size
  119. tors.Parent = s
  120. tors.CFrame = t.Torso.CFrame
  121. local LL = Instance.new("Part")
  122. LL.Name = "Left Leg"
  123. LL.Size = lleg.Size
  124. LL.Parent = s
  125. LL.CFrame = lleg.CFrame
  126. LL.CanCollide = true
  127. local RL = Instance.new("Part")
  128. RL.Name = "Right Leg"
  129. RL.Size = rleg.Size
  130. RL.Parent = s
  131. RL.CFrame = rleg.CFrame
  132. RL.CanCollide = true
  133. local RA = Instance.new("Part")
  134. RA.Name = "Right Arm"
  135. RA.Size = rarm.Size
  136. RA.Parent = s
  137. RA.CFrame = rarm.CFrame
  138. RA.CanCollide = true
  139. local LA = Instance.new("Part")
  140. LA.Name = "Left Arm"
  141. LA.Size = larm.Size
  142. LA.Parent = s
  143. LA.CFrame = larm.CFrame
  144. LA.CanCollide = true
  145. local head = Instance.new("Part")
  146. head.Name = "Head"
  147. head.Size = t.Head.Size
  148. head.Parent = s
  149. head.CFrame = t.Head.CFrame
  150. local tor = Instance.new("CharacterMesh")
  151. tor.Parent = s
  152. tor.BodyPart = "Torso"
  153. tor.MeshId = "36780113"
  154. tor.OverlayTextureId = "494636944"
  155. local tor = Instance.new("CharacterMesh")
  156. tor.Parent = s
  157. tor.BodyPart = "RightLeg"
  158. tor.MeshId = "36780195"
  159. tor.OverlayTextureId = "494636944"
  160. local tor = Instance.new("CharacterMesh")
  161. tor.Parent = s
  162. tor.BodyPart = "LeftLeg"
  163. tor.MeshId = "36780079"
  164. tor.OverlayTextureId = "494636944"
  165. local tor = Instance.new("CharacterMesh")
  166. tor.Parent = s
  167. tor.BodyPart = "LeftArm"
  168. tor.MeshId = "36780032"
  169. tor.OverlayTextureId = "494636944"
  170. local tor = Instance.new("CharacterMesh")
  171. tor.Parent = s
  172. tor.BodyPart = "RightArm"
  173. tor.MeshId = "36780156"
  174. tor.OverlayTextureId = "494636944"
  175. local tor = Instance.new("SpecialMesh")
  176. tor.Scale = Vector3.new(t.Head.Size.Z,t.Head.Size.Z,t.Head.Size.Z)
  177. tor.MeshType = "FileMesh"
  178. tor.MeshId = "http://www.roblox.com/asset/?id=181343290"
  179. tor.TextureId = "rbxassetid://494637850"
  180. tor.Parent = head
  181. local human = t.Humanoid
  182. human.Parent = s
  183. human.DisplayDistanceType = "None"
  184. t:Destroy()
  185. end
  186. end
  187.  
  188. --//=================================\\
  189. --|| CUSTOMIZATION
  190. --\\=================================//
  191.  
  192. Class_Name = "Sorcus"
  193. Weapon_Name = "Sword"
  194.  
  195. Custom_Colors = {
  196. Custom_Color_1 = BRICKC("Institutional white"); --1st color for the weapon.
  197. Custom_Color_2 = BRICKC("Institutional white"); --2nd color for the weapon.
  198.  
  199. Custom_Color_3 = BRICKC("Institutional white"); --Color for the abilities.
  200. Custom_Color_4 = BRICKC("Institutional white"); --Color for the secondary bar.
  201. Custom_Color_5 = BRICKC("Institutional white"); --Color for the mana bar.
  202. Custom_Color_6 = BRICKC("Institutional white"); --Color for the health bar.
  203. Custom_Color_7 = BRICKC("Institutional white"); --Color for the stun bar.
  204.  
  205. Custom_Color_8 = BRICKC("Institutional white"); --Background for the mana bar.
  206. Custom_Color_9 = BRICKC("Institutional white"); --Background for the secondary mana bar.
  207. Custom_Color_10 = BRICKC("Institutional white"); --Background for the stun bar.
  208. Custom_Color_11 = BRICKC("Institutional white"); --Background for the health bar.
  209. Custom_Color_12 = BRICKC("Institutional white"); --Background for the abilities.
  210. }
  211.  
  212. Mana_Bar_Background_Transparency = 0 --Transparency for the background of the mana bar.
  213. Secondary_Mana_Bar_Background_Transparency = 0 --Transparency for the background of the secondary mana bar.
  214. Health_Bar_Background_Transparency = 0 --Transparency for the background of the health bar.
  215. Stun_Bar_Background_Transparency = 0 --Transparency for the background of the stun bar.
  216. Ability_Background_Transparency = 0 --Transparency for the background of the abilities.
  217. Stat_Background_Transparency = 0 --Transparency for the background of the stats.
  218.  
  219. Player_Size = 5 --Size of the player.
  220. Animation_Speed = 3
  221. Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60)
  222.  
  223. Enable_Gui = false --Enables or disables the Weapon Gui. Also functions as hiding or showing the Gui.
  224. Enable_Stats = false --Enables or disables stats.
  225. Put_Stats_In_Character = false --Places stats in Character.
  226. Enable_Stagger_Hit = false --Enables or disables staggering when hitting a hitbox of some sort.
  227. Play_Hitbox_Hit_Sound = true --Plays a hit sound when hitting a hitbox of some sort.
  228. Enable_Stagger = false --Enables or disables staggering.
  229. Enable_Stun = false --Enables or disables the stun mechanic.
  230. Enable_Abilities = false --Enables abilites with cooldowns and mana costs.
  231. Enable_Secondary_Bar = false --Enables the secondary mana bar, if true.
  232.  
  233. Start_Equipped = false --Starts the player equipped with their weapon.
  234. Start_Equipped_With_Equipped_Animation = false --Used in conjunction with the above option. Starts your equip animation.
  235. Can_Equip_Or_Unequip = true --Enables or disables the ability to unequip or equip your weapon.
  236. Disable_Animator = true --Disables the Animator in the humanoid.
  237. Disable_Animate = true --Disables the Animate script in the character.
  238. Disable_Moving_Arms = false --Keeps the arms from moving around.
  239. Use_Motors_Instead_Of_Welds = false --Uses motors instead of welds to disable moving arms.
  240. Walkspeed_Depends_On_Movement_Value = false --Walkspeed depends on movement value. Self-explanatory.
  241. Disable_Jump = false --Disables jumping.
  242. Use_HopperBin = true --Uses a hopperbin to do things.
  243.  
  244. Cooldown_1 = 0 --Cooldowns for abilites.
  245. Cooldown_2 = 0
  246. Cooldown_3 = 0
  247. Cooldown_4 = 0
  248. Skill_1_Mana_Cost = 0 --How much mana is required to use the skill.
  249. Skill_2_Mana_Cost = 0
  250. Skill_3_Mana_Cost = 0
  251. Skill_4_Mana_Cost = 0
  252. Max_Mana = 0 --Maximum amount of mana you can have.
  253. Max_Secondary_Mana = 0 --Maximum amount of secondary mana you can have.
  254. Mana_Name = "Mana" --Name for the mana bar.
  255. Secondary_Mana_Name = "Block" --Name for the secondary mana bar.
  256. Max_Stun = 1 --Maximum amount of stun you can have.
  257. Recover_Mana = 0 --How much mana you gain.
  258. Mana_Regen_Mode = "1" --Basically switches from one mana regen system to another.
  259. Secondary_Mana_Regen_Mode = "1" --Basically switches from one secondary mana regen system to another.
  260. Stun_Lose_Mode = "1" --Basically switches from one secondary stun loss system to another.
  261. Recover_Secondary_Mana = 0 --How much secondary mana you gain.
  262. Lose_Stun = 0 --How much stun you lose.
  263. Stun_Wait = 0 --Delay between losing stun.
  264. Mana_Wait = 0 --Delay between gaining mana.
  265. Secondary_Mana_Wait = 0 --Delay between gaining secondary mana.
  266. Menu_Update_Speed = 0 --How fast the Weapon Gui will update.
  267. Constant_Update = false --Removes the delay between updating the Weapon GUI.
  268. Show_Stats = false --Hides or shows stats.
  269. Stat_Offset = 0.74 --For cosmetic purposes. {0.74, 0.78}
  270.  
  271. --//=================================\\
  272. --|| END OF CUSTOMIZATION
  273. --\\=================================//
  274.  
  275.  
  276.  
  277.  
  278.  
  279. --//=================================\\
  280. --|| USEFUL VALUES
  281. --\\=================================//
  282.  
  283. local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  284. local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  285. local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0))
  286. local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0))
  287. local CO1 = 0
  288. local CO2 = 0
  289. local CO3 = 0
  290. local CO4 = 0
  291. local CHANGEDEFENSE = 0
  292. local CHANGEDAMAGE = 0
  293. local CHANGEMOVEMENT = 0
  294. local ANIM = "Idle"
  295. local ATTACK = false
  296. local EQUIPPED = false
  297. local HOLD = false
  298. local COMBO = 2
  299. local LASTPOINT = nil
  300. local BLCF = nil
  301. local SCFR = nil
  302. local STAGGERHITANIM = false
  303. local STAGGERANIM = false
  304. local STUNANIM = false
  305. local CRITCHANCENUMBER = 0
  306. local IDLENUMBER = 0
  307. local DONUMBER = 0
  308. local HANDIDLE = false
  309. local SINE = 0
  310. local CHANGE = 1 / Animation_Speed
  311. local WALKINGANIM = false
  312. local WALK = 0
  313. local DISABLEJUMPING = false
  314. local HASBEENBLOCKED = false
  315. local STUNDELAYNUMBER = 0
  316. local MANADELAYNUMBER = 0
  317. local SECONDARYMANADELAYNUMBER = 0
  318. local ROBLOXIDLEANIMATION = IT("Animation")
  319. ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation"
  320. ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571"
  321. --ROBLOXIDLEANIMATION.Parent = Humanoid
  322. local WEAPONGUI = IT("ScreenGui", nil)
  323. WEAPONGUI.Name = "Weapon GUI"
  324. local WEAPONTOOL = IT("HopperBin", nil)
  325. WEAPONTOOL.Name = Weapon_Name
  326. local Weapon = IT("Model")
  327. Weapon.Name = Weapon_Name
  328. local Effects = IT("Folder", Weapon)
  329. Effects.Name = "Effects"
  330. local ANIMATOR = Humanoid.Animator
  331. local ANIMATE = Character.Animate
  332. local HITPLAYERSOUNDS = {--[["199149137", "199149186", "199149221", "199149235", "199149269", "199149297"--]]"263032172", "263032182", "263032200", "263032221", "263032252", "263033191"}
  333. local HITARMORSOUNDS = {"199149321", "199149338", "199149367", "199149409", "199149452"}
  334. local HITWEAPONSOUNDS = {"199148971", "199149025", "199149072", "199149109", "199149119"}
  335. local HITBLOCKSOUNDS = {"199148933", "199148947"}
  336.  
  337. --//=================================\\
  338. --\\=================================//
  339.  
  340.  
  341.  
  342.  
  343.  
  344. --//=================================\\
  345. --|| STATS
  346. --\\=================================//
  347.  
  348. if Character:FindFirstChild("Stats") ~= nil then
  349. Character:FindFirstChild("Stats").Parent = nil
  350. end
  351.  
  352. local Stats = IT("Folder", nil)
  353. Stats.Name = "Stats"
  354. local ChangeStat = IT("Folder", Stats)
  355. ChangeStat.Name = "ChangeStat"
  356. local Defense = IT("NumberValue", Stats)
  357. Defense.Name = "Defense"
  358. Defense.Value = 1
  359. local Movement = IT("NumberValue", Stats)
  360. Movement.Name = "Movement"
  361. Movement.Value = 1
  362. local Damage = IT("NumberValue", Stats)
  363. Damage.Name = "Damage"
  364. Damage.Value = 1
  365. local Mana = IT("NumberValue", Stats)
  366. Mana.Name = "Mana"
  367. Mana.Value = 0
  368. local SecondaryMana = IT("NumberValue", Stats)
  369. SecondaryMana.Name = "SecondaryMana"
  370. SecondaryMana.Value = 0
  371. local CanCrit = IT("BoolValue", Stats)
  372. CanCrit.Name = "CanCrit"
  373. CanCrit.Value = false
  374. local CritChance = IT("NumberValue", Stats)
  375. CritChance.Name = "CritChance"
  376. CritChance.Value = 20
  377. local CanPenetrateArmor = IT("BoolValue", Stats)
  378. CanPenetrateArmor.Name = "CanPenetrateArmor"
  379. CanPenetrateArmor.Value = false
  380. local AntiTeamKill = IT("BoolValue", Stats)
  381. AntiTeamKill.Name = "AntiTeamKill"
  382. AntiTeamKill.Value = false
  383. local Rooted = IT("BoolValue", Stats)
  384. Rooted.Name = "Rooted"
  385. Rooted.Value = false
  386. local Block = IT("BoolValue", Stats)
  387. Block.Name = "Block"
  388. Block.Value = false
  389. local RecentEnemy = IT("ObjectValue", Stats)
  390. RecentEnemy.Name = "RecentEnemy"
  391. RecentEnemy.Value = nil
  392. local StaggerHit = IT("BoolValue", Stats)
  393. StaggerHit.Name = "StaggerHit"
  394. StaggerHit.Value = false
  395. local Stagger = IT("BoolValue", Stats)
  396. Stagger.Name = "Stagger"
  397. Stagger.Value = false
  398. local Stun = IT("BoolValue", Stats)
  399. Stun.Name = "Stun"
  400. Stun.Value = false
  401. local StunValue = IT("NumberValue", Stats)
  402. StunValue.Name = "StunValue"
  403. StunValue.Value = 0
  404.  
  405. if Enable_Stats == true and Put_Stats_In_Character == true then
  406. Stats.Parent = Character
  407. end
  408.  
  409. --//=================================\\
  410. --\\=================================//
  411.  
  412.  
  413.  
  414.  
  415.  
  416. --//=================================\\
  417. --|| DEBUFFS / BUFFS
  418. --\\=================================//
  419.  
  420. local DEFENSECHANGE1 = IT("NumberValue", ChangeStat)
  421. DEFENSECHANGE1.Name = "ChangeDefense"
  422. DEFENSECHANGE1.Value = 0
  423.  
  424. local MOVEMENTCHANGE1 = IT("NumberValue", nil)
  425. MOVEMENTCHANGE1.Name = "ChangeMovement"
  426. MOVEMENTCHANGE1.Value = 0
  427.  
  428. --//=================================\\
  429. --\\=================================//
  430.  
  431.  
  432.  
  433.  
  434.  
  435. --//=================================\\
  436. --|| SAZERENOS' ARTIFICIAL HEARTBEAT
  437. --\\=================================//
  438.  
  439. ArtificialHB = Instance.new("BindableEvent", script)
  440. ArtificialHB.Name = "ArtificialHB"
  441.  
  442. script:WaitForChild("ArtificialHB")
  443.  
  444. frame = Frame_Speed
  445. tf = 0
  446. allowframeloss = false
  447. tossremainder = false
  448. lastframe = tick()
  449. script.ArtificialHB:Fire()
  450.  
  451. game:GetService("RunService").Heartbeat:connect(function(s, p)
  452. tf = tf + s
  453. if tf >= frame then
  454. if allowframeloss then
  455. script.ArtificialHB:Fire()
  456. lastframe = tick()
  457. else
  458. for i = 1, math.floor(tf / frame) do
  459. script.ArtificialHB:Fire()
  460. end
  461. lastframe = tick()
  462. end
  463. if tossremainder then
  464. tf = 0
  465. else
  466. tf = tf - frame * math.floor(tf / frame)
  467. end
  468. end
  469. end)
  470.  
  471. --//=================================\\
  472. --\\=================================//
  473.  
  474.  
  475.  
  476.  
  477.  
  478. --//=================================\\
  479. --|| SOME FUNCTIONS
  480. --\\=================================//
  481.  
  482. function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS)
  483. return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS)
  484. end
  485.  
  486. function PositiveAngle(NUMBER)
  487. if NUMBER >= 0 then
  488. NUMBER = 0
  489. end
  490. return NUMBER
  491. end
  492.  
  493. function NegativeAngle(NUMBER)
  494. if NUMBER <= 0 then
  495. NUMBER = 0
  496. end
  497. return NUMBER
  498. end
  499.  
  500. function Swait(NUMBER)
  501. if NUMBER == 0 or NUMBER == nil then
  502. ArtificialHB.Event:wait()
  503. else
  504. for i = 1, NUMBER do
  505. ArtificialHB.Event:wait()
  506. end
  507. end
  508. end
  509.  
  510. function QuaternionFromCFrame(cf)
  511. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  512. local trace = m00 + m11 + m22
  513. if trace > 0 then
  514. local s = math.sqrt(1 + trace)
  515. local recip = 0.5 / s
  516. return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  517. else
  518. local i = 0
  519. if m11 > m00 then
  520. i = 1
  521. end
  522. if m22 > (i == 0 and m00 or m11) then
  523. i = 2
  524. end
  525. if i == 0 then
  526. local s = math.sqrt(m00 - m11 - m22 + 1)
  527. local recip = 0.5 / s
  528. return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  529. elseif i == 1 then
  530. local s = math.sqrt(m11 - m22 - m00 + 1)
  531. local recip = 0.5 / s
  532. return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  533. elseif i == 2 then
  534. local s = math.sqrt(m22 - m00 - m11 + 1)
  535. local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  536. end
  537. end
  538. end
  539.  
  540. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  541. local xs, ys, zs = x + x, y + y, z + z
  542. local wx, wy, wz = w * xs, w * ys, w * zs
  543. local xx = x * xs
  544. local xy = x * ys
  545. local xz = x * zs
  546. local yy = y * ys
  547. local yz = y * zs
  548. local zz = z * zs
  549. 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))
  550. end
  551.  
  552. function QuaternionSlerp(a, b, t)
  553. local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  554. local startInterp, finishInterp;
  555. if cosTheta >= 0.0001 then
  556. if (1 - cosTheta) > 0.0001 then
  557. local theta = ACOS(cosTheta)
  558. local invSinTheta = 1 / SIN(theta)
  559. startInterp = SIN((1 - t) * theta) * invSinTheta
  560. finishInterp = SIN(t * theta) * invSinTheta
  561. else
  562. startInterp = 1 - t
  563. finishInterp = t
  564. end
  565. else
  566. if (1 + cosTheta) > 0.0001 then
  567. local theta = ACOS(-cosTheta)
  568. local invSinTheta = 1 / SIN(theta)
  569. startInterp = SIN((t - 1) * theta) * invSinTheta
  570. finishInterp = SIN(t * theta) * invSinTheta
  571. else
  572. startInterp = t - 1
  573. finishInterp = t
  574. end
  575. end
  576. 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
  577. end
  578.  
  579. function Clerp(a, b, t)
  580. local qa = {QuaternionFromCFrame(a)}
  581. local qb = {QuaternionFromCFrame(b)}
  582. local ax, ay, az = a.x, a.y, a.z
  583. local bx, by, bz = b.x, b.y, b.z
  584. local _t = 1 - t
  585. return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  586. end
  587.  
  588. function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME)
  589. local frame = IT("Frame")
  590. frame.BackgroundTransparency = TRANSPARENCY
  591. frame.BorderSizePixel = BORDERSIZEPIXEL
  592. frame.Position = POSITION
  593. frame.Size = SIZE
  594. frame.BackgroundColor3 = COLOR
  595. frame.BorderColor3 = BORDERCOLOR
  596. frame.Name = NAME
  597. frame.Parent = PARENT
  598. return frame
  599. end
  600.  
  601. function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME)
  602. local label = IT("TextLabel")
  603. label.BackgroundTransparency = 1
  604. label.Size = UD2(1, 0, 1, 0)
  605. label.Position = UD2(0, 0, 0, 0)
  606. label.TextColor3 = C3(255, 255, 255)
  607. label.TextStrokeTransparency = STROKETRANSPARENCY
  608. label.TextTransparency = TRANSPARENCY
  609. label.FontSize = TEXTFONTSIZE
  610. label.Font = TEXTFONT
  611. label.BorderSizePixel = BORDERSIZEPIXEL
  612. label.TextScaled = true
  613. label.Text = TEXT
  614. label.Name = NAME
  615. label.Parent = PARENT
  616. return label
  617. end
  618.  
  619. function NoOutlines(PART)
  620. PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10
  621. end
  622.  
  623. function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE)
  624. local NEWPART = IT("Part")
  625. NEWPART.formFactor = FORMFACTOR
  626. NEWPART.Reflectance = REFLECTANCE
  627. NEWPART.Transparency = TRANSPARENCY
  628. NEWPART.CanCollide = false
  629. NEWPART.Locked = true
  630. NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR))
  631. NEWPART.Name = NAME
  632. NEWPART.Size = SIZE
  633. NEWPART.Position = Torso.Position
  634. NoOutlines(NEWPART)
  635. NEWPART.Material = MATERIAL
  636. NEWPART:BreakJoints()
  637. NEWPART.Parent = PARENT
  638. return NEWPART
  639. end
  640.  
  641. function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET)
  642. local NEWMESH = IT(MESH)
  643. if MESH == "SpecialMesh" then
  644. NEWMESH.MeshType = MESHTYPE
  645. if MESHID ~= "nil" and MESHID ~= "" then
  646. NEWMESH.MeshId = "http://www.roblox.com/asset/?id=524341960"
  647. end
  648. if TEXTUREID ~= "nil" and TEXTUREID ~= "" then
  649. NEWMESH.TextureId = "http://www.roblox.com/asset/?id=526531650"
  650. end
  651. end
  652. NEWMESH.Offset = OFFSET or VT(0, 0, 0)
  653. NEWMESH.Scale = Vector3.new(1,-1.15,1)
  654. NEWMESH.Parent = PARENT
  655. return NEWMESH
  656. end
  657.  
  658. function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1)
  659. local NEWWELD = IT(TYPE)
  660. NEWWELD.Part0 = PART0
  661. NEWWELD.Part1 = PART1
  662. NEWWELD.C0 = C0
  663. NEWWELD.C1 = C1
  664. NEWWELD.Parent = PARENT
  665. return NEWWELD
  666. end
  667.  
  668. function CreateSound(ID, PARENT, VOLUME, PITCH)
  669. coroutine.resume(coroutine.create(function()
  670. local NEWSOUND = IT("Sound", PARENT)
  671. NEWSOUND.Volume = VOLUME
  672. NEWSOUND.Pitch = PITCH
  673. NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID
  674. Swait()
  675. NEWSOUND:play()
  676. game:GetService("Debris"):AddItem(NEWSOUND, 10)
  677. end))
  678. end
  679.  
  680. function CFrameFromTopBack(at, top, back)
  681. local right = top:Cross(back)
  682. return CF(at.x, at.y, at.z, right.x, top.x, back.x, right.y, top.y, back.y, right.z, top.z, back.z)
  683. end
  684.  
  685. function Lightning(POSITION1, POSITION2, MULTIPLIERTIME, LIGHTNINGDELAY, OFFSET, BRICKCOLOR, MATERIAL, SIZE, TRANSPARENCY, LASTINGTIME)
  686. local MAGNITUDE = (POSITION1 - POSITION2).magnitude
  687. local CURRENTPOSITION = POSITION1
  688. local LIGHTNINGOFFSET = {-OFFSET, OFFSET}
  689. coroutine.resume(coroutine.create(function()
  690. for i = 1, MULTIPLIERTIME do
  691. local LIGHTNINGPART = CreatePart(3, Effects, MATERIAL, 0, 0, BRICKCOLOR,"Effect", VT(SIZE * Player_Size, SIZE * Player_Size, MAGNITUDE / MULTIPLIERTIME))
  692. LIGHTNINGPART.Anchored = true
  693. local LIGHTNINGOFFSET2 = VT(LIGHTNINGOFFSET[MRANDOM(1, 2)], LIGHTNINGOFFSET[MRANDOM(1, 2)], LIGHTNINGOFFSET[MRANDOM(1, 2)])
  694. local LIGHTNINGPOSITION1 = CF(CURRENTPOSITION, POSITION2) * CF(0, 0, MAGNITUDE / MULTIPLIERTIME).p + LIGHTNINGOFFSET2
  695. if MULTIPLIERTIME == i then
  696. local LIGHTNINGMAGNITUDE1 = (CURRENTPOSITION - POSITION2).magnitude
  697. LIGHTNINGPART.Size = VT(SIZE * Player_Size, SIZE * Player_Size, LIGHTNINGMAGNITUDE1)
  698. LIGHTNINGPART.CFrame = CF(CURRENTPOSITION, POSITION2) * CF(0, 0, -LIGHTNINGMAGNITUDE1 / 2)
  699. else
  700. LIGHTNINGPART.CFrame = CF(CURRENTPOSITION, LIGHTNINGPOSITION1) * CF(0, 0, MAGNITUDE / MULTIPLIERTIME / 2)
  701. end
  702. CURRENTPOSITION=LIGHTNINGPART.CFrame * CF(0, 0, MAGNITUDE / MULTIPLIERTIME / 2).p
  703. game.Debris:AddItem(LIGHTNINGPART, LASTINGTIME)
  704. coroutine.resume(coroutine.create(function()
  705. while LIGHTNINGPART.Transparency ~= 1 do
  706. --local StartTransparency = tra
  707. for i=0, 1, LASTINGTIME do
  708. Swait()
  709. LIGHTNINGPART.Transparency = LIGHTNINGPART.Transparency + (0.1 / LASTINGTIME)
  710. end
  711. end
  712. end))
  713. Swait(LIGHTNINGDELAY / Animation_Speed)
  714. end
  715. end))
  716. end
  717.  
  718. function MagicBlock(BRICKCOLOR, MATERIAL, CFRAME, ROTATION, OFFSET, X1, Y1, Z1, X2, Y2, Z2, delay)
  719. local EFFECTPART = CreatePart(3, Effects, MATERIAL, 0, 0, BRICKCOLOR, "Effect", VT())
  720. EFFECTPART.Anchored = true
  721. EFFECTPART.CFrame = CFRAME
  722. local EFFECTMESH = CreateMesh("BlockMesh", EFFECTPART, "", "", "", VT(X1 * Player_Size, Y1 * Player_Size, Z1 * Player_Size), OFFSET * Player_Size)
  723. game:GetService("Debris"):AddItem(EFFECTPART, 10)
  724. coroutine.resume(coroutine.create(function(PART, MESH)
  725. for i = 0, 1, delay do
  726. Swait()
  727. PART.CFrame = PART.CFrame * ROTATION
  728. PART.Transparency = i
  729. MESH.Scale = MESH.Scale + VT(X2 * Player_Size, Y2 * Player_Size, Z2 * Player_Size)
  730. end
  731. PART.Parent = nil
  732. end), EFFECTPART, EFFECTMESH)
  733. end
  734.  
  735. function MagicSphere(BRICKCOLOR, MATERIAL, CFRAME, ROTATION, OFFSET, X1, Y1, Z1, X2, Y2, Z2, delay)
  736. local EFFECTPART = CreatePart(3, Effects, MATERIAL, 0, 0, BRICKCOLOR, "Effect", VT())
  737. EFFECTPART.Anchored = true
  738. EFFECTPART.CFrame = CFRAME
  739. local EFFECTMESH = CreateMesh("SpecialMesh", EFFECTPART, "Sphere", "", "", VT(X1 * Player_Size, Y1 * Player_Size, Z1 * Player_Size), OFFSET * Player_Size)
  740. game:GetService("Debris"):AddItem(EFFECTPART, 10)
  741. coroutine.resume(coroutine.create(function(PART, MESH)
  742. for i = 0, 1, delay do
  743. Swait()
  744. PART.CFrame = PART.CFrame * ROTATION
  745. PART.Transparency = i
  746. MESH.Scale = MESH.Scale + VT(X2 * Player_Size, Y2 * Player_Size, Z2 * Player_Size)
  747. end
  748. PART.Parent = nil
  749. end), EFFECTPART, EFFECTMESH)
  750. end
  751.  
  752. function MagicCylinder(BRICKCOLOR, MATERIAL, CFRAME, ROTATION, OFFSET, X1, Y1, Z1, X2, Y2, Z2, delay)
  753. local EFFECTPART = CreatePart(3, Effects, MATERIAL, 0, 0, BRICKCOLOR, "Effect", VT())
  754. EFFECTPART.Anchored = true
  755. EFFECTPART.CFrame = CFRAME
  756. local EFFECTMESH = CreateMesh("CylinderMesh", EFFECTPART, "", "", "", VT(X1 * Player_Size, Y1 * Player_Size, Z1 * Player_Size), OFFSET * Player_Size)
  757. game:GetService("Debris"):AddItem(EFFECTPART, 10)
  758. coroutine.resume(coroutine.create(function(PART, MESH)
  759. for i = 0, 1, delay do
  760. Swait()
  761. PART.CFrame = PART.CFrame * ROTATION
  762. PART.Transparency = i
  763. MESH.Scale = MESH.Scale + VT(X2 * Player_Size, Y2 * Player_Size, Z2 * Player_Size)
  764. end
  765. PART.Parent = nil
  766. end), EFFECTPART, EFFECTMESH)
  767. end
  768.  
  769. function MagicHead(BRICKCOLOR, MATERIAL, CFRAME, ROTATION, OFFSET, X1, Y1, Z1, X2, Y2, Z2, delay)
  770. local EFFECTPART = CreatePart(3, Effects, MATERIAL, 0, 0, BRICKCOLOR, "Effect", VT())
  771. EFFECTPART.Anchored = true
  772. EFFECTPART.CFrame = CFRAME
  773. local EFFECTMESH = CreateMesh("SpecialMesh", EFFECTPART, "Head", "", "", VT(X1 * Player_Size, Y1 * Player_Size, Z1 * Player_Size), OFFSET * Player_Size)
  774. game:GetService("Debris"):AddItem(EFFECTPART, 10)
  775. coroutine.resume(coroutine.create(function(PART, MESH)
  776. for i = 0, 1, delay do
  777. Swait()
  778. PART.CFrame = PART.CFrame * ROTATION
  779. PART.Transparency = i
  780. MESH.Scale = MESH.Scale + VT(X2 * Player_Size, Y2 * Player_Size, Z2 * Player_Size)
  781. end
  782. PART.Parent = nil
  783. end), EFFECTPART, EFFECTMESH)
  784. end
  785.  
  786. function MagicRing(BRICKCOLOR, MATERIAL, CFRAME, ROTATION, OFFSET, X1, Y1, Z1, X2, Y2, Z2, delay)
  787. local EFFECTPART = CreatePart(3, Effects, MATERIAL, 0, 0, BRICKCOLOR, "Effect", VT())
  788. EFFECTPART.Anchored = true
  789. EFFECTPART.CFrame = CFRAME
  790. local EFFECTMESH = CreateMesh("SpecialMesh", EFFECTPART, "FileMesh", "3270017", "", VT(X1 * Player_Size, Y1 * Player_Size, Z1 * Player_Size), OFFSET * Player_Size)
  791. game:GetService("Debris"):AddItem(EFFECTPART, 10)
  792. coroutine.resume(coroutine.create(function(PART, MESH)
  793. for i = 0, 1, delay do
  794. Swait()
  795. PART.CFrame = PART.CFrame * ROTATION
  796. PART.Transparency = i
  797. MESH.Scale = MESH.Scale + VT(X2 * Player_Size, Y2 * Player_Size, Z2 * Player_Size)
  798. end
  799. PART.Parent = nil
  800. end), EFFECTPART, EFFECTMESH)
  801. end
  802.  
  803. function MagicWave(BRICKCOLOR, MATERIAL, CFRAME, ROTATION, OFFSET, X1, Y1, Z1, X2, Y2, Z2, delay)
  804. local EFFECTPART = CreatePart(3, Effects, MATERIAL, 0, 0, BRICKCOLOR, "Effect", VT())
  805. EFFECTPART.Anchored = true
  806. EFFECTPART.CFrame = CFRAME
  807. local EFFECTMESH = CreateMesh("SpecialMesh", EFFECTPART, "FileMesh", "20329976", "", VT(X1 * Player_Size, Y1 * Player_Size, Z1 * Player_Size), VT(0, 0, (-0.1 * Z1)) + (OFFSET * Player_Size))
  808. game:GetService("Debris"):AddItem(EFFECTPART, 10)
  809. coroutine.resume(coroutine.create(function(PART, MESH)
  810. for i = 0, 1, delay do
  811. Swait()
  812. PART.CFrame = PART.CFrame * ROTATION
  813. PART.Transparency = i
  814. MESH.Offset = VT(0, 0, (-0.1 * MESH.Scale.Z))
  815. MESH.Scale = MESH.Scale + VT(X2 * Player_Size, Y2 * Player_Size, Z2 * Player_Size)
  816. end
  817. PART.Parent = nil
  818. end), EFFECTPART, EFFECTMESH)
  819. end
  820.  
  821. function MagicCrystal(BRICKCOLOR, MATERIAL, CFRAME, ROTATION, OFFSET, X1, Y1, Z1, X2, Y2, Z2, delay)
  822. local EFFECTPART = CreatePart(3, Effects, MATERIAL, 0, 0, BRICKCOLOR, "Effect", VT())
  823. EFFECTPART.Anchored = true
  824. EFFECTPART.CFrame = CFRAME
  825. local EFFECTMESH = CreateMesh("SpecialMesh", EFFECTPART, "FileMesh", "9756362", "", VT(X1 * Player_Size, Y1 * Player_Size, Z1 * Player_Size), OFFSET * Player_Size)
  826. game:GetService("Debris"):AddItem(EFFECTPART, 10)
  827. coroutine.resume(coroutine.create(function(PART, MESH)
  828. for i = 0, 1, delay do
  829. Swait()
  830. PART.CFrame = PART.CFrame * ROTATION
  831. PART.Transparency = i
  832. MESH.Scale = MESH.Scale + VT(X2 * Player_Size, Y2 * Player_Size, Z2 * Player_Size)
  833. end
  834. PART.Parent = nil
  835. end), EFFECTPART, EFFECTMESH)
  836. end
  837.  
  838. function MagicSwirl(BRICKCOLOR, MATERIAL, CFRAME, ROTATION, OFFSET, X1, Y1, Z1, X2, Y2, Z2, delay)
  839. local EFFECTPART = CreatePart(3, Effects, MATERIAL, 0, 0, BRICKCOLOR, "Effect", VT())
  840. EFFECTPART.Anchored = true
  841. EFFECTPART.CFrame = CFRAME
  842. local EFFECTMESH = CreateMesh("SpecialMesh", EFFECTPART, "FileMesh", "1051557", "", VT(X1 * Player_Size, Y1 * Player_Size, Z1 * Player_Size), OFFSET * Player_Size)
  843. game:GetService("Debris"):AddItem(EFFECTPART, 10)
  844. coroutine.resume(coroutine.create(function(PART, MESH)
  845. for i = 0, 1, delay do
  846. Swait()
  847. PART.CFrame = PART.CFrame * ROTATION
  848. PART.Transparency = i
  849. MESH.Scale = MESH.Scale + VT(X2 * Player_Size, Y2 * Player_Size, Z2 * Player_Size)
  850. end
  851. PART.Parent = nil
  852. end), EFFECTPART, EFFECTMESH)
  853. end
  854.  
  855. function MagicSharpCone(BRICKCOLOR, MATERIAL, CFRAME, ROTATION, OFFSET, X1, Y1, Z1, X2, Y2, Z2, delay)
  856. local EFFECTPART = CreatePart(3, Effects, MATERIAL, 0, 0, BRICKCOLOR, "Effect", VT())
  857. EFFECTPART.Anchored = true
  858. EFFECTPART.CFrame = CFRAME
  859. local EFFECTMESH = CreateMesh("SpecialMesh", EFFECTPART, "FileMesh", "1778999", "", VT(X1 * Player_Size, Y1 * Player_Size, Z1 * Player_Size), OFFSET * Player_Size)
  860. game:GetService("Debris"):AddItem(EFFECTPART, 10)
  861. coroutine.resume(coroutine.create(function(PART, MESH)
  862. for i = 0, 1, delay do
  863. Swait()
  864. PART.CFrame = PART.CFrame * ROTATION
  865. PART.Transparency = i
  866. MESH.Scale = MESH.Scale + VT(X2 * Player_Size, Y2 * Player_Size, Z2 * Player_Size)
  867. end
  868. PART.Parent = nil
  869. end), EFFECTPART, EFFECTMESH)
  870. end
  871.  
  872. function MagicFlatCone(BRICKCOLOR, MATERIAL, CFRAME, ROTATION, OFFSET, X1, Y1, Z1, X2, Y2, Z2, delay)
  873. local EFFECTPART = CreatePart(3, Effects, MATERIAL, 0, 0, BRICKCOLOR, "Effect", VT())
  874. EFFECTPART.Anchored = true
  875. EFFECTPART.CFrame = CFRAME
  876. local EFFECTMESH = CreateMesh("SpecialMesh", EFFECTPART, "FileMesh", "1033714", "", VT(X1 * Player_Size, Y1 * Player_Size, Z1 * Player_Size), OFFSET * Player_Size)
  877. game:GetService("Debris"):AddItem(EFFECTPART, 10)
  878. coroutine.resume(coroutine.create(function(PART, MESH)
  879. for i = 0, 1, delay do
  880. Swait()
  881. PART.CFrame = PART.CFrame * ROTATION
  882. PART.Transparency = i
  883. MESH.Scale = MESH.Scale + VT(X2 * Player_Size, Y2 * Player_Size, Z2 * Player_Size)
  884. end
  885. PART.Parent = nil
  886. end), EFFECTPART, EFFECTMESH)
  887. end
  888.  
  889. function MagicSpikedCrown(BRICKCOLOR, MATERIAL, CFRAME, ROTATION, OFFSET, X1, Y1, Z1, X2, Y2, Z2, delay)
  890. local EFFECTPART = CreatePart(3, Effects, MATERIAL, 0, 0, BRICKCOLOR, "Effect", VT())
  891. EFFECTPART.Anchored = true
  892. EFFECTPART.CFrame = CFRAME
  893. local EFFECTMESH = CreateMesh("SpecialMesh", EFFECTPART, "FileMesh", "1323306", "", VT(X1 * Player_Size, Y1 * Player_Size, Z1 * Player_Size), OFFSET * Player_Size)
  894. game:GetService("Debris"):AddItem(EFFECTPART, 10)
  895. coroutine.resume(coroutine.create(function(PART, MESH)
  896. for i = 0, 1, delay do
  897. Swait()
  898. PART.CFrame = PART.CFrame * ROTATION
  899. PART.Transparency = i
  900. MESH.Scale = MESH.Scale + VT(X2 * Player_Size, Y2 * Player_Size, Z2 * Player_Size)
  901. end
  902. PART.Parent = nil
  903. end), EFFECTPART, EFFECTMESH)
  904. end
  905.  
  906. function MagicFlatCrown(BRICKCOLOR, MATERIAL, CFRAME, ROTATION, OFFSET, X1, Y1, Z1, X2, Y2, Z2, delay)
  907. local EFFECTPART = CreatePart(3, Effects, MATERIAL, 0, 0, BRICKCOLOR, "Effect", VT())
  908. EFFECTPART.Anchored = true
  909. EFFECTPART.CFrame = CFRAME
  910. local EFFECTMESH = CreateMesh("SpecialMesh", EFFECTPART, "FileMesh", "1078075", "", VT(X1 * Player_Size, Y1 * Player_Size, Z1 * Player_Size), OFFSET * Player_Size)
  911. game:GetService("Debris"):AddItem(EFFECTPART, 10)
  912. coroutine.resume(coroutine.create(function(PART, MESH)
  913. for i = 0, 1, delay do
  914. Swait()
  915. PART.CFrame = PART.CFrame * ROTATION
  916. PART.Transparency = i
  917. MESH.Scale = MESH.Scale + VT(X2 * Player_Size, Y2 * Player_Size, Z2 * Player_Size)
  918. end
  919. PART.Parent = nil
  920. end), EFFECTPART, EFFECTMESH)
  921. end
  922.  
  923. function MagicSkull(BRICKCOLOR, MATERIAL, CFRAME, ROTATION, OFFSET, X1, Y1, Z1, X2, Y2, Z2, delay)
  924. local EFFECTPART = CreatePart(3, Effects, MATERIAL, 0, 0, BRICKCOLOR, "Effect", VT())
  925. EFFECTPART.Anchored = true
  926. EFFECTPART.CFrame = CFRAME
  927. local EFFECTMESH = CreateMesh("SpecialMesh", EFFECTPART, "FileMesh", "4770583", "", VT(X1 * Player_Size, Y1 * Player_Size, Z1 * Player_Size), OFFSET * Player_Size)
  928. game:GetService("Debris"):AddItem(EFFECTPART, 10)
  929. coroutine.resume(coroutine.create(function(PART, MESH)
  930. for i = 0, 1, delay do
  931. Swait()
  932. PART.CFrame = PART.CFrame * ROTATION
  933. PART.Transparency = i
  934. MESH.Scale = MESH.Scale + VT(X2 * Player_Size, Y2 * Player_Size, Z2 * Player_Size)
  935. end
  936. PART.Parent = nil
  937. end), EFFECTPART, EFFECTMESH)
  938. end
  939.  
  940. function ElectricEffect(BRICKCOLOR, MATERIAL, CFRAME, ROTATION, OFFSET, X, Y, Z, delay)
  941. local EFFECTPART = CreatePart(3, Effects, MATERIAL, 0, 0, BRICKCOLOR, "Effect", VT())
  942. EFFECTPART.Anchored = true
  943. EFFECTPART.CFrame = CFRAME
  944. local EFFECTMESH = CreateMesh("SpecialMesh", EFFECTPART, "FileMesh", "4770583", "", VT(X * Player_Size, Y * Player_Size, Z * Player_Size), OFFSET * Player_Size)
  945. game:GetService("Debris"):AddItem(EFFECTPART, 10)
  946. local XVALUE = MRANDOM()
  947. local YVALUE = MRANDOM()
  948. local ZVALUE = MRANDOM()
  949. coroutine.resume(coroutine.create(function(PART, MESH, THEXVALUE, THEYVALUE, THEZVALUE)
  950. for i = 0, 1, delay do
  951. Swait()
  952. PART.CFrame = PART.CFrame * ROTATION
  953. PART.Transparency = i
  954. THEXVALUE = THEXVALUE - 0.1 * (delay * 10)
  955. THEYVALUE = THEYVALUE - 0.1 * (delay * 10)
  956. THEZVALUE = THEZVALUE - 0.1 * (delay * 10)
  957. MESH.Scale = MESH.Scale + VT(THEXVALUE * Player_Size, THEYVALUE * Player_Size, THEZVALUE * Player_Size)
  958. end
  959. PART.Parent = nil
  960. end), EFFECTPART, EFFECTMESH, XVALUE, YVALUE, ZVALUE)
  961. end
  962.  
  963. function TrailEffect(BRICKCOLOR, MATERIAL, CURRENTCFRAME, OLDCFRAME, MESHTYPE, REFLECTANCE, SIZE, ROTATION, X, Y, Z, delay)
  964. local MAGNITUDECFRAME = (CURRENTCFRAME.p - OLDCFRAME.p).magnitude
  965. if MAGNITUDECFRAME > (1 / 100) then
  966. local EFFECTPART = CreatePart(3, Effects, MATERIAL, 0, 0, BRICKCOLOR, "Effect", VT(1, MAGNITUDECFRAME, 1))
  967. EFFECTPART.Anchored = true
  968. EFFECTPART.CFrame = CF((CURRENTCFRAME.p + OLDCFRAME.p) / 2, OLDCFRAME.p) * ANGLES(RAD(90), 0, 0)
  969. local THEMESHTYPE = "BlockMesh"
  970. if MESHTYPE == "Cylinder" then
  971. THEMESHTYPE = "CylinderMesh"
  972. end
  973. local EFFECTMESH = CreateMesh(THEMESHTYPE, EFFECTPART, "", "", "", VT(0 + SIZE * Player_Size, 1, 0 + SIZE * Player_Size), VT(0, 0, 0))
  974. game:GetService("Debris"):AddItem(EFFECTPART, 10)
  975. coroutine.resume(coroutine.create(function(PART, MESH)
  976. for i = 0, 1, delay do
  977. Swait()
  978. PART.CFrame = PART.CFrame * ROTATION
  979. PART.Transparency = i
  980. MESH.Scale = MESH.Scale + VT(X * Player_Size, Y * Player_Size, Z * Player_Size)
  981. end
  982. PART.Parent = nil
  983. end), EFFECTPART, EFFECTMESH)
  984. end
  985. end
  986.  
  987. function ClangEffect(BRICKCOLOR, MATERIAL, CFRAME, ANGLE, DURATION, SIZE, POWER, REFLECTANCE, X, Y, Z, delay)
  988. local EFFECTPART = CreatePart(3, Effects, MATERIAL, 0, 1, BRICKCOLOR, "Effect", VT())
  989. EFFECTPART.Anchored = true
  990. EFFECTPART.CFrame = CFRAME
  991. local EFFECTMESH = CreateMesh("BlockMesh", EFFECTPART, "", "", "", VT(0, 0, 0), VT(0, 0, 0))
  992. game:GetService("Debris"):AddItem(EFFECTPART, 10)
  993. local THELASTPOINT = CFRAME
  994. coroutine.resume(coroutine.create(function(PART)
  995. for i = 1, DURATION do
  996. Swait()
  997. PART.CFrame = PART.CFrame * ANGLES(RAD(ANGLE), 0, 0) * CF(0, POWER * Player_Size, 0)
  998. TrailEffect(BRICKCOLOR, MATERIAL, PART.CFrame, THELASTPOINT, "Cylinder", REFLECTANCE, SIZE * Player_Size, ANGLES(0, 0, 0), X * Player_Size, Y * Player_Size, Z * Player_Size, delay)
  999. THELASTPOINT = PART.CFrame
  1000. end
  1001. PART.Parent = nil
  1002. end), EFFECTPART)
  1003. end
  1004.  
  1005. --local list={}
  1006. function Triangle(Color, Material, a, b, c, delay)
  1007. local edge1 = (c - a):Dot((b - a).unit)
  1008. local edge2 = (a - b):Dot((c - b).unit)
  1009. local edge3 = (b - c):Dot((a - c).unit)
  1010. if edge1 <= (b - a).magnitude and edge1 >= 0 then
  1011. a, b, c=a, b, c
  1012. elseif edge2 <= (c - b).magnitude and edge2 >= 0 then
  1013. a, b, c=b, c, a
  1014. elseif edge3 <= (a - c).magnitude and edge3 >= 0 then
  1015. a, b, c=c, a, b
  1016. else
  1017. assert(false, "unreachable")
  1018. end
  1019. local len1 = (c - a):Dot((b - a).unit)
  1020. local len2 = (b - a).magnitude - len1
  1021. local width = (a + (b - a).unit * len1 - c).magnitude
  1022. local maincf = CFrameFromTopBack(a, (b - a):Cross(c - b).unit, - (b - a).unit)
  1023. if len1 > 1 / 100 then
  1024. local sz = VT(0.2, width, len1)
  1025. local w1 = CreatePart(3, Effects, Material, 0, 0.5, Color, "Trail", sz)
  1026. local sp = CreateMesh("SpecialMesh", w1, "Wedge", "", "", VT(0, 1, 1) * sz / w1.Size, VT(0, 0, 0))
  1027. w1.Anchored = true
  1028. w1.CFrame = maincf * ANGLES(math.pi, 0, math.pi / 2) * CF(0, width / 2, len1 / 2)
  1029. coroutine.resume(coroutine.create(function()
  1030. for i = 0.5, 1, delay * (2 / Animation_Speed) do
  1031. Swait()
  1032. w1.Transparency = i
  1033. end
  1034. w1.Parent = nil
  1035. end))
  1036. game:GetService("Debris"):AddItem(w1, 10)
  1037. --table.insert(list, w1)
  1038. end
  1039. if len2 > 1 / 100 then
  1040. local sz = VT(0.2, width, len2)
  1041. local w2 = CreatePart(3, Effects, Material, 0, 0.5, Color, "Trail", sz)
  1042. local sp = CreateMesh("SpecialMesh", w2, "Wedge", "", "", VT(0, 1, 1) * sz / w2.Size, VT(0, 0, 0))
  1043. w2.Anchored = true
  1044. w2.CFrame = maincf * ANGLES(math.pi, math.pi, -math.pi / 2) * CF(0, width / 2, -len1 - len2 / 2)
  1045. coroutine.resume(coroutine.create(function()
  1046. for i = 0.5, 1, delay * (2 / Animation_Speed) do
  1047. Swait()
  1048. w2.Transparency = i
  1049. end
  1050. w2.Parent = nil
  1051. end))
  1052. game:GetService("Debris"):AddItem(w2, 10)
  1053. --table.insert(list, w2)
  1054. end
  1055. --return unpack(list)
  1056. end
  1057.  
  1058. --[[Usage:
  1059. local Pos = Part
  1060. local Offset = Part.CFrame * CF(0, 0, 0)
  1061. local Color = "Institutional white"
  1062. local Material = "Neon"
  1063. local TheDelay = 0.01
  1064. local Height = 4
  1065. BLCF = Offset
  1066. if SCFR and (Pos.Position - SCFR.p).magnitude > 0.1 then
  1067. local a, b = Triangle(Color, Material, (SCFR * CF(0, Height / 2,0)).p, (SCFR * CF(0, -Height / 2, 0)).p, (BLCF * CF(0, Height / 2,0)).p, TheDelay)
  1068. if a then game:GetService("Debris"):AddItem(a, 1) end
  1069. if b then game:GetService("Debris"):AddItem(b, 1) end
  1070. local a, b = Triangle(Color, Material, (BLCF * CF(0, Height / 2, 0)).p, (BLCF * CF(0, -Height / 2, 0)).p, (SCFR * CF(0, -Height / 2, 0)).p, TheDelay)
  1071. if a then game:GetService("Debris"):AddItem(a, 1) end
  1072. if b then game:GetService("Debris"):AddItem(b, 1) end
  1073. SCFR = BLCF
  1074. elseif not SCFR then
  1075. SCFR = BLCF
  1076. end
  1077. --
  1078. BLCF = nil
  1079. SCFR = nil
  1080. --]]
  1081.  
  1082. --//=================================\\
  1083. --\\=================================//
  1084.  
  1085.  
  1086.  
  1087.  
  1088.  
  1089. --//=================================\\
  1090. --|| RESIZE PLAYER
  1091. --\\=================================//
  1092.  
  1093. if Player_Size ~= 1 then
  1094. RootPart.Size = RootPart.Size * Player_Size
  1095. Torso.Size = Torso.Size * Player_Size
  1096. Head.Size = Head.Size * Player_Size
  1097. RightArm.Size = RightArm.Size * Player_Size
  1098. LeftArm.Size = LeftArm.Size * Player_Size
  1099. RightLeg.Size = RightLeg.Size * Player_Size
  1100. LeftLeg.Size = LeftLeg.Size * Player_Size
  1101. RootJoint.Parent = RootPart
  1102. Neck.Parent = Torso
  1103. RightShoulder.Parent = Torso
  1104. LeftShoulder.Parent = Torso
  1105. RightHip.Parent = Torso
  1106. LeftHip.Parent = Torso
  1107.  
  1108. RootJoint.C0 = ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0))
  1109. RootJoint.C1 = ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0))
  1110. Neck.C0 = NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0))
  1111. Neck.C1 = CF(0 * Player_Size, -0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-90), RAD(0), RAD(180))
  1112. RightShoulder.C0 = CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)) * RIGHTSHOULDERC0
  1113. LeftShoulder.C0 = CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)) * LEFTSHOULDERC0
  1114. if Disable_Moving_Arms == false then
  1115. RightShoulder.C1 = ANGLES(0, RAD(90), 0) * CF(0 * Player_Size, 0.5 * Player_Size, -0.5)
  1116. LeftShoulder.C1 = ANGLES(0, RAD(-90), 0) * CF(0 * Player_Size, 0.5 * Player_Size, -0.5)
  1117. else
  1118. RightShoulder.C1 = CF(0 * Player_Size, 0.5 * Player_Size, 0 * Player_Size)
  1119. LeftShoulder.C1 = CF(0 * Player_Size, 0.5 * Player_Size, 0 * Player_Size)
  1120. end
  1121. RightHip.C0 = CF(1 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0))
  1122. LeftHip.C0 = CF(-1 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0))
  1123. RightHip.C1 = CF(0.5 * Player_Size, 1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0))
  1124. LeftHip.C1 = CF(-0.5 * Player_Size, 1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0))
  1125. hat.Parent = Character
  1126. end
  1127.  
  1128.  
  1129. --//=================================\\
  1130. --\\=================================//
  1131.  
  1132.  
  1133.  
  1134.  
  1135.  
  1136. --//=================================\\
  1137. --|| WEAPON CREATION
  1138. --\\=================================//
  1139.  
  1140. local HandlePart = CreatePart(3, Weapon, "Granite", 0, 0, "Really black", "Handle", VT(0, 0, 0))
  1141. local HandleMesh = CreateMesh("SpecialMesh", HandlePart, "FileMesh", "93180631", "93180676", VT(1, 1, 1), VT(0, 3.1 * Player_Size, 0))
  1142. local HandleWeld = CreateWeldOrSnapOrMotor("Weld", HandlePart, Torso, HandlePart, CF(2 * Player_Size, 2 * Player_Size, 0.6 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(135)), CF(0, 0, 0))
  1143.  
  1144. local HitboxPart = CreatePart(3, Weapon, "Granite", 0, 1, "Really black", "Hitbox", VT(0, 0, 0))
  1145. local HitboxWeld = CreateWeldOrSnapOrMotor("Weld", HitboxPart, HandlePart, HitboxPart, CF(0 * Player_Size, 4 * Player_Size, 0 * Player_Size), CF(0, 0, 0))
  1146.  
  1147. local EffectPart = CreatePart(3, Weapon, "Granite", 0, 1, "Really black", "Effect Part", VT(0, 0, 0))
  1148. local EffectWeld = CreateWeldOrSnapOrMotor("Weld", EffectPart, HandlePart, EffectPart, CF(0 * Player_Size, 7 * Player_Size, 0 * Player_Size), CF(0, 0, 0))
  1149.  
  1150. if Player_Size ~= 1 then
  1151. for _, v in pairs (Weapon:GetChildren()) do
  1152. if v.ClassName == "Motor" or v.ClassName == "Weld" or v.ClassName == "Snap" then
  1153. local p1 = v.Part1
  1154. v.Part1 = nil
  1155. local cf1, cf2, cf3, cf4, cf5, cf6, cf7, cf8, cf9, cf10, cf11, cf12 = v.C1:components()
  1156. v.C1 = CF(cf1 * Player_Size, cf2 * Player_Size, cf3 * Player_Size, cf4, cf5, cf6, cf7, cf8, cf9, cf10, cf11, cf12)
  1157. v.Part1 = p1
  1158. elseif v.ClassName == "Part" then
  1159. for _, b in pairs (v:GetChildren()) do
  1160. if b.ClassName == "SpecialMesh" or b.ClassName == "BlockMesh" then
  1161. b.Scale = VT(b.Scale.x * Player_Size, b.Scale.y * Player_Size, b.Scale.z * Player_Size)
  1162. end
  1163. end
  1164. end
  1165. end
  1166. end
  1167.  
  1168. for _, c in pairs(Weapon:GetChildren()) do
  1169. if c.ClassName == "Part" then
  1170. c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0)
  1171. end
  1172. end
  1173.  
  1174. if Start_Equipped == true and Start_Equipped_With_Equipped_Animation == false then
  1175. HandleWeld.Part0 = RightArm
  1176. HandleWeld.C0 = CF(0 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0))
  1177. end
  1178.  
  1179. Weapon.Parent = Character
  1180.  
  1181. Humanoid.Died:connect(function()
  1182. ATTACK = true
  1183. end)
  1184.  
  1185. print(Class_Name.." loaded.")
  1186.  
  1187. --//=================================\\
  1188. --\\=================================//
  1189.  
  1190.  
  1191.  
  1192.  
  1193.  
  1194. --//=================================\\
  1195. --|| DAMAGE FUNCTIONS
  1196. --\\=================================//
  1197.  
  1198. function StatLabel(LABELTYPE, CFRAME, TEXT, COLOR)
  1199. local STATPART = CreatePart(3, Effects, "SmoothPlastic", 0, 1, "Really black", "Effect", VT())
  1200. STATPART.CFrame = CF(CFRAME.p + VT(0, 1.5, 0))
  1201. local BODYGYRO = IT("BodyGyro", STATPART)
  1202. local BODYPOSITION = IT("BodyPosition", STATPART)
  1203. BODYPOSITION.P = 2000
  1204. BODYPOSITION.D = 100
  1205. BODYPOSITION.maxForce = VT(math.huge, math.huge, math.huge)
  1206. if LABELTYPE == "Normal" then
  1207. BODYPOSITION.position = STATPART.Position + VT(MRANDOM(-2, 2), 6, MRANDOM(-2, 2))
  1208. elseif LABELTYPE == "Debuff" then
  1209. BODYPOSITION.position = STATPART.Position + VT(MRANDOM(-2, 2), 8, MRANDOM(-2, 2))
  1210. elseif LABELTYPE == "Interruption" then
  1211. BODYPOSITION.position = STATPART.Position + VT(MRANDOM(-2,2), 8, MRANDOM(-2, 2))
  1212. end
  1213. game:GetService("Debris"):AddItem(STATPART ,5)
  1214. local BILLBOARDGUI = Instance.new("BillboardGui", STATPART)
  1215. BILLBOARDGUI.Adornee = STATPART
  1216. BILLBOARDGUI.Size = UD2(2.5, 0, 2.5 ,0)
  1217. BILLBOARDGUI.StudsOffset = VT(-2, 2, 0)
  1218. BILLBOARDGUI.AlwaysOnTop = false
  1219. local TEXTLABEL = Instance.new("TextLabel", BILLBOARDGUI)
  1220. TEXTLABEL.BackgroundTransparency = 1
  1221. TEXTLABEL.Size = UD2(2.5, 0, 2.5, 0)
  1222. TEXTLABEL.Text = "INF"
  1223. TEXTLABEL.Font = "SourceSans"
  1224. TEXTLABEL.FontSize="Size42"
  1225. TEXTLABEL.TextColor3 = COLOR
  1226. TEXTLABEL.TextStrokeTransparency = 0
  1227. TEXTLABEL.TextScaled = true
  1228. TEXTLABEL.TextWrapped = true
  1229. coroutine.resume(coroutine.create(function(THEPART, THEBODYPOSITION, THETEXTLABEL)
  1230. wait(0.2)
  1231. for i=1, 5 do
  1232. wait()
  1233. THEBODYPOSITION.Position = THEPART.Position - VT(0, 0.5 ,0)
  1234. end
  1235. wait(1.2)
  1236. for i=1, 5 do
  1237. wait()
  1238. THETEXTLABEL.TextTransparency = THETEXTLABEL.TextTransparency + 0.2
  1239. THETEXTLABEL.TextStrokeTransparency = THETEXTLABEL.TextStrokeTransparency + 0.2
  1240. THEBODYPOSITION.position = THEPART.Position + VT(0, 0.5, 0)
  1241. end
  1242. THEPART.Parent = nil
  1243. end),STATPART, BODYPOSITION, TEXTLABEL)
  1244. end
  1245.  
  1246. function IncreaseOrDecreaseStat(LOCATION, STAT, AMOUNT, DURATION, SHOWTHESTAT)
  1247. if LOCATION:FindFirstChild("Stats") ~= nil then
  1248. if LOCATION.Stats:FindFirstChild("Block") ~= nil then
  1249. if LOCATION.Stats:FindFirstChild("Block").Value == true then
  1250. return
  1251. end
  1252. end
  1253. if LOCATION.Stats:FindFirstChild("ChangeStat") ~= nil and LOCATION.Stats:FindFirstChild("Block").Value == false then
  1254. local NewStatChange = IT("NumberValue")
  1255. NewStatChange.Value = AMOUNT
  1256. if STAT == "Defense" then
  1257. NewStatChange.Name = "ChangeDefense"
  1258. elseif STAT == "Damage" then
  1259. NewStatChange.Name = "ChangeDamage"
  1260. elseif STAT == "Movement" then
  1261. NewStatChange.Name = "ChangeMovement"
  1262. end
  1263. if SHOWTHESTAT == true then
  1264. if AMOUNT < 0 then
  1265. StatLabel("Debuff", LOCATION.Head.CFrame * CF(0, 0 + (LOCATION.Head.Size.z - 1), 0), "-"..STAT, C3(1, 1, 1))
  1266. elseif AMOUNT > 0 then
  1267. StatLabel("Debuff", LOCATION.Head.CFrame * CF(0, 0 + (LOCATION.Head.Size.z - 1), 0), "+"..STAT, C3(1, 1, 1))
  1268. end
  1269. end
  1270. if DURATION ~= nil and DURATION ~= 0 then
  1271. local StatDuration = IT("NumberValue")
  1272. StatDuration.Name = "Duration"
  1273. StatDuration.Value = DURATION
  1274. StatDuration.Parent = NewStatChange
  1275. end
  1276. NewStatChange.Parent = LOCATION.Stats:FindFirstChild("ChangeStat")
  1277. end
  1278. end
  1279. end
  1280.  
  1281. --Usage: DamageFunction(HITWEAPONSOUNDS[MRANDOM(1, #HITWEAPONSOUNDS)], HITARMORSOUNDS[MRANDOM(1, #HITARMORSOUNDS)], HITBLOCKSOUNDS[MRANDOM(1, #HITBLOCKSOUNDS)], HITPLAYERSOUNDS[MRANDOM(1, #HITPLAYERSOUNDS)], 1, 1, 1, 1, hit, false, 5, 10, MRANDOM(5, 10), "Normal", Part, 0.5, false, true, 1, MRANDOM(5, 10), nil, true, false, nil, 0, 0, false)
  1282. function DamageFunction(HITWEAPONSOUND, HITARMORSOUND, HITBLOCKSOUND, HITPLAYERSOUND, HITWEAPONSOUNDPITCH, HITARMORSOUNDPITCH, HITBLOCKSOUNDPITCH, HITPLAYERSOUNDPITCH, HIT, HITEVENWHENDEAD, MINIMUMDAMAGE, MAXIMUMDAMAGE, KNOCKBACK, TYPE, PROPERTY, DELAY, KNOCKBACKTYPE, INCREASESTUN, STAGGER, STAGGERHIT, RANGED, DECREASETHESTAT, DECREASEAMOUNT, DECREASEDURATION, SHOWDECREASEDSTAT)
  1283. Humanoid.MaxHealth = "inf"
  1284. Humanoid.Health = "inf"
  1285. if HIT.Parent == nil then
  1286. return
  1287. end
  1288. local HITHUMANOID = HIT.Parent:FindFirstChild("Humanoid")
  1289. for _, v in pairs(HIT.Parent:GetChildren()) do
  1290. if v:IsA("Humanoid") then
  1291. HITHUMANOID = v
  1292. end
  1293. end
  1294. if HIT.Name == "Hitbox" and RANGED ~= true and HIT.Parent ~= Weapon and Enable_Stagger_Hit == true then
  1295. StaggerHit.Value = true
  1296. if Play_Hitbox_Hit_Sound == true then
  1297. if HITWEAPONSOUND ~= "" and HITWEAPONSOUND ~= "nil" then
  1298. CreateSound(HITWEAPONSOUND, HIT, 1, HITWEAPONSOUNDPITCH)
  1299. end
  1300. end
  1301. return
  1302. end
  1303. if HIT.Parent.Parent:FindFirstChild("Torso") ~= nil or HIT.Parent.Parent:FindFirstChild("UpperTorso") ~= nil then
  1304. HITHUMANOID = HIT.Parent.Parent:FindFirstChild("Humanoid")
  1305. end
  1306. if HIT.Parent.ClassName == "Hat" or HIT.ClassName == "Accessory" then
  1307. HIT = HIT.Parent.Parent:FindFirstChild("Head")
  1308. end
  1309. if HITHUMANOID ~= nil and HIT.Parent.Name ~= Character.Name and (HIT.Parent:FindFirstChild("Torso") ~= nil or HIT.Parent:FindFirstChild("UpperTorso") ~= nil) then
  1310. if HIT.Parent:FindFirstChild("DebounceHit") ~= nil then
  1311. if HIT.Parent.DebounceHit.Value == true then
  1312. return
  1313. end
  1314. end
  1315. if AntiTeamKill.Value == true then
  1316. if Player.Neutral == false and game.Players:GetPlayerFromCharacter(HIT.Parent) ~= nil then
  1317. if game.Players:GetPlayerFromCharacter(HIT.Parent).TeamColor == Player.TeamColor then
  1318. return
  1319. end
  1320. end
  1321. end
  1322. if HITEVENWHENDEAD == false then
  1323. if HIT.Parent:FindFirstChild("Humanoid") ~= nil then
  1324. if HIT.Parent:FindFirstChild("Humanoid").Health <= 0 then
  1325. return
  1326. end
  1327. end
  1328. end
  1329. if HIT.Parent:FindFirstChild("Stats") ~= nil then
  1330. if HIT.Parent.Stats:FindFirstChild("StunValue") ~= nil then
  1331. HIT.Parent.Stats:FindFirstChild("StunValue").Value = HIT.Parent.Stats:FindFirstChild("StunValue").Value + INCREASESTUN
  1332. end
  1333. end
  1334. if HIT.Parent:FindFirstChild("Stats") ~= nil then
  1335. if HIT.Parent.Stats:FindFirstChild("Stagger") ~= nil then
  1336. if STAGGER == true and Enable_Stagger == true then
  1337. HIT.Parent.Stats:FindFirstChild("Stagger").Value = true
  1338. end
  1339. end
  1340. end
  1341. if HIT.Parent:FindFirstChild("Stats") ~= nil then
  1342. if HIT.Parent.Stats:FindFirstChild("Block") ~= nil then
  1343. if HIT.Parent.Stats:FindFirstChild("Block").Value == true then
  1344. HASBEENBLOCKED = true
  1345. if HIT.Parent.Stats:FindFirstChild("Block"):FindFirstChild("BlockDebounce") == nil then
  1346. StatLabel("Interruption", HIT.Parent.Head.CFrame * CF(0, 0 + (HIT.Parent.Head.Size.z - 1), 0), "Blocked!", C3(0, 100 / 255, 255 / 255))
  1347. if RANGED ~= true then
  1348. if HITBLOCKSOUND ~= "" and HITBLOCKSOUND ~= "nil" then
  1349. CreateSound(HITBLOCKSOUND, HIT, 1, HITBLOCKSOUNDPITCH)
  1350. end
  1351. end
  1352. local BlockDebounce = IT("BoolValue", HIT.Parent.Stats:FindFirstChild("Block"))
  1353. BlockDebounce.Name = "BlockDebounce"
  1354. BlockDebounce.Value = true
  1355. if RANGED ~= true then
  1356. game:GetService("Debris"):AddItem(BlockDebounce, 0.5)
  1357. else
  1358. game:GetService("Debris"):AddItem(BlockDebounce, 0.1)
  1359. end
  1360. end
  1361. if RANGED ~= true and Enable_Stagger == true then
  1362. HIT.Parent.Stats:FindFirstChild("Block").Value = false
  1363. Stagger.Value = true
  1364. end
  1365. return
  1366. end
  1367. end
  1368. end
  1369. if DECREASETHESTAT ~= nil then
  1370. if HIT.Parent:FindFirstChild("Stats") ~= nil then
  1371. IncreaseOrDecreaseStat(HIT.Parent, DECREASETHESTAT, DECREASEAMOUNT, DECREASEDURATION, SHOWDECREASEDSTAT)
  1372. end
  1373. end
  1374. local DAMAGE = MRANDOM(MINIMUMDAMAGE,MAXIMUMDAMAGE) * Damage.Value
  1375. if HIT.Parent:FindFirstChild("Stats") ~= nil then
  1376. if HIT.Parent.Stats:FindFirstChild("Defense") ~= nil then
  1377. if CanPenetrateArmor.Value == true then
  1378. DAMAGE = DAMAGE
  1379. else
  1380. DAMAGE = DAMAGE / HIT.Parent.Stats:FindFirstChild("Defense").Value
  1381. end
  1382. elseif HIT.Parent.Stats:FindFirstChild("Defense") == nil then
  1383. DAMAGE = DAMAGE
  1384. end
  1385. end
  1386. if CanCrit.Value == true then
  1387. CRITCHANCENUMBER = MRANDOM(1, CritChance.Value)
  1388. if CRITCHANCENUMBER == 1 then
  1389. DAMAGE = DAMAGE * 2
  1390. end
  1391. end
  1392. DAMAGE = math.floor(DAMAGE)
  1393. if HASBEENBLOCKED == false then
  1394. HITHUMANOID.Health = HITHUMANOID.Health - DAMAGE
  1395. end
  1396. if DAMAGE <= 3 and HASBEENBLOCKED == false then
  1397. if STAGGERHIT == true and Enable_Stagger_Hit == true and RANGED ~= true then
  1398. StaggerHit.Value = true
  1399. end
  1400. if HITARMORSOUND ~= "" and HITARMORSOUND ~= "nil" then
  1401. CreateSound(HITARMORSOUND, HIT, 1, HITARMORSOUNDPITCH)
  1402. end
  1403. elseif DAMAGE > 3 and HASBEENBLOCKED == false then
  1404. if HITPLAYERSOUND ~= "" and HITPLAYERSOUND ~= "nil" then
  1405. CreateSound(HITPLAYERSOUND, HIT, 1, HITPLAYERSOUNDPITCH)
  1406. end
  1407. end
  1408. if DAMAGE > 3 and DAMAGE < 20 and HASBEENBLOCKED == false then
  1409. if CanCrit.Value == true and CRITCHANCENUMBER == 1 then
  1410. StatLabel("Normal", HIT.Parent.Head.CFrame * CF(0, 0 + (HIT.Parent.Head.Size.z - 1), 0), "Crit! \n"..DAMAGE, C3(200/255, 0, 0))
  1411. CreateSound("296102734", HIT, 1, 1)
  1412. else
  1413. StatLabel("Normal", HIT.Parent.Head.CFrame * CF(0, 0 + (HIT.Parent.Head.Size.z - 1), 0), DAMAGE, C3(255/255, 220/255, 0))
  1414. end
  1415. elseif DAMAGE >= 20 and HASBEENBLOCKED == false then
  1416. if CanCrit.Value == true and CRITCHANCENUMBER == 1 then
  1417. StatLabel("Normal", HIT.Parent.Head.CFrame * CF(0, 0 + (HIT.Parent.Head.Size.z - 1), 0), "Crit! \n"..DAMAGE, C3(200/255, 0, 0))
  1418. CreateSound("296102734", HIT, 1, 1)
  1419. else
  1420. StatLabel("Normal", HIT.Parent.Head.CFrame * CF(0, 0 + (HIT.Parent.Head.Size.z - 1), 0), DAMAGE, C3(255/255, 0, 0))
  1421. end
  1422. elseif DAMAGE <= 3 and HASBEENBLOCKED == false then
  1423. if CanCrit.Value == true and CRITCHANCENUMBER == 1 then
  1424. StatLabel("Normal", HIT.Parent.Head.CFrame * CF(0, 0 + (HIT.Parent.Head.Size.z - 1), 0), "Crit! \n"..DAMAGE, C3(200/255, 0, 0))
  1425. CreateSound("296102734", HIT, 1, 1)
  1426. else
  1427. StatLabel("Normal", HIT.Parent.Head.CFrame * CF(0, 0 + (HIT.Parent.Head.Size.z - 1), 0), DAMAGE, C3(225/255, 225/255, 225/255))
  1428. end
  1429. end
  1430. if TYPE == "Normal" then
  1431. local vp = IT("BodyVelocity")
  1432. vp.P=500
  1433. vp.maxForce = VT(math.huge, 0, math.huge)
  1434. if KNOCKBACKTYPE == 1 then
  1435. vp.Velocity = PROPERTY.CFrame.lookVector * KNOCKBACK + PROPERTY.Velocity / 1.05
  1436. elseif KNOCKBACKTYPE == 2 then
  1437. vp.Velocity = PROPERTY.CFrame.lookVector * KNOCKBACK
  1438. end
  1439. if KNOCKBACK > 0 and HASBEENBLOCKED == false then
  1440. vp.Parent = HIT--.Parent.Torso
  1441. end
  1442. game:GetService("Debris"):AddItem(vp, 0.5)
  1443. end
  1444. HASBEENBLOCKED = false
  1445. RecentEnemy.Value = HIT.Parent
  1446. local DebounceHit = IT("BoolValue", HIT.Parent)
  1447. DebounceHit.Name = "DebounceHit"
  1448. DebounceHit.Value = true
  1449. game:GetService("Debris"):AddItem(DebounceHit, DELAY)
  1450. end
  1451. HITHUMANOID.Health = 0
  1452. reap(HIT.Parent)
  1453. end
  1454.  
  1455. --Usage: MagnitudeDamage(HITWEAPONSOUNDS[MRANDOM(1, #HITWEAPONSOUNDS)], HITARMORSOUNDS[MRANDOM(1, #HITARMORSOUNDS)], HITBLOCKSOUNDS[MRANDOM(1, #HITBLOCKSOUNDS)], HITPLAYERSOUNDS[MRANDOM(1, #HITPLAYERSOUNDS)], 1, 1, 1, 1, Part, 5, true, 5, 10, MRANDOM(5, 10), "Normal", Part, 0.5, false, true, 1, MRANDOM(5, 10), nil, true, false, nil, 0, 0, false)
  1456. function MagnitudeDamage(HITWEAPONSOUND, HITARMORSOUND, HITBLOCKSOUND, HITPLAYERSOUND, HITWEAPONSOUNDPITCH, HITARMORSOUNDPITCH, HITBLOCKSOUNDPITCH, HITPLAYERSOUNDPITCH, PART, MAGNITUDE, HITEVENWHENDEAD, MINIMUMDAMAGE, MAXIMUMDAMAGE, KNOCKBACK, TYPE, PROPERTY, DELAY, KNOCKBACKTYPE, INCREASESTUN, STAGGER, STAGGERHIT, RANGED, MAGNITUDEDECREASETHESTAT, MAGNITUDEDECREASEAMOUNT, MAGNITUDEDECREASEDURATION, MAGNITUDESHOWDECREASEDSTAT)
  1457. for _, c in pairs(workspace:GetChildren()) do
  1458. local HUMANOID = c:FindFirstChild("Humanoid")
  1459. local HEAD = nil
  1460. if HUMANOID ~= nil then
  1461. for _, d in pairs(c:GetChildren()) do
  1462. if d.ClassName == "Model" and RANGED ~= true then
  1463. HEAD = d:FindFirstChild("Hitbox")
  1464. if HEAD ~= nil then
  1465. local THEMAGNITUDE = (HEAD.Position - PART.Position).magnitude
  1466. if THEMAGNITUDE <= (MAGNITUDE * Player_Size) and c.Name ~= Player.Name then
  1467. if Play_Hitbox_Hit_Sound == true then
  1468. local HitRefpart = CreatePart(3, Effects, "SmoothPlastic", 0, 1, "Really black", "Effect", VT())
  1469. HitRefpart.Anchored = true
  1470. HitRefpart.CFrame = CF(HEAD.Position)
  1471. CreateSound(HITWEAPONSOUND, HitRefpart, 1, HITWEAPONSOUNDPITCH)
  1472. end
  1473. if Enable_Stagger_Hit == true then
  1474. StaggerHit.Value = true
  1475. end
  1476. end
  1477. end
  1478. elseif d:IsA"BasePart" then
  1479. HEAD = d
  1480. if HEAD ~= nil then
  1481. local THEMAGNITUDE = (HEAD.Position - PART.Position).magnitude
  1482. if THEMAGNITUDE <= (MAGNITUDE * Player_Size) and c.Name ~= Player.Name then
  1483. DamageFunction(HITWEAPONSOUND, HITARMORSOUND, HITBLOCKSOUND, HITPLAYERSOUND, HITWEAPONSOUNDPITCH, HITARMORSOUNDPITCH, HITBLOCKSOUNDPITCH, HITPLAYERSOUNDPITCH, HEAD, HITEVENWHENDEAD, MINIMUMDAMAGE, MAXIMUMDAMAGE, KNOCKBACK, TYPE, PROPERTY, DELAY, KNOCKBACKTYPE, INCREASESTUN, STAGGER, STAGGERHIT, RANGED, MAGNITUDEDECREASETHESTAT, MAGNITUDEDECREASEAMOUNT, MAGNITUDEDECREASEDURATION, MAGNITUDESHOWDECREASEDSTAT)
  1484. end
  1485. end
  1486. end
  1487. end
  1488. end
  1489. end
  1490. end
  1491.  
  1492. --Usage: MagnitudeBuffOrDebuff(Part, 5, "Defense", -0.1, 3, true, true)
  1493. function MagnitudeBuffOrDebuff(PART, MAGNITUDE, STAT, AMOUNT, DURATION, SHOWBUFFORDEBUFF, APPLYTOOTHERSINSTEAD)
  1494. if Player.Neutral == true then
  1495. IncreaseOrDecreaseStat(Character, STAT, AMOUNT, DURATION, SHOWBUFFORDEBUFF)
  1496. end
  1497. for _, c in pairs(workspace:GetChildren()) do
  1498. local HUMANOID = c:FindFirstChild("Humanoid")
  1499. local THEHEAD = nil
  1500. if HUMANOID ~= nil then
  1501. if c:FindFirstChild("Torso") ~= nil then
  1502. THEHEAD = c:FindFirstChild("Torso")
  1503. elseif c:FindFirstChild("UpperTorso") ~= nil then
  1504. THEHEAD = c:FindFirstChild("UpperTorso")
  1505. end
  1506. if THEHEAD ~= nil then
  1507. local THEMAGNITUDE = (THEHEAD.Position - PART.Position).magnitude
  1508. print("yes 1")
  1509. if APPLYTOOTHERSINSTEAD == true then
  1510. if THEMAGNITUDE <= (MAGNITUDE * Player_Size) and c.Name ~= Player.Name then
  1511. if Player.Neutral == false and game.Players:GetPlayerFromCharacter(THEHEAD.Parent) ~= nil then
  1512. if game.Players:GetPlayerFromCharacter(THEHEAD.Parent).TeamColor == Player.TeamColor then
  1513. IncreaseOrDecreaseStat(THEHEAD.Parent, STAT, AMOUNT, DURATION, SHOWBUFFORDEBUFF)
  1514. end
  1515. end
  1516. end
  1517. elseif APPLYTOOTHERSINSTEAD == false then
  1518. if THEMAGNITUDE <= (MAGNITUDE * Player_Size) then
  1519. if Player.Neutral == false and game.Players:GetPlayerFromCharacter(THEHEAD.Parent) ~= nil then
  1520. if game.Players:GetPlayerFromCharacter(THEHEAD.Parent).TeamColor == Player.TeamColor then
  1521. IncreaseOrDecreaseStat(THEHEAD.Parent, STAT, AMOUNT, DURATION, SHOWBUFFORDEBUFF)
  1522. end
  1523. end
  1524. end
  1525. end
  1526. end
  1527. end
  1528. end
  1529. end
  1530.  
  1531. --//=================================\\
  1532. --\\=================================//
  1533.  
  1534.  
  1535.  
  1536.  
  1537.  
  1538. --//=================================\\
  1539. --|| WEAPON GUI
  1540. --\\=================================//
  1541.  
  1542. local MANABAR = CreateFrame(WEAPONGUI, Mana_Bar_Background_Transparency, 2, UD2(0.23, 0, 0.82, 0), UD2(0.26, 0, 0, 0), C3(Custom_Colors.Custom_Color_8.r, Custom_Colors.Custom_Color_8.g, Custom_Colors.Custom_Color_8.b), C3(0, 0, 0),"Mana Bar")
  1543. local MANACOVER = CreateFrame(MANABAR, 0, 2, UD2(0, 0, 0, 0), UD2(0, 0, 1, 0), C3(Custom_Colors.Custom_Color_5.r, Custom_Colors.Custom_Color_5.g, Custom_Colors.Custom_Color_5.b), C3(0, 0, 0),"Mana Cover")
  1544. local MANATEXT = CreateLabel(MANABAR, Mana_Name.." ["..FLOOR(Mana.Value).."]", C3(1, 1, 1), "Size32", "Legacy", 1, 2, 1, "Mana Text")
  1545.  
  1546. local HEALTHBAR = CreateFrame(WEAPONGUI, Health_Bar_Background_Transparency, 2, UD2(0.5, 0, 0.82, 0), UD2(0.26, 0, 0, 0), C3(Custom_Colors.Custom_Color_11.r, Custom_Colors.Custom_Color_11.g, Custom_Colors.Custom_Color_11.b), C3(0, 0, 0), "Health Bar")
  1547. local HEALTHCOVER = CreateFrame(HEALTHBAR, 0, 2,UD2(0, 0, 0, 0), UD2(0, 0, 1, 0), C3(Custom_Colors.Custom_Color_6.r, Custom_Colors.Custom_Color_6.g, Custom_Colors.Custom_Color_6.b), C3(0, 0, 0), "Health Cover")
  1548. local HEALTHTEXT = CreateLabel(HEALTHBAR, "Health ["..FLOOR(Humanoid.Health).."]", C3(1, 1, 1), "Size32", "Legacy", 1, 2, 1, "Health Text")
  1549.  
  1550. local STUNFRAME = CreateFrame(nil, Stun_Bar_Background_Transparency, 2, UD2(0.5, 0, 0.78, 0),UD2(0.26, 0, 0, 0),C3(Custom_Colors.Custom_Color_10.r, Custom_Colors.Custom_Color_10.g, Custom_Colors.Custom_Color_10.b), C3(0, 0, 0), "Stun Frame")
  1551. local STUNBAR = CreateFrame(STUNFRAME, 0, 2, UD2(0, 0, 0, 0),UD2(0, 0, 1, 0),C3(Custom_Colors.Custom_Color_7.r, Custom_Colors.Custom_Color_7.g, Custom_Colors.Custom_Color_7.b), C3(0, 0, 0), "Stun Bar")
  1552. local STUNTEXT = CreateLabel(STUNFRAME, "Stun ["..FLOOR(StunValue.Value).."]", C3(1, 1, 1), "Size32", "Legacy", 1, 2, 1, "Stun Text")
  1553.  
  1554. local SECONDARYMANABAR = CreateFrame(nil, Secondary_Mana_Bar_Background_Transparency, 2, UD2(0.23, 0, 0.78, 0), UD2(0.26, 0, 0, 0), C3(Custom_Colors.Custom_Color_9.r, Custom_Colors.Custom_Color_9.g, Custom_Colors.Custom_Color_9.b), C3(0, 0, 0),"Secondary Mana Bar")
  1555. local SECONDARYMANACOVER = CreateFrame(SECONDARYMANABAR, 0, 2, UD2(0, 0, 0, 0), UD2(0, 0, 1, 0), C3(Custom_Colors.Custom_Color_4.r, Custom_Colors.Custom_Color_4.g, Custom_Colors.Custom_Color_4.b), C3(0, 0, 0),"Secondary Mana Cover")
  1556. local SECONDARYMANATEXT = CreateLabel(SECONDARYMANABAR, Secondary_Mana_Name.." ["..FLOOR(SecondaryMana.Value).."]", C3(1, 1, 1), "Size32", "Legacy", 1, 2, 1, "Secondary Mana Text")
  1557.  
  1558. local DEFENSEFRAME = CreateFrame(nil, Stat_Background_Transparency, 2, UD2(0.23, 0, Stat_Offset, 0), UD2(0.075, 0, 0, 0), C3(100 / 255, 100 / 255, 255 / 255), C3(0, 0, 0),"Defense Frame")
  1559. local DEFENSETEXT = CreateLabel(DEFENSEFRAME, "Defense ["..(Defense.Value * 100).."%]", C3(1, 1, 1), "Size32", "Legacy", 1, 2, 1, "Defense Text")
  1560.  
  1561. local DAMAGEFRAME = CreateFrame(nil, Stat_Background_Transparency, 2, UD2(0.456, 0, Stat_Offset, 0), UD2(0.075, 0, 0, 0), C3(255 / 255, 100 / 255, 100 / 255), C3(0, 0, 0),"Damage Frame")
  1562. local DAMAGETEXT = CreateLabel(DAMAGEFRAME, "Damage ["..(Damage.Value * 100).."%]", C3(1, 1, 1), "Size32", "Legacy", 1, 2, 1, "Damage Text")
  1563.  
  1564. local MOVEMENTFRAME = CreateFrame(nil, Stat_Background_Transparency, 2, UD2(0.685, 0, Stat_Offset, 0), UD2(0.075, 0, 0, 0), C3(100 / 255, 255 / 255, 100 / 255), C3(0, 0, 0),"Movement Frame")
  1565. local MOVEMENTTEXT = CreateLabel(MOVEMENTFRAME, "Movement ["..(Movement.Value * 100).."%]", C3(1, 1, 1), "Size32", "Legacy", 1, 2, 1, "Movement Text")
  1566.  
  1567. local SKILL1FRAME = CreateFrame(nil, Ability_Background_Transparency, 2, UD2(0.23, 0, 0.86, 0), UD2(0.26, 0, 0, 0), C3(Custom_Colors.Custom_Color_12.r, Custom_Colors.Custom_Color_12.g, Custom_Colors.Custom_Color_12.b), C3(0, 0, 0), "Skill 1 Frame")
  1568. local SKILL2FRAME = CreateFrame(nil, Ability_Background_Transparency, 2, UD2(0.50, 0, 0.86, 0), UD2(0.26, 0, 0, 0), C3(Custom_Colors.Custom_Color_12.r, Custom_Colors.Custom_Color_12.g, Custom_Colors.Custom_Color_12.b), C3(0, 0, 0), "Skill 2 Frame")
  1569. local SKILL3FRAME = CreateFrame(nil, Ability_Background_Transparency, 2, UD2(0.23, 0, 0.93, 0), UD2(0.26, 0, 0, 0), C3(Custom_Colors.Custom_Color_12.r, Custom_Colors.Custom_Color_12.g, Custom_Colors.Custom_Color_12.b), C3(0, 0, 0), "Skill 3 Frame")
  1570. local SKILL4FRAME = CreateFrame(nil, Ability_Background_Transparency, 2, UD2(0.50, 0, 0.93, 0), UD2(0.26, 0, 0, 0), C3(Custom_Colors.Custom_Color_12.r, Custom_Colors.Custom_Color_12.g, Custom_Colors.Custom_Color_12.b), C3(0, 0, 0), "Skill 4 Frame")
  1571.  
  1572. local SKILL1BAR = CreateFrame(SKILL1FRAME, 0, 2, UD2(0, 0, 0, 0), UD2(0, 0, 1, 0), C3(Custom_Colors.Custom_Color_3.r, Custom_Colors.Custom_Color_3.g, Custom_Colors.Custom_Color_3.b), C3(0, 0, 0), "Skill 1 Bar")
  1573. local SKILL2BAR = CreateFrame(SKILL2FRAME, 0, 2, UD2(0, 0, 0, 0), UD2(0, 0, 1, 0), C3(Custom_Colors.Custom_Color_3.r, Custom_Colors.Custom_Color_3.g, Custom_Colors.Custom_Color_3.b), C3(0, 0, 0), "Skill 2 Bar")
  1574. local SKILL3BAR = CreateFrame(SKILL3FRAME, 0, 2, UD2(0, 0, 0, 0), UD2(0, 0, 1, 0), C3(Custom_Colors.Custom_Color_3.r, Custom_Colors.Custom_Color_3.g, Custom_Colors.Custom_Color_3.b), C3(0, 0, 0), "Skill 3 Bar")
  1575. local SKILL4BAR = CreateFrame(SKILL4FRAME, 0, 2, UD2(0, 0, 0, 0), UD2(0, 0, 1, 0), C3(Custom_Colors.Custom_Color_3.r, Custom_Colors.Custom_Color_3.g, Custom_Colors.Custom_Color_3.b), C3(0, 0, 0), "Skill 4 Bar")
  1576.  
  1577. local SKILL1TEXT = CreateLabel(SKILL1FRAME, "[Z] Ability 1", C3(1, 1, 1), "Size32", "Legacy", 1, 2, 1, "Text 1")
  1578. local SKILL2TEXT = CreateLabel(SKILL2FRAME, "[X] Ability 2", C3(1, 1, 1), "Size32", "Legacy", 1, 2, 1, "Text 2")
  1579. local SKILL3TEXT = CreateLabel(SKILL3FRAME, "[C] Ability 3", C3(1, 1, 1), "Size32", "Legacy", 1, 2, 1, "Text 3")
  1580. local SKILL4TEXT = CreateLabel(SKILL4FRAME, "[V] Ability 4", C3(1, 1, 1), "Size32", "Legacy", 1, 2, 1, "Text 4")
  1581.  
  1582. if Enable_Gui == true then
  1583. WEAPONGUI.Parent = PlayerGui
  1584. end
  1585.  
  1586. if Enable_Stats == true and Show_Stats == true then
  1587. DEFENSEFRAME.Parent = WEAPONGUI
  1588. DAMAGEFRAME.Parent = WEAPONGUI
  1589. MOVEMENTFRAME.Parent = WEAPONGUI
  1590. end
  1591.  
  1592. if Enable_Secondary_Bar == true then
  1593. SECONDARYMANABAR.Parent = WEAPONGUI
  1594. end
  1595.  
  1596. if Enable_Abilities == true then
  1597. SKILL1FRAME.Parent = WEAPONGUI
  1598. SKILL2FRAME.Parent = WEAPONGUI
  1599. SKILL3FRAME.Parent = WEAPONGUI
  1600. SKILL4FRAME.Parent = WEAPONGUI
  1601. end
  1602.  
  1603. if Enable_Stun == true then
  1604. STUNFRAME.Parent = WEAPONGUI
  1605. end
  1606.  
  1607. function UpdateGUI()
  1608. MANABAR:TweenSize(UD2(0.26, 0, 0.03, 0), "Out", "Quad", Menu_Update_Speed, Constant_Update)
  1609. MANACOVER:TweenSize(UD2(1 * (Mana.Value / Max_Mana), 0, 1, 0), "Out", "Quad", Menu_Update_Speed, Constant_Update)
  1610. MANATEXT.Text = Mana_Name.." ["..FLOOR(Mana.Value).."]"
  1611. HEALTHBAR:TweenSize(UD2(0.26, 0, 0.03, 0), "Out", "Quad", Menu_Update_Speed, Constant_Update)
  1612. HEALTHCOVER:TweenSize(UD2(1 * (Humanoid.Health / Humanoid.MaxHealth), 0, 1, 0), "Out", "Quad", Menu_Update_Speed, Constant_Update)
  1613. HEALTHTEXT.Text = "Health ["..FLOOR(Humanoid.Health).."]"
  1614. if Enable_Abilities == true then
  1615. SKILL1FRAME:TweenSize(UD2(0.26, 0, 0.06, 0), "Out", "Quad", Menu_Update_Speed, Constant_Update)
  1616. SKILL2FRAME:TweenSize(UD2(0.26, 0, 0.06, 0), "Out", "Quad", Menu_Update_Speed, Constant_Update)
  1617. SKILL3FRAME:TweenSize(UD2(0.26, 0, 0.06, 0), "Out", "Quad", Menu_Update_Speed, Constant_Update)
  1618. SKILL4FRAME:TweenSize(UD2(0.26, 0, 0.06, 0), "Out", "Quad", Menu_Update_Speed, Constant_Update)
  1619. SKILL1BAR:TweenSize(UD2(1 * (CO1 / Cooldown_1), 0, 1, 0), "Out", "Quad", Menu_Update_Speed, Constant_Update)
  1620. SKILL2BAR:TweenSize(UD2(1 * (CO2 / Cooldown_2), 0, 1, 0), "Out", "Quad", Menu_Update_Speed, Constant_Update)
  1621. SKILL3BAR:TweenSize(UD2(1 * (CO3 / Cooldown_3), 0, 1, 0), "Out", "Quad", Menu_Update_Speed, Constant_Update)
  1622. SKILL4BAR:TweenSize(UD2(1 * (CO4 / Cooldown_4), 0, 1, 0), "Out", "Quad", Menu_Update_Speed, Constant_Update)
  1623. end
  1624. if Enable_Stats == true and Show_Stats == true then
  1625. DEFENSEFRAME:TweenSize(UD2(0.075, 0, 0.03), "Out", "Quad", Menu_Update_Speed, Constant_Update)
  1626. DEFENSETEXT.Text = "Defense ["..(Defense.Value * 100).."%]"
  1627. DAMAGEFRAME:TweenSize(UD2(0.075, 0, 0.03), "Out", "Quad", Menu_Update_Speed, Constant_Update)
  1628. DAMAGETEXT.Text = "Damage ["..(Damage.Value * 100).."%]"
  1629. MOVEMENTFRAME:TweenSize(UD2(0.075, 0, 0.03), "Out", "Quad", Menu_Update_Speed, Constant_Update)
  1630. MOVEMENTTEXT.Text = "Movement ["..(Movement.Value * 100).."%]"
  1631. end
  1632. if Enable_Stun == true then
  1633. STUNFRAME:TweenSize(UD2(0.26, 0, 0.03, 0), "Out", "Quad", Menu_Update_Speed, Constant_Update)
  1634. STUNBAR:TweenSize(UD2(1 * (StunValue.Value / Max_Stun), 0, 1, 0), "Out", "Quad", Menu_Update_Speed, Constant_Update)
  1635. STUNTEXT.Text = "Stun ["..FLOOR(StunValue.Value).."]"
  1636. end
  1637. if Enable_Secondary_Bar == true then
  1638. SECONDARYMANABAR:TweenSize(UD2(0.26, 0, 0.03, 0), "Out", "Quad", Menu_Update_Speed, Constant_Update)
  1639. SECONDARYMANACOVER:TweenSize(UD2(1 * (SecondaryMana.Value / Max_Secondary_Mana), 0, 1, 0), "Out", "Quad", Menu_Update_Speed, Constant_Update)
  1640. SECONDARYMANATEXT.Text = Secondary_Mana_Name.." ["..FLOOR(SecondaryMana.Value).."]"
  1641. end
  1642. end
  1643.  
  1644. if Enable_Gui == true then
  1645. UpdateGUI()
  1646. for _, v in pairs (WEAPONGUI:GetChildren()) do
  1647. if v.ClassName == "Frame" then
  1648. for _, b in pairs (v:GetChildren()) do
  1649. if b.ClassName == "TextLabel" then
  1650. coroutine.resume(coroutine.create(function(THETEXTLABEL)
  1651. wait(Menu_Update_Speed)
  1652. for i = 1, 0, -0.1 do
  1653. Swait()
  1654. THETEXTLABEL.TextTransparency = i
  1655. THETEXTLABEL.TextStrokeTransparency = i
  1656. end
  1657. THETEXTLABEL.TextTransparency = 0
  1658. THETEXTLABEL.TextStrokeTransparency = 0
  1659. end), b)
  1660. end
  1661. end
  1662. end
  1663. end
  1664. end
  1665.  
  1666. --//=================================\\
  1667. --\\=================================//
  1668.  
  1669.  
  1670.  
  1671.  
  1672.  
  1673. --//=================================\\
  1674. --|| SKILL FUNCTIONS
  1675. --\\=================================//
  1676.  
  1677. function UpdateSkillsAndStuff()
  1678. if Mana_Regen_Mode == "1" then
  1679. if Mana.Value >= Max_Mana then
  1680. Mana.Value = Max_Mana
  1681. elseif Mana.Value < 0 then
  1682. Mana.Value = 0
  1683. else
  1684. if MANADELAYNUMBER <= Mana_Wait then
  1685. MANADELAYNUMBER = MANADELAYNUMBER + 1
  1686. else
  1687. MANADELAYNUMBER = 0
  1688. Mana.Value = Mana.Value + Recover_Mana
  1689. end
  1690. end
  1691. elseif Mana_Regen_Mode == "2" then
  1692. if Mana.Value <= Max_Mana then
  1693. Mana.Value = Mana.Value + (Recover_Mana / 30) / Animation_Speed
  1694. elseif Mana.Value >= Max_Mana then
  1695. Mana.Value = Max_Mana
  1696. elseif Mana.Value < 0 then
  1697. Mana.Value = 0
  1698. end
  1699. end
  1700. if Enable_Secondary_Bar == true then
  1701. if Secondary_Mana_Regen_Mode == "1" then
  1702. if SecondaryMana.Value >= Max_Secondary_Mana then
  1703. SecondaryMana.Value = Max_Secondary_Mana
  1704. elseif SecondaryMana.Value < 0 then
  1705. SecondaryMana.Value = 0
  1706. else
  1707. if SECONDARYMANADELAYNUMBER <= Secondary_Mana_Wait then
  1708. SECONDARYMANADELAYNUMBER = SECONDARYMANADELAYNUMBER + 1
  1709. else
  1710. SECONDARYMANADELAYNUMBER = 0
  1711. SecondaryMana.Value = SecondaryMana.Value + Recover_Secondary_Mana
  1712. end
  1713. end
  1714. elseif Secondary_Mana_Regen_Mode == "2" then
  1715. if SecondaryMana.Value <= Max_Secondary_Mana then
  1716. SecondaryMana.Value = SecondaryMana.Value + (Recover_Secondary_Mana / 30) / Animation_Speed
  1717. elseif SecondaryMana.Value >= Max_Secondary_Mana then
  1718. SecondaryMana.Value = Max_Secondary_Mana
  1719. elseif SecondaryMana.Value < 0 then
  1720. SecondaryMana.Value = 0
  1721. end
  1722. end
  1723. else
  1724. SecondaryMana.Value = 0
  1725. end
  1726. if Enable_Stun == true then
  1727. if Stun_Lose_Mode == "1" then
  1728. if StunValue.Value > Max_Stun then
  1729. StunValue.Value = Max_Stun
  1730. elseif StunValue.Value <= 0 then
  1731. StunValue.Value = 0
  1732. else
  1733. if STUNDELAYNUMBER <= Stun_Wait then
  1734. STUNDELAYNUMBER = STUNDELAYNUMBER + 1
  1735. else
  1736. STUNDELAYNUMBER = 0
  1737. StunValue.Value = StunValue.Value - Lose_Stun
  1738. end
  1739. end
  1740. elseif Stun_Lose_Mode == "2" then
  1741. if StunValue.Value <= Max_Stun and StunValue.Value > 0 then
  1742. StunValue.Value = StunValue.Value - (Lose_Stun / 30) / Animation_Speed
  1743. elseif StunValue.Value > Max_Stun then
  1744. StunValue.Value = Max_Stun
  1745. elseif StunValue.Value <= 0 then
  1746. StunValue.Value = 0
  1747. end
  1748. end
  1749. else
  1750. StunValue.Value = 0
  1751. end
  1752. if Enable_Abilities == true then
  1753. if CO1 <= Cooldown_1 then
  1754. CO1 = CO1 + (1 / 30) / Animation_Speed
  1755. elseif CO1 >= Cooldown_1 then
  1756. CO1 = Cooldown_1
  1757. end
  1758. if CO2 <= Cooldown_2 then
  1759. CO2 = CO2 + (1 / 30) / Animation_Speed
  1760. elseif CO2 >= Cooldown_2 then
  1761. CO2 = Cooldown_2
  1762. end
  1763. if CO3 <= Cooldown_3 then
  1764. CO3 = CO3 + (1 / 30) / Animation_Speed
  1765. elseif CO3 >= Cooldown_3 then
  1766. CO3 = Cooldown_3
  1767. end
  1768. if CO4 <= Cooldown_4 then
  1769. CO4 = CO4 + (1 / 30) / Animation_Speed
  1770. elseif CO4 >= Cooldown_4 then
  1771. CO4 = Cooldown_4
  1772. end
  1773. end
  1774. end
  1775.  
  1776. --//=================================\\
  1777. --\\=================================//
  1778.  
  1779.  
  1780.  
  1781.  
  1782.  
  1783. --//=================================\\
  1784. --|| ATTACK FUNCTIONS AND STUFF
  1785. --\\=================================//
  1786.  
  1787. function EquipWeapon()
  1788. --ATTACK = true
  1789. DEFENSECHANGE1.Parent = nil
  1790. MOVEMENTCHANGE1.Parent = ChangeStat
  1791. for i=0, 1, 0.5 / Animation_Speed do
  1792. Swait()
  1793. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(5), RAD(0), RAD(-30)), 0.3 / Animation_Speed)
  1794. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(-20), RAD(0), RAD(-20)), 0.3 / Animation_Speed)
  1795. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.75 * Player_Size, 0 * Player_Size) * ANGLES(RAD(140), RAD(0), RAD(20)) * ANGLES(RAD(0), RAD(45), RAD(0)) * RIGHTSHOULDERC0, 0.3 / Animation_Speed)
  1796. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(5), RAD(0), RAD(-15)) * LEFTSHOULDERC0, 0.3 / Animation_Speed)
  1797. RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -0.8 * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(0), RAD(95), RAD(0)) * ANGLES(RAD(-10), RAD(0), RAD(-7.5)), 0.3 / Animation_Speed)
  1798. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -0.8 * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(0), RAD(-55), RAD(0)) * ANGLES(RAD(-7.5), RAD(0), RAD(-5)), 0.3 / Animation_Speed)
  1799. end
  1800. for i=0, 1, 0.08 / Animation_Speed do
  1801. Swait()
  1802. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(5), RAD(0), RAD(-30)), 0.3 / Animation_Speed)
  1803. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(-20), RAD(0), RAD(-20)), 0.3 / Animation_Speed)
  1804. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.75 * Player_Size, 0 * Player_Size) * ANGLES(RAD(210), RAD(0), RAD(20)) * ANGLES(RAD(0), RAD(90), RAD(0)) * RIGHTSHOULDERC0, 0.3 / Animation_Speed)
  1805. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(5), RAD(0), RAD(-15)) * LEFTSHOULDERC0, 0.3 / Animation_Speed)
  1806. RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -0.8 * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(0), RAD(95), RAD(0)) * ANGLES(RAD(-10), RAD(0), RAD(-7.5)), 0.3 / Animation_Speed)
  1807. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -0.8 * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(0), RAD(-55), RAD(0)) * ANGLES(RAD(-7.5), RAD(0), RAD(-5)), 0.3 / Animation_Speed)
  1808. end
  1809. HandleWeld.Part0 = RightArm
  1810. HandleWeld.C0 = CF(-0.05 * Player_Size, -1 * Player_Size, -0.05 * Player_Size) * ANGLES(RAD(-27), RAD(0), RAD(-19)) * ANGLES(RAD(0), RAD(110), RAD(0))
  1811. CreateSound("174884033", HitboxPart, 1, 1.5)
  1812. for i=0, 1, 0.5 / Animation_Speed do
  1813. Swait()
  1814. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(5), RAD(0), RAD(-30)), 0.3 / Animation_Speed)
  1815. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(-2.5), RAD(0), RAD(30)), 0.3 / Animation_Speed)
  1816. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), RAD(0), RAD(80)) * ANGLES(RAD(20), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.3 / Animation_Speed)
  1817. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(5), RAD(0), RAD(-25)) * LEFTSHOULDERC0, 0.3 / Animation_Speed)
  1818. RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -0.8 * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(0), RAD(95), RAD(0)) * ANGLES(RAD(-10), RAD(0), RAD(-7.5)), 0.3 / Animation_Speed)
  1819. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -0.8 * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(0), RAD(-55), RAD(0)) * ANGLES(RAD(-7.5), RAD(0), RAD(-5)), 0.3 / Animation_Speed)
  1820. HandleWeld.C0 = Clerp(HandleWeld.C0, CF(0 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-70), RAD(90), RAD(0)), 0.3 / Animation_Speed)
  1821. end
  1822. LASTPOINT = EffectPart.CFrame
  1823. for i=0, 1, 0.08 / Animation_Speed do
  1824. Swait()
  1825. TrailEffect("Institutional white", "Neon", EffectPart.CFrame, LASTPOINT, "Block", 0, 0.2, ANGLES(0, 0, 0), -0.01, 0, -0.01, 0.1)
  1826. LASTPOINT = EffectPart.CFrame
  1827. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(5), RAD(0), RAD(-30)), 0.4 / Animation_Speed)
  1828. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(-2.5), RAD(0), RAD(30)), 0.4 / Animation_Speed)
  1829. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), RAD(0), RAD(80)) * ANGLES(RAD(-60), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.4 / Animation_Speed)
  1830. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(5), RAD(0), RAD(-25)) * LEFTSHOULDERC0, 0.4 / Animation_Speed)
  1831. RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -0.8 * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(0), RAD(95), RAD(0)) * ANGLES(RAD(-10), RAD(0), RAD(-7.5)), 0.4 / Animation_Speed)
  1832. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -0.8 * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(0), RAD(-55), RAD(0)) * ANGLES(RAD(-7.5), RAD(0), RAD(-5)), 0.4 / Animation_Speed)
  1833. HandleWeld.C0 = Clerp(HandleWeld.C0, CF(0 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-140), RAD(90), RAD(0)), 0.3 / Animation_Speed)
  1834. end
  1835. LASTPOINT = nil
  1836. --ATTACK = false
  1837. end
  1838.  
  1839. function UnequipWeapon()
  1840. --ATTACK = true
  1841. for i=0, 1, 0.5 / Animation_Speed do
  1842. Swait()
  1843. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(5), RAD(0), RAD(-30)), 0.3 / Animation_Speed)
  1844. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(-20), RAD(0), RAD(-20)), 0.3 / Animation_Speed)
  1845. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.75 * Player_Size, 0 * Player_Size) * ANGLES(RAD(140), RAD(0), RAD(20)) * ANGLES(RAD(0), RAD(45), RAD(0)) * RIGHTSHOULDERC0, 0.3 / Animation_Speed)
  1846. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(5), RAD(0), RAD(-25)) * LEFTSHOULDERC0, 0.3 / Animation_Speed)
  1847. RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -0.8 * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(0), RAD(95), RAD(0)) * ANGLES(RAD(-10), RAD(0), RAD(-7.5)), 0.3 / Animation_Speed)
  1848. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -0.8 * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(0), RAD(-55), RAD(0)) * ANGLES(RAD(-7.5), RAD(0), RAD(-5)), 0.3 / Animation_Speed)
  1849. HandleWeld.C0 = Clerp(HandleWeld.C0, CF(-0.05 * Player_Size, -1 * Player_Size, -0.05 * Player_Size) * ANGLES(RAD(-27), RAD(0), RAD(-19)) * ANGLES(RAD(0), RAD(110), RAD(0)), 0.3 / Animation_Speed)
  1850. end
  1851. CreateSound("245542809", HitboxPart, 1, 1.2)
  1852. for i=0, 1, 0.08 / Animation_Speed do
  1853. Swait()
  1854. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(5), RAD(0), RAD(-30)), 0.3 / Animation_Speed)
  1855. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(-20), RAD(0), RAD(-20)), 0.3 / Animation_Speed)
  1856. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.75 * Player_Size, 0 * Player_Size) * ANGLES(RAD(210), RAD(0), RAD(20)) * ANGLES(RAD(0), RAD(90), RAD(0)) * RIGHTSHOULDERC0, 0.3 / Animation_Speed)
  1857. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(5), RAD(0), RAD(-25)) * LEFTSHOULDERC0, 0.3 / Animation_Speed)
  1858. RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -0.8 * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(0), RAD(95), RAD(0)) * ANGLES(RAD(-10), RAD(0), RAD(-7.5)), 0.3 / Animation_Speed)
  1859. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -0.8 * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(0), RAD(-55), RAD(0)) * ANGLES(RAD(-7.5), RAD(0), RAD(-5)), 0.3 / Animation_Speed)
  1860. HandleWeld.C0 = Clerp(HandleWeld.C0, CF(-0.05 * Player_Size, -1 * Player_Size, -0.05 * Player_Size) * ANGLES(RAD(-27), RAD(0), RAD(-19)) * ANGLES(RAD(0), RAD(110), RAD(0)), 0.3 / Animation_Speed)
  1861. end
  1862. HandleWeld.Part0 = Torso
  1863. HandleWeld.C0 = CF(2 * Player_Size, 2 * Player_Size, 0.6 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(135))
  1864. for i=0, 1, 0.5 / Animation_Speed do
  1865. Swait()
  1866. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(5), RAD(0), RAD(-30)), 0.3 / Animation_Speed)
  1867. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(-2.5), RAD(0), RAD(30)), 0.3 / Animation_Speed)
  1868. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.75 * Player_Size, 0 * Player_Size) * ANGLES(RAD(140), RAD(0), RAD(20)) * ANGLES(RAD(0), RAD(45), RAD(0)) * RIGHTSHOULDERC0, 0.3 / Animation_Speed)
  1869. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(5), RAD(0), RAD(-15)) * LEFTSHOULDERC0, 0.3 / Animation_Speed)
  1870. RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -0.8 * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(0), RAD(95), RAD(0)) * ANGLES(RAD(-10), RAD(0), RAD(-7.5)), 0.3 / Animation_Speed)
  1871. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -0.8 * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(0), RAD(-55), RAD(0)) * ANGLES(RAD(-7.5), RAD(0), RAD(-5)), 0.3 / Animation_Speed)
  1872. end
  1873. for i=0, 1, 0.08 / Animation_Speed do
  1874. Swait()
  1875. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.3 / Animation_Speed)
  1876. RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.3 / Animation_Speed)
  1877. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.3 / Animation_Speed)
  1878. Neck.C1 = Clerp(Neck.C1, CF(0 * Player_Size, -0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-90), RAD(0), RAD(180)), 0.3 / Animation_Speed)
  1879. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.3 / Animation_Speed)
  1880. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)) * LEFTSHOULDERC0, 0.3 / Animation_Speed)
  1881. if Disable_Moving_Arms == false then
  1882. RightShoulder.C1 = Clerp(RightShoulder.C1, ANGLES(0, RAD(90), 0) * CF(0 * Player_Size, 0.5 * Player_Size, -0.5), 0.3 / Animation_Speed)
  1883. LeftShoulder.C1 = Clerp(LeftShoulder.C1, ANGLES(0, RAD(-90), 0) * CF(0 * Player_Size, 0.5 * Player_Size, -0.5), 0.3 / Animation_Speed)
  1884. else
  1885. RightShoulder.C1 = Clerp(RightShoulder.C1, CF(0 * Player_Size, 0.5 * Player_Size, 0 * Player_Size), 0.3 / Animation_Speed)
  1886. LeftShoulder.C1 = Clerp(LeftShoulder.C1, CF(0 * Player_Size, 0.5 * Player_Size, 0 * Player_Size), 0.3 / Animation_Speed)
  1887. end
  1888. RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.3 / Animation_Speed)
  1889. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.3 / Animation_Speed)
  1890. RightHip.C1 = Clerp(RightHip.C1, CF(0.5 * Player_Size, 1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.3 / Animation_Speed)
  1891. LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5 * Player_Size, 1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.3 / Animation_Speed)
  1892. end
  1893. RootJoint.C0 = ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0))
  1894. RootJoint.C1 = ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0))
  1895. Neck.C0 = NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0))
  1896. Neck.C1 = CF(0 * Player_Size, -0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-90), RAD(0), RAD(180))
  1897. RightShoulder.C0 = CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)) * RIGHTSHOULDERC0
  1898. LeftShoulder.C0 = CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)) * LEFTSHOULDERC0
  1899. if Disable_Moving_Arms == false then
  1900. RightShoulder.C1 = ANGLES(0, RAD(90), 0) * CF(0 * Player_Size, 0.5 * Player_Size, -0.5)
  1901. LeftShoulder.C1 = ANGLES(0, RAD(-90), 0) * CF(0 * Player_Size, 0.5 * Player_Size, -0.5)
  1902. else
  1903. RightShoulder.C1 = CF(0 * Player_Size, 0.5 * Player_Size, 0 * Player_Size)
  1904. LeftShoulder.C1 = CF(0 * Player_Size, 0.5 * Player_Size, 0 * Player_Size)
  1905. end
  1906. RightHip.C0 = CF(1 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0))
  1907. LeftHip.C0 = CF(-1 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0))
  1908. RightHip.C1 = CF(0.5 * Player_Size, 1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0))
  1909. LeftHip.C1 = CF(-0.5 * Player_Size, 1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0))
  1910. --ATTACK = false
  1911. DEFENSECHANGE1.Parent = ChangeStat
  1912. MOVEMENTCHANGE1.Parent = nil
  1913. end
  1914.  
  1915. function StaggerHitAnimation()
  1916. ATTACK = true
  1917. if Weapon:FindFirstChild("Hitbox") ~= nil then
  1918. for i = 1, MRANDOM(2, 4) do
  1919. ClangEffect("Black", "Neon", CF(Weapon:FindFirstChild("Hitbox").Position) * ANGLES(RAD(MRANDOM(-50, 50)), RAD(MRANDOM(-50, 50)), RAD(MRANDOM(-50, 50))), 20, 5, 0.2, MRANDOM(5, 15) / 10, 0, -0.02, 0, -0.02, 0.1)
  1920. end
  1921. end
  1922. for i = 0, 1, 0.1 / Animation_Speed do
  1923. Swait()
  1924. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-10), RAD(0), RAD(-30)), 0.3 / Animation_Speed)
  1925. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(0), RAD(0), RAD(30)) * ANGLES(RAD(5), RAD(0), RAD(0)), 0.3 / Animation_Speed)
  1926. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-30), RAD(0), RAD(60)) * ANGLES(RAD(0), RAD(-30), RAD(0)) * RIGHTSHOULDERC0, 0.3 / Animation_Speed)
  1927. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-20), RAD(0), RAD(-20)) * ANGLES(RAD(0), RAD(20), RAD(0)) * LEFTSHOULDERC0, 0.3 / Animation_Speed)
  1928. RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -0.9 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-10), RAD(0), RAD(-20)), 0.3 / Animation_Speed)
  1929. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -1.1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(-70), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(10)), 0.3 / Animation_Speed)
  1930. if Stagger.Value == true or Stun.Value == true then
  1931. break
  1932. end
  1933. end
  1934. ATTACK = false
  1935. end
  1936.  
  1937. function StaggerAnimation()
  1938. ATTACK = true
  1939. if Weapon:FindFirstChild("Hitbox") ~= nil then
  1940. for i = 1, MRANDOM(2, 4) do
  1941. ClangEffect("White", "Neon", CF(Weapon:FindFirstChild("Hitbox").Position) * ANGLES(RAD(MRANDOM(-50, 50)), RAD(MRANDOM(-50, 50)), RAD(MRANDOM(-50, 50))), 20, 5, 0.2, MRANDOM(5, 15) / 10, 0, -0.02, 0, -0.02, 0.1)
  1942. end
  1943. end
  1944. DISABLEJUMPING = true
  1945. COMBO = 1
  1946. StatLabel("Interruption", Head.CFrame * CF(0, 0 + (Head.Size.z - 1), 0), "Staggered!", C3(255 / 255, 255 / 255, 0))
  1947. local STAGGERVELOCITY = Instance.new("BodyVelocity",Torso)
  1948. STAGGERVELOCITY.P = 500
  1949. STAGGERVELOCITY.maxForce = VT(math.huge, 0, math.huge)
  1950. if Rooted.Value == false then
  1951. STAGGERVELOCITY.Velocity = RootPart.CFrame.lookVector * -40
  1952. end
  1953. for i = 0, 1, 0.35 / Animation_Speed do
  1954. Swait()
  1955. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-5), RAD(0), RAD(-20)), 0.3 / Animation_Speed)
  1956. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(2.5), RAD(0), RAD(20)), 0.3 / Animation_Speed)
  1957. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size,0 * Player_Size) * ANGLES(RAD(-15), RAD(0), RAD(30)) * RIGHTSHOULDERC0, 0.3 / Animation_Speed)
  1958. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size,0 * Player_Size) * ANGLES(RAD(-7.5), RAD(0), RAD(-20)) * LEFTSHOULDERC0, 0.3 / Animation_Speed)
  1959. RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -1 * Player_Size,0 * Player_Size) * ANGLES(RAD(0), RAD(80), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(30)), 0.3 / Animation_Speed)
  1960. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -1 * Player_Size,0 * Player_Size) * ANGLES(RAD(0), RAD(-70), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(5)), 0.3 / Animation_Speed)
  1961. end
  1962. for i = 0, 1, 0.2 / Animation_Speed do
  1963. Swait()
  1964. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -0.25 * Player_Size) * ANGLES(RAD(-25), RAD(0), RAD(-20)), 0.4 / Animation_Speed)
  1965. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(-5), RAD(0), RAD(20)), 0.4 / Animation_Speed)
  1966. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-15), RAD(0), RAD(30)) * RIGHTSHOULDERC0, 0.4 / Animation_Speed)
  1967. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-7.5), RAD(0), RAD(-20)) * LEFTSHOULDERC0, 0.4 / Animation_Speed)
  1968. RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(80), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(50)), 0.4 / Animation_Speed)
  1969. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(-70), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(25)), 0.4 / Animation_Speed)
  1970. end
  1971. STAGGERVELOCITY.Parent = nil
  1972. for i = 1, 50 * Animation_Speed do
  1973. Swait()
  1974. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -1.8 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(-20)) * ANGLES(RAD(-5), RAD(-5), RAD(0)), 0.3 / Animation_Speed)
  1975. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(20), RAD(0), RAD(20)) * ANGLES(RAD(0), RAD(5), RAD(0)), 0.3 / Animation_Speed)
  1976. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(20)) * ANGLES(RAD(0), RAD(-20), RAD(0)) * RIGHTSHOULDERC0, 0.3 / Animation_Speed)
  1977. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-15), RAD(0), RAD(-10)) * ANGLES(RAD(0), RAD(15), RAD(0)) * LEFTSHOULDERC0, 0.3 / Animation_Speed)
  1978. RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -0.4 * Player_Size, -0.3 * Player_Size) * ANGLES(RAD(0), RAD(75), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(70)) * ANGLES(RAD(0), RAD(30), RAD(0)), 0.3 / Animation_Speed)
  1979. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, 0.5 * Player_Size, -0.5 * Player_Size) * ANGLES(RAD(0), RAD(-80), RAD(0)) * ANGLES(RAD(-2.5), RAD(0), RAD(-10)), 0.3 / Animation_Speed)
  1980. end
  1981. DISABLEJUMPING = false
  1982. ATTACK = false
  1983. end
  1984.  
  1985. function StunAnimation()
  1986. ATTACK = true
  1987. DISABLEJUMPING = true
  1988. COMBO = 1
  1989. StatLabel("Interruption", Head.CFrame * CF(0, 0 + (Head.Size.z - 1), 0), "Stunned!", C3(255 / 255, 255 / 255, 0))
  1990. for i = 0, 1, 0.3 / Animation_Speed do
  1991. Swait()
  1992. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -0.05 * Player_Size) * ANGLES(RAD(15), RAD(0), RAD(-150)), 0.3 / Animation_Speed)
  1993. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(-10), RAD(0), RAD(-20)), 0.3 / Animation_Speed)
  1994. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(30), RAD(0), RAD(40)) * RIGHTSHOULDERC0, 0.3 / Animation_Speed)
  1995. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-20), RAD(0), RAD(-50)) * LEFTSHOULDERC0, 0.3 / Animation_Speed)
  1996. RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(85), RAD(0)) * ANGLES(RAD(-15), RAD(0), RAD(30)), 0.3 / Animation_Speed)
  1997. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(-80), RAD(0)) * ANGLES(RAD(-10), RAD(0), RAD(20)), 0.3 / Animation_Speed)
  1998. end
  1999. for i = 0, 1, 0.3 / Animation_Speed do
  2000. Swait()
  2001. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -0.05 * Player_Size) * ANGLES(RAD(45), RAD(0), RAD(-180)), 0.4 / Animation_Speed)
  2002. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(-15), RAD(0), RAD(-30)), 0.4 / Animation_Speed)
  2003. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(30), RAD(0), RAD(40)) * RIGHTSHOULDERC0, 0.4 / Animation_Speed)
  2004. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-20), RAD(0), RAD(-50)) * LEFTSHOULDERC0, 0.4 / Animation_Speed)
  2005. RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(85), RAD(0)) * ANGLES(RAD(-10), RAD(0), RAD(15)), 0.4 / Animation_Speed)
  2006. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(-80), RAD(0)) * ANGLES(RAD(-10), RAD(0), RAD(50)), 0.4 / Animation_Speed)
  2007. end
  2008. for i = 0, 1, 0.3 / Animation_Speed do
  2009. Swait()
  2010. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -0.3 * Player_Size) * ANGLES(RAD(75), RAD(0), RAD(-180)), 0.4 / Animation_Speed)
  2011. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(-15), RAD(0), RAD(-60)), 0.4 / Animation_Speed)
  2012. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(20), RAD(0), RAD(70)) * ANGLES(RAD(0), RAD(30), RAD(0)) * RIGHTSHOULDERC0, 0.4 / Animation_Speed)
  2013. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-10), RAD(0), RAD(-80)) * ANGLES(RAD(0), RAD(-40), RAD(0)) * LEFTSHOULDERC0, 0.4 / Animation_Speed)
  2014. RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(85), RAD(0)) * ANGLES(RAD(-15), RAD(0), RAD(10)), 0.4 / Animation_Speed)
  2015. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(-80), RAD(0)) * ANGLES(RAD(-10), RAD(0), RAD(80)), 0.4 / Animation_Speed)
  2016. end
  2017. for i = 1, 70 * Animation_Speed do
  2018. Swait()
  2019. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -2.5 * Player_Size) * ANGLES(RAD(90), RAD(0), RAD(-180)), 0.3 / Animation_Speed)
  2020. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(0), RAD(0), RAD(-90)), 0.3 / Animation_Speed)
  2021. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), RAD(-10), RAD(90)) * RIGHTSHOULDERC0, 0.3 / Animation_Speed)
  2022. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-90), RAD(0), RAD(-90)) * LEFTSHOULDERC0, 0.3 / Animation_Speed)
  2023. RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -1 * Player_Size, 0.2 * Player_Size) * ANGLES(RAD(0), RAD(70), RAD(0)) * ANGLES(RAD(-10), RAD(0), RAD(0)), 0.3 / Animation_Speed)
  2024. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(-80), RAD(0)) * ANGLES(RAD(-10), RAD(0), RAD(0)), 0.3 / Animation_Speed)
  2025. end
  2026. for i = 0, 1, 0.2 / Animation_Speed do
  2027. Swait()
  2028. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -1.5 * Player_Size) * ANGLES(RAD(20), RAD(0), RAD(100)), 0.4 / Animation_Speed)
  2029. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(0), RAD(0), RAD(-30)), 0.4 / Animation_Speed)
  2030. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-20), RAD(-10), RAD(30)) * RIGHTSHOULDERC0, 0.4 / Animation_Speed)
  2031. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(80), RAD(0), RAD(20)) * LEFTSHOULDERC0, 0.4 / Animation_Speed)
  2032. RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(60), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(70)), 0.4 / Animation_Speed)
  2033. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -0.25 * Player_Size, -1 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-10), RAD(0), RAD(20)), 0.4 / Animation_Speed)
  2034. end
  2035. DISABLEJUMPING = false
  2036. ATTACK = false
  2037. end
  2038.  
  2039. function EAbility()
  2040. ATTACK = true
  2041. ATTACK = false
  2042. end
  2043.  
  2044. function Attack1()
  2045. ATTACK = true
  2046. for i=0, 1, 0.1 / Animation_Speed do
  2047. Swait()
  2048. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(10), RAD(0), RAD(-40)), 0.4 / Animation_Speed)
  2049. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(5), RAD(0), RAD(35)), 0.4 / Animation_Speed)
  2050. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(150), RAD(0), RAD(-20)) * RIGHTSHOULDERC0, 0.4 / Animation_Speed)
  2051. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-0.25 * Player_Size, 0.5 * Player_Size, -0.75 * Player_Size) * ANGLES(RAD(160), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.4 / Animation_Speed)
  2052. RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -0.8 * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(0), RAD(80), RAD(0)) * ANGLES(RAD(-10), RAD(0), RAD(-5)), 0.4 / Animation_Speed)
  2053. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -0.8 * Player_Size, -0.075 * Player_Size) * ANGLES(RAD(0), RAD(-45), RAD(0)) * ANGLES(RAD(-2.5), RAD(0), RAD(-15)), 0.4 / Animation_Speed)
  2054. HandleWeld.C0 = Clerp(HandleWeld.C0, CF(0 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-80), RAD(90), RAD(0)), 0.4 / Animation_Speed)
  2055. if StaggerHit.Value == true or Stagger.Value == true or Stun.Value == true then
  2056. break
  2057. end
  2058. end
  2059. CreateSound("553461842", HitboxPart, 1.2, MRANDOM(8, 9) / 10)
  2060. local HASHITFLOOR = false
  2061. for i=0, 1, 0.1 / Animation_Speed do
  2062. Swait()
  2063. local Pos = HitboxPart
  2064. local Offset = HitboxPart.CFrame * CF(0, 0.1 * Player_Size, 0)
  2065. local Color = "Really black"
  2066. local Material = "Neon"
  2067. local TheDelay = 0.01
  2068. local Height = 6.2 * Player_Size
  2069. BLCF = Offset
  2070. --[[if SCFR and (Pos.Position - SCFR.p).magnitude > 0.1 then
  2071. local a, b = Triangle(Color, Material, (SCFR * CF(0, Height / 2,0)).p, (SCFR * CF(0, -Height / 2, 0)).p, (BLCF * CF(0, Height / 2,0)).p, TheDelay)
  2072. if a then game:GetService("Debris"):AddItem(a, 1) end
  2073. if b then game:GetService("Debris"):AddItem(b, 1) end
  2074. local a, b = Triangle(Color, Material, (BLCF * CF(0, Height / 2, 0)).p, (BLCF * CF(0, -Height / 2, 0)).p, (SCFR * CF(0, -Height / 2, 0)).p, TheDelay)
  2075. if a then game:GetService("Debris"):AddItem(a, 1) end
  2076. if b then game:GetService("Debris"):AddItem(b, 1) end
  2077. SCFR = BLCF
  2078. elseif not SCFR then
  2079. SCFR = BLCF
  2080. end]]--
  2081. local SWORDHIT, SWORDPOS = Raycast(EffectPart.Position, (CF(EffectPart.Position, EffectPart.Position + VT(0, -1, 0))).lookVector, 1 * Player_Size, Character)
  2082. if SWORDHIT ~= nil and HASHITFLOOR == false and SWORDHIT.Parent:FindFirstChild("Humanoid") == nil then
  2083. HASHITFLOOR = true
  2084. --print(SWORDHIT.Material)
  2085. if SWORDHIT.Material == Enum.Material.Grass or SWORDHIT.Material == Enum.Material.Ice or SWORDHIT.Material == Enum.Material.Fabric or SWORDHIT.Material == Enum.Material.SmoothPlastic or SWORDHIT.Material == Enum.Material.Sand or SWORDHIT.Material == Enum.Material.Plastic or SWORDHIT.Material == Enum.Material.Neon or SWORDHIT.Material == Enum.Material.Foil then
  2086. CreateSound("525717773", EffectPart, 1.2 , MRANDOM(8, 12) / 10)
  2087. elseif SWORDHIT.Material == Enum.Material.Metal or SWORDHIT.Material == Enum.Material.Concrete or SWORDHIT.Material == Enum.Material.Brick or SWORDHIT.Material == Enum.Material.CorrodedMetal or SWORDHIT.Material == Enum.Material.Slate or SWORDHIT.Material == Enum.Material.Marble or SWORDHIT.Material == Enum.Material.Granite or SWORDHIT.Material == Enum.Material.DiamondPlate or SWORDHIT.Material == Enum.Material.Pebble or SWORDHIT.Material == Enum.Material.Cobblestone then
  2088. CreateSound("470790670", EffectPart, 1 , MRANDOM(8, 12) / 10)
  2089. for i = 1, MRANDOM(2, 4) do
  2090. ClangEffect("Really black", "Neon", CF(SWORDPOS) * ANGLES(RAD(MRANDOM(-50, 50)), RAD(MRANDOM(-50, 50)), RAD(MRANDOM(-50, 50))), 10, 3, 0.2, MRANDOM(5, 15) / 10, 0, -0.02, 0, -0.02, 0.1)
  2091. end
  2092. elseif SWORDHIT.Material == Enum.Material.Wood or SWORDHIT.Material == Enum.Material.WoodPlanks then
  2093. CreateSound("514586161", EffectPart, 1 , MRANDOM(8, 12) / 10)
  2094. end
  2095. end
  2096. MagnitudeDamage(HITWEAPONSOUNDS[MRANDOM(1, #HITWEAPONSOUNDS)], HITARMORSOUNDS[MRANDOM(1, #HITARMORSOUNDS)], HITBLOCKSOUNDS[MRANDOM(1, #HITBLOCKSOUNDS)], HITPLAYERSOUNDS[MRANDOM(1, #HITPLAYERSOUNDS)], 1, 1, 1, 1, HitboxPart, 4, false, 35, 45, MRANDOM(5, 10), "Normal", RootPart, 0.5, 1, MRANDOM(5, 10), nil, true, false, nil, 0, 0, false)
  2097. if HASHITFLOOR == true then
  2098. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(10), RAD(0), RAD(30)), 0.4 / Animation_Speed)
  2099. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(5), RAD(0), RAD(-20)), 0.4 / Animation_Speed)
  2100. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(40), RAD(0), RAD(5)) * ANGLES(RAD(0), RAD(-30), RAD(0)) * RIGHTSHOULDERC0, 0.4 / Animation_Speed)
  2101. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(0 * Player_Size, 0.25 * Player_Size, -0.75 * Player_Size) * ANGLES(RAD(20), RAD(0), RAD(55)) * LEFTSHOULDERC0, 0.4 / Animation_Speed)
  2102. RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -0.8 * Player_Size, -0.075 * Player_Size) * ANGLES(RAD(0), RAD(50), RAD(0)) * ANGLES(RAD(-7.5), RAD(0), RAD(17.5)), 0.4 / Animation_Speed)
  2103. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -0.8 * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(0), RAD(-70), RAD(0)) * ANGLES(RAD(-10), RAD(0), RAD(5)), 0.4 / Animation_Speed)
  2104. HandleWeld.C0 = Clerp(HandleWeld.C0, CF(0 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-132.5), RAD(90), RAD(0)), 0.4 / Animation_Speed)
  2105. else
  2106. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(10), RAD(0), RAD(30)), 0.4 / Animation_Speed)
  2107. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(5), RAD(0), RAD(-20)), 0.4 / Animation_Speed)
  2108. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(30), RAD(0), RAD(5)) * ANGLES(RAD(0), RAD(-30), RAD(0)) * RIGHTSHOULDERC0, 0.4 / Animation_Speed)
  2109. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(0 * Player_Size, 0.25 * Player_Size, -0.75 * Player_Size) * ANGLES(RAD(10), RAD(0), RAD(55)) * LEFTSHOULDERC0, 0.4 / Animation_Speed)
  2110. RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -0.8 * Player_Size, -0.075 * Player_Size) * ANGLES(RAD(0), RAD(50), RAD(0)) * ANGLES(RAD(-7.5), RAD(0), RAD(17.5)), 0.4 / Animation_Speed)
  2111. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -0.8 * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(0), RAD(-70), RAD(0)) * ANGLES(RAD(-10), RAD(0), RAD(5)), 0.4 / Animation_Speed)
  2112. HandleWeld.C0 = Clerp(HandleWeld.C0, CF(0 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-150), RAD(90), RAD(0)), 0.4 / Animation_Speed)
  2113. end
  2114. if StaggerHit.Value == true or Stagger.Value == true or Stun.Value == true then
  2115. break
  2116. end
  2117. end
  2118. BLCF = nil
  2119. SCFR = nil
  2120. ATTACK = false
  2121. end
  2122.  
  2123. function Attack2()
  2124. ATTACK = true
  2125. for i=0, 1, 0.1 / Animation_Speed do
  2126. Swait()
  2127. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(10), RAD(0), RAD(20)), 0.4 / Animation_Speed)
  2128. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(5), RAD(0), RAD(-15)), 0.4 / Animation_Speed)
  2129. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(0.25 * Player_Size, 0.5 * Player_Size, -0.5 * Player_Size) * ANGLES(RAD(90), RAD(0), RAD(-70)) * ANGLES(RAD(20), RAD(90), RAD(0)) * RIGHTSHOULDERC0, 0.4 / Animation_Speed)
  2130. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-25), RAD(0), RAD(-35)) * LEFTSHOULDERC0, 0.4 / Animation_Speed)
  2131. RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -0.8 * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(0), RAD(65), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(15)), 0.4 / Animation_Speed)
  2132. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -0.8 * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(0), RAD(-80), RAD(0)) * ANGLES(RAD(-7.5), RAD(0), RAD(-5)), 0.4 / Animation_Speed)
  2133. HandleWeld.C0 = Clerp(HandleWeld.C0, CF(0 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-110), RAD(90), RAD(0)), 0.4 / Animation_Speed)
  2134. if StaggerHit.Value == true or Stagger.Value == true or Stun.Value == true then
  2135. break
  2136. end
  2137. end
  2138. CreateSound("553461718", HitboxPart, 1.2, MRANDOM(7, 9) / 10)
  2139. for i=0, 1, 0.1 / Animation_Speed do
  2140. Swait()
  2141. local Pos = HitboxPart
  2142. local Offset = HitboxPart.CFrame * CF(0, 0.1 * Player_Size, 0)
  2143. local Color = "Really black"
  2144. local Material = "Neon"
  2145. local TheDelay = 0.01
  2146. local Height = 6.2 * Player_Size
  2147. BLCF = Offset
  2148. --[[if SCFR and (Pos.Position - SCFR.p).magnitude > 0.1 then
  2149. local a, b = Triangle(Color, Material, (SCFR * CF(0, Height / 2,0)).p, (SCFR * CF(0, -Height / 2, 0)).p, (BLCF * CF(0, Height / 2,0)).p, TheDelay)
  2150. if a then game:GetService("Debris"):AddItem(a, 1) end
  2151. if b then game:GetService("Debris"):AddItem(b, 1) end
  2152. local a, b = Triangle(Color, Material, (BLCF * CF(0, Height / 2, 0)).p, (BLCF * CF(0, -Height / 2, 0)).p, (SCFR * CF(0, -Height / 2, 0)).p, TheDelay)
  2153. if a then game:GetService("Debris"):AddItem(a, 1) end
  2154. if b then game:GetService("Debris"):AddItem(b, 1) end
  2155. SCFR = BLCF
  2156. elseif not SCFR then
  2157. SCFR = BLCF
  2158. end]]--
  2159. MagnitudeDamage(HITWEAPONSOUNDS[MRANDOM(1, #HITWEAPONSOUNDS)], HITARMORSOUNDS[MRANDOM(1, #HITARMORSOUNDS)], HITBLOCKSOUNDS[MRANDOM(1, #HITBLOCKSOUNDS)], HITPLAYERSOUNDS[MRANDOM(1, #HITPLAYERSOUNDS)], 1, 1, 1, 1, HitboxPart, 4, false, 35, 45, MRANDOM(5, 10), "Normal", RootPart, 0.5, 1, MRANDOM(5, 10), nil, true, false, nil, 0, 0, false)
  2160. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(10), RAD(0), RAD(-30)), 0.4 / Animation_Speed)
  2161. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(2.5), RAD(0), RAD(30)), 0.4 / Animation_Speed)
  2162. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), RAD(0), RAD(100)) * ANGLES(RAD(-30), RAD(80), RAD(0)) * RIGHTSHOULDERC0, 0.4 / Animation_Speed)
  2163. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-15), RAD(0), RAD(-55)) * LEFTSHOULDERC0, 0.4 / Animation_Speed)
  2164. RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -0.8 * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(0), RAD(80), RAD(0)) * ANGLES(RAD(-2.5), RAD(0), RAD(5)), 0.4 / Animation_Speed)
  2165. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -0.8 * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(0), RAD(-65), RAD(0)) * ANGLES(RAD(-10), RAD(0), RAD(-15)), 0.4 / Animation_Speed)
  2166. HandleWeld.C0 = Clerp(HandleWeld.C0, CF(0 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-130), RAD(90), RAD(0)), 0.4 / Animation_Speed)
  2167. if StaggerHit.Value == true or Stagger.Value == true or Stun.Value == true then
  2168. break
  2169. end
  2170. end
  2171. BLCF = nil
  2172. SCFR = nil
  2173. ATTACK = false
  2174. end
  2175.  
  2176. function SilenceRoar()
  2177. local exp = Instance.new("Part")
  2178. exp.Parent = workspace
  2179. exp.Size = Vector3.new(1,1,1)
  2180. exp.Anchored = true
  2181. exp.Transparency = 0.25
  2182. exp.CanCollide = false
  2183. exp.CFrame = Head.CFrame
  2184. exp.BrickColor = BrickColor.new("Really black")
  2185. exp.Material = "Neon"
  2186. local meshe = Instance.new("SpecialMesh")
  2187. meshe.MeshType = "Sphere"
  2188. meshe.Parent = exp
  2189. for size = 1, 25 do
  2190. meshe.Scale = meshe.Scale + Vector3.new(5,5,5)
  2191. exp.Transparency = exp.Transparency + (1/25)
  2192. wait(0.00025)
  2193. end
  2194. exp:Destroy()
  2195. end
  2196.  
  2197. function ShootFireball(POSITION1, POSITION2, SPEED, SIZE, DURATION, LOWDAMAGE, HIGHDAMAGE)
  2198. local POS1 = POSITION1
  2199. local POS2 = POSITION2
  2200. local MOUSELOOK = CF((POS1 + POS2) / 2, POS2)
  2201. local FIREBALLSPEED = SPEED * Player_Size
  2202. local FIREBALLDURATION = DURATION
  2203. local FIREBALLCOLORS = {"Really black", "Black", "White"}
  2204. local FIREBALLHITSOUNDS = {"438666542", "314970790"}
  2205. coroutine.resume(coroutine.create(function()
  2206. repeat
  2207. Swait()
  2208. local FIREBALLHIT, FIREBALLPOS = Raycast(POS1, MOUSELOOK.lookVector, FIREBALLSPEED, Character)
  2209. POS1 = POS1 + (MOUSELOOK.lookVector * FIREBALLSPEED)
  2210. MagicBlock(FIREBALLCOLORS[MRANDOM(1, #FIREBALLCOLORS)], "Neon", CF(POS1) * ANGLES(RAD(MRANDOM(-50, 50)), RAD(MRANDOM(-50, 50)), RAD(MRANDOM(-50, 50))), ANGLES(0, 0, 0), VT(0, 0, 0), SIZE, SIZE, SIZE, SIZE / -10, SIZE / -10, SIZE / -10, 0.1)
  2211. if FIREBALLHIT ~= nil or FIREBALLDURATION <= 0.1 then
  2212. FIREBALLDURATION = 0
  2213. local FireballHitRefpart = CreatePart(3, Effects, "SmoothPlastic", 0, 1, "Really black", "Effect", VT())
  2214. FireballHitRefpart.Anchored = true
  2215. FireballHitRefpart.CFrame = CF(FIREBALLPOS)
  2216. game:GetService("Debris"):AddItem(FireballHitRefpart, 5)
  2217. CreateSound(FIREBALLHITSOUNDS[MRANDOM(1, #FIREBALLHITSOUNDS)], FireballHitRefpart, 1.4, MRANDOM(14, 16) / 10)
  2218. for i = 1, MRANDOM(4, 8) do
  2219. MagicBlock(FIREBALLCOLORS[MRANDOM(1, #FIREBALLCOLORS)], "Neon", FireballHitRefpart.CFrame * ANGLES(RAD(MRANDOM(-360, 360)), RAD(MRANDOM(-360, 360)), RAD(MRANDOM(-360, 360))), CF(0, MRANDOM(5, 7) / 10 * Player_Size, 0), VT(0, 0, 0), 5, 5, 5, 0, 0, 0, MRANDOM(3, 5) / 100)
  2220. end
  2221. MagicBlock("Really black", "Neon", FireballHitRefpart.CFrame * ANGLES(RAD(MRANDOM(-50, 50)), RAD(MRANDOM(-50, 50)), RAD(MRANDOM(-50, 50))), ANGLES(RAD(MRANDOM(-5, 5)), RAD(MRANDOM(-5, 5)), RAD(MRANDOM(-5, 5))), VT(0, 0, 0), SIZE, SIZE, SIZE, SIZE / 3, SIZE / 3, SIZE / 3, 0.05)
  2222. MagicBlock("Black", "Neon", FireballHitRefpart.CFrame * ANGLES(RAD(MRANDOM(-50, 50)), RAD(MRANDOM(-50, 50)), RAD(MRANDOM(-50, 50))), ANGLES(RAD(MRANDOM(-5, 5)), RAD(MRANDOM(-5, 5)), RAD(MRANDOM(-5, 5))), VT(0, 0, 0), SIZE * 0.5, SIZE * 0.5, SIZE * 0.5, SIZE / 4, SIZE / 4, SIZE / 4, 0.05)
  2223. MagicBlock("White", "Neon", FireballHitRefpart.CFrame * ANGLES(RAD(MRANDOM(-50, 50)), RAD(MRANDOM(-50, 50)), RAD(MRANDOM(-50, 50))), ANGLES(RAD(MRANDOM(-5, 5)), RAD(MRANDOM(-5, 5)), RAD(MRANDOM(-5, 5))), VT(0, 0, 0), SIZE * 0.25, SIZE * 0.25, SIZE * 0.25, SIZE / 5, SIZE / 5, SIZE / 5, 0.05)
  2224. MagnitudeDamage("", "", "", "", 1, 1, 1, 1, FireballHitRefpart, SIZE / 2, false, 50, 50, 0, "Normal", RootPart, 0, 1, MRANDOM(10, 15), nil, false, true, nil, 0, 0, false)
  2225. else
  2226. FIREBALLDURATION = FIREBALLDURATION - (1 / 30) / Animation_Speed
  2227. end
  2228. until FIREBALLHIT ~= nil or FIREBALLDURATION <= 0
  2229. end))
  2230. end
  2231.  
  2232. function ShootLargeFireball(POSITION1, POSITION2, SPEED, SIZE, DURATION, LOWDAMAGE, HIGHDAMAGE)
  2233. local POS1 = POSITION1
  2234. local POS2 = POSITION2
  2235. local MOUSELOOK = CF((POS1 + POS2) / 2, POS2)
  2236. local FIREBALLSPEED = SPEED * Player_Size
  2237. local FIREBALLDURATION = DURATION
  2238. local FIREBALLCOLORS = {"Really black", "Black", "White"}
  2239. local FIREBALLHITSOUNDS = {"178452241"}
  2240. coroutine.resume(coroutine.create(function()
  2241. repeat
  2242. Swait()
  2243. local FIREBALLHIT, FIREBALLPOS = Raycast(POS1, MOUSELOOK.lookVector, FIREBALLSPEED, Character)
  2244. POS1 = POS1 + (MOUSELOOK.lookVector * FIREBALLSPEED)
  2245. MagicBlock(FIREBALLCOLORS[MRANDOM(1, #FIREBALLCOLORS)], "Neon", CF(POS1) * ANGLES(RAD(MRANDOM(-50, 50)), RAD(MRANDOM(-50, 50)), RAD(MRANDOM(-50, 50))), ANGLES(0, 0, 0), VT(0, 0, 0), SIZE, SIZE, SIZE, SIZE / -10, SIZE / -10, SIZE / -10, 0.1)
  2246. if FIREBALLHIT ~= nil or FIREBALLDURATION <= 0.1 then
  2247. FIREBALLDURATION = 0
  2248. local FireballHitRefpart = CreatePart(3, Effects, "SmoothPlastic", 0, 1, "Really black", "Effect", VT())
  2249. FireballHitRefpart.Anchored = true
  2250. FireballHitRefpart.CFrame = CF(FIREBALLPOS)
  2251. game:GetService("Debris"):AddItem(FireballHitRefpart, 5)
  2252. CreateSound(FIREBALLHITSOUNDS[MRANDOM(1, #FIREBALLHITSOUNDS)], FireballHitRefpart, 1.4, MRANDOM(14, 16) / 10)
  2253. for i = 1, MRANDOM(4, 8) do
  2254. MagicBlock(FIREBALLCOLORS[MRANDOM(1, #FIREBALLCOLORS)], "Neon", FireballHitRefpart.CFrame * ANGLES(RAD(MRANDOM(-360, 360)), RAD(MRANDOM(-360, 360)), RAD(MRANDOM(-360, 360))), CF(0, MRANDOM(5, 7) / 10 * Player_Size, 0), VT(0, 0, 0), 5, 5, 5, 0, 0, 0, MRANDOM(3, 5) / 100)
  2255. end
  2256. MagicBlock("Really black", "Neon", FireballHitRefpart.CFrame * ANGLES(RAD(MRANDOM(-50, 50)), RAD(MRANDOM(-50, 50)), RAD(MRANDOM(-50, 50))), ANGLES(RAD(MRANDOM(-5, 5)), RAD(MRANDOM(-5, 5)), RAD(MRANDOM(-5, 5))), VT(0, 0, 0), SIZE, SIZE, SIZE, SIZE / 3, SIZE / 3, SIZE / 3, 0.05)
  2257. MagicBlock("Black", "Neon", FireballHitRefpart.CFrame * ANGLES(RAD(MRANDOM(-50, 50)), RAD(MRANDOM(-50, 50)), RAD(MRANDOM(-50, 50))), ANGLES(RAD(MRANDOM(-5, 5)), RAD(MRANDOM(-5, 5)), RAD(MRANDOM(-5, 5))), VT(0, 0, 0), SIZE * 0.5, SIZE * 0.5, SIZE * 0.5, SIZE / 4, SIZE / 4, SIZE / 4, 0.05)
  2258. MagicBlock("White", "Neon", FireballHitRefpart.CFrame * ANGLES(RAD(MRANDOM(-50, 50)), RAD(MRANDOM(-50, 50)), RAD(MRANDOM(-50, 50))), ANGLES(RAD(MRANDOM(-5, 5)), RAD(MRANDOM(-5, 5)), RAD(MRANDOM(-5, 5))), VT(0, 0, 0), SIZE * 0.25, SIZE * 0.25, SIZE * 0.25, SIZE / 5, SIZE / 5, SIZE / 5, 0.05)
  2259. MagnitudeDamage("", "", "", "", 1, 1, 1, 1, FireballHitRefpart, SIZE / 5, false, 50, 50, 0, "Normal", RootPart, 0, 1, MRANDOM(10, 15), nil, false, true, nil, 0, 0, false)
  2260. else
  2261. FIREBALLDURATION = FIREBALLDURATION - (1 / 30) / Animation_Speed
  2262. end
  2263. until FIREBALLHIT ~= nil or FIREBALLDURATION <= 0
  2264. end))
  2265. end
  2266.  
  2267. function FirePillar(POSITION1, POSITION2, SIZE, RISE, RANGE, LOWDAMAGE, HIGHDAMAGE, LASTINGTIME)
  2268. local POS1 = POSITION1
  2269. local POS2 = POSITION2
  2270. local MOUSELOOK = CF((POS1 + POS2) / 2, POS2)
  2271. local FIREPILLARHITSOUNDS = {"171378971", --[["646619365",--]] "472579737"--[[, "144140670"--]]}
  2272. local FIREPILLARCOLORS = {"White", "Black", "Really black"}
  2273. local FIREPILLAR1HIT, FIREPILLAR1POS = Raycast(POS1, MOUSELOOK.lookVector, RANGE * Player_Size, Character)
  2274. local FirePillarRefpart1 = CreatePart(3, Effects, "SmoothPlastic", 0, 1, "Really black", "Effect", VT())
  2275. FirePillarRefpart1.Anchored = true
  2276. FirePillarRefpart1.CFrame = CF(FIREPILLAR1POS) * CF(0, 10, 0)
  2277. game:GetService("Debris"):AddItem(FirePillarRefpart1, 5)
  2278. local FIREPILLAR2HIT, FIREPILLAR2POS = Raycast(FirePillarRefpart1.Position, CF(FirePillarRefpart1.Position, FirePillarRefpart1.Position + VT(0, -1, 0)).lookVector, 999, Character)
  2279. if FIREPILLAR2HIT ~= nil then
  2280. FirePillarRefpart1.Parent = nil
  2281. local FirePillarRefpart2 = CreatePart(3, Effects, "SmoothPlastic", 0, 1, "Really black", "Effect", VT())
  2282. FirePillarRefpart2.Anchored = true
  2283. FirePillarRefpart2.CFrame = CF(FIREPILLAR2POS)
  2284. game:GetService("Debris"):AddItem(FirePillarRefpart2, 5)
  2285. CreateSound(FIREPILLARHITSOUNDS[MRANDOM(1, #FIREPILLARHITSOUNDS)], FirePillarRefpart2, 1.2, MRANDOM(11, 13) / 10)
  2286. for i = 1, MRANDOM(5, 10) do
  2287. MagicBlock(FIREPILLARCOLORS[MRANDOM(1, #FIREPILLARCOLORS)], "Neon", FirePillarRefpart2.CFrame * ANGLES(RAD(MRANDOM(-60, 60)), 0, RAD(MRANDOM(-60, 60))), CF(0, MRANDOM(5, 7) / 10 * Player_Size, 0), VT(0, 0, 0), 3, 3, 3, 0, 0, 0, MRANDOM(3, 5) / 100)
  2288. end
  2289. for i = 1, MRANDOM(15, 20) do
  2290. local FIREEFFECTSIZE = MRANDOM(1, 2)
  2291. MagicBlock(FIREPILLARCOLORS[MRANDOM(1, #FIREPILLARCOLORS)], "Neon", FirePillarRefpart2.CFrame, CF(0, MRANDOM(5, 10) / 100, 0) * ANGLES(0, RAD(MRANDOM(-20, 20)), 0), VT(MRANDOM(SIZE / 6, SIZE / 4), 0, 0), FIREEFFECTSIZE, FIREEFFECTSIZE, FIREEFFECTSIZE, -0.02, -0.02, -0.02, MRANDOM(1, 2) / 100)
  2292. end
  2293. MagicCylinder("Dark stone gret", "Neon", CF(FIREPILLAR2POS), ANGLES(0, 0, 0), VT(0, 0, 0), SIZE, 0.1, SIZE, 1.5, 0, 1.5, LASTINGTIME)
  2294. MagicSphere("Really black", "Neon", FirePillarRefpart2.CFrame, ANGLES(0, 0, 0), VT(0, 0, 0), SIZE, 0.1, SIZE, 1.5, RISE, 1.5, LASTINGTIME)
  2295. MagicSphere("Black", "Neon", FirePillarRefpart2.CFrame, ANGLES(0, 0, 0), VT(0, 0, 0), SIZE * 0.5, 0.1, SIZE * 0.5, 1.5, RISE * 0.75, 1.5, LASTINGTIME)
  2296. MagicSphere("White", "Neon", FirePillarRefpart2.CFrame, ANGLES(0, 0, 0), VT(0, 0, 0), SIZE * 0.25, 0.1, SIZE * 0.25, 1.5, RISE * 0.375, 1.5, LASTINGTIME)
  2297. MagnitudeDamage("", "", "", "", 1, 1, 1, 1, FirePillarRefpart2, SIZE / 3, false, 60, 60, 0, "Normal", RootPart, 0, 1, MRANDOM(10, 15), nil, false, true, "Movement", -0.1, 3, true)
  2298. end
  2299. end
  2300.  
  2301. function Attack3()
  2302. ATTACK = true
  2303. local FIREEFFECTCOLORS = {"Black", "Really black", "White"}
  2304. for i=0, 1, 0.1 / Animation_Speed do
  2305. Swait()
  2306. for i = 1, 2 do
  2307. MagicBlock(FIREEFFECTCOLORS[MRANDOM(1, #FIREEFFECTCOLORS)], "Neon", LeftArm.CFrame * CF(0, MRANDOM(-10, 10) / 10 * Player_Size, 0) * ANGLES(RAD(90), 0, RAD(MRANDOM(-360, 360))), CF(0, 0, 0.1) * ANGLES(0, 0, RAD(MRANDOM(-20, 20))), VT(0, 1, 0), 1, 1, 1, -0.05, -0.05, -0.05, 0.05)
  2308. end
  2309. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(5), RAD(0), RAD(-60)), 0.4 / Animation_Speed)
  2310. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(0), RAD(0), RAD(60)) * ANGLES(RAD(5), RAD(0), RAD(0)), 0.4 / Animation_Speed)
  2311. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(70), RAD(0), RAD(45)) * RIGHTSHOULDERC0, 0.4 / Animation_Speed)
  2312. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), RAD(0), RAD(-55)) * ANGLES(RAD(5), RAD(0), RAD(0)) * LEFTSHOULDERC0, 0.4 / Animation_Speed)
  2313. RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -0.8 * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(0), RAD(70), RAD(0)) * ANGLES(RAD(-7.5), RAD(0), RAD(-5)), 0.4 / Animation_Speed)
  2314. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -0.8 * Player_Size, 0.05 * Player_Size) * ANGLES(RAD(0), RAD(-40), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(-10)), 0.4 / Animation_Speed)
  2315. HandleWeld.C0 = Clerp(HandleWeld.C0, CF(0 * Player_Size, -1 * Player_Size, -0.25 * Player_Size) * ANGLES(RAD(-20), RAD(90), RAD(0)), 0.4 / Animation_Speed)
  2316. if StaggerHit.Value == true or Stagger.Value == true or Stun.Value == true then
  2317. break
  2318. end
  2319. end
  2320. for i = 1, 15 do
  2321. CreateSound("160773067", LeftArm, 1.4, 1.5)
  2322. ShootFireball((LeftArm.CFrame * CF(0 * Player_Size, -1 * Player_Size, 0 * Player_Size)).p, Mouse.hit.p, 3, 5, 0.3, 5, 10)
  2323. MagicBlock("Black", "Neon", LeftArm.CFrame * CF(0 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(MRANDOM(-50, 50)), RAD(MRANDOM(-50, 50)), RAD(MRANDOM(-50, 50))), ANGLES(0, 0, 0), VT(0, 0, 0), 5, 5, 5, 0.5, 0.5, 0.5, 0.05)
  2324. MagicBlock("Really black", "Neon", LeftArm.CFrame * CF(0 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(MRANDOM(-50, 50)), RAD(MRANDOM(-50, 50)), RAD(MRANDOM(-50, 50))), ANGLES(0, 0, 0), VT(0, 0, 0), 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.05)
  2325. MagicBlock("White", "Neon", LeftArm.CFrame * CF(0 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(MRANDOM(-50, 50)), RAD(MRANDOM(-50, 50)), RAD(MRANDOM(-50, 50))), ANGLES(0, 0, 0), VT(0, 0, 0), 0.05, 0.05, 0.05, 0.5, 0.5, 0.5, 0.05)
  2326. wait(0.05)
  2327. end
  2328. for i=0, 1, 0.1 / Animation_Speed do
  2329. Swait()
  2330. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(-50)), 0.4 / Animation_Speed)
  2331. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(0), RAD(0), RAD(50)) * ANGLES(RAD(2.5), RAD(0), RAD(0)), 0.4 / Animation_Speed)
  2332. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(70), RAD(0), RAD(45)) * RIGHTSHOULDERC0, 0.4 / Animation_Speed)
  2333. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25 * Player_Size, 0.25 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), RAD(0), RAD(-55)) * ANGLES(RAD(40), RAD(0), RAD(0)) * LEFTSHOULDERC0, 0.4 / Animation_Speed)
  2334. RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -0.8 * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(0), RAD(70), RAD(0)) * ANGLES(RAD(-12.5), RAD(0), RAD(-5)), 0.4 / Animation_Speed)
  2335. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -0.9 * Player_Size, 0.05 * Player_Size) * ANGLES(RAD(0), RAD(-50), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(-5)), 0.4 / Animation_Speed)
  2336. HandleWeld.C0 = Clerp(HandleWeld.C0, CF(0 * Player_Size, -1 * Player_Size, -0.25 * Player_Size) * ANGLES(RAD(-20), RAD(90), RAD(0)), 0.4 / Animation_Speed)
  2337. if StaggerHit.Value == true or Stagger.Value == true or Stun.Value == true then
  2338. break
  2339. end
  2340. end
  2341. ATTACK = false
  2342. end
  2343.  
  2344. function Attack4()
  2345. ATTACK = true
  2346. local FIREEFFECTCOLORS = {"Really black", "Black", "White"}
  2347. for i=0, 1, 0.1 / Animation_Speed do
  2348. Swait()
  2349. MagicBlock(FIREEFFECTCOLORS[MRANDOM(1, #FIREEFFECTCOLORS)], "Neon", LeftArm.CFrame * CF(0 * Player_Size, MRANDOM(-15, -10) / 10 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), 0, RAD(MRANDOM(-360, 360))), CF(0, 0, -0.1) * ANGLES(0, 0, RAD(MRANDOM(-20, 20))), VT(0, 1, 0), 1, 1, 1, -0.05, -0.05, -0.05, 0.05)
  2350. --MagicBlock(FIREEFFECTCOLORS[MRANDOM(1, #FIREEFFECTCOLORS)], "Neon", RootPart.CFrame * CF(0 * Player_Size, MRANDOM(-2, 2) * Player_Size, 0 * Player_Size) * ANGLES(0, RAD(MRANDOM(-360, 360)), 0), CF(0, MRANDOM(5, 10) / 100, 0) * ANGLES(0, RAD(MRANDOM(-10, 10)), 0), VT(MRANDOM(20, 40) / 10, 0, 0), 1, 1, 1, -0.05, -0.05, -0.05, 0.05)
  2351. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(5), RAD(0), RAD(-40)), 0.4 / Animation_Speed)
  2352. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(0), RAD(0), RAD(35)) * ANGLES(RAD(2.5), RAD(0), RAD(0)), 0.4 / Animation_Speed)
  2353. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(70), RAD(0), RAD(45)) * RIGHTSHOULDERC0, 0.4 / Animation_Speed)
  2354. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.75 * Player_Size, -0.5 * Player_Size) * ANGLES(RAD(90), RAD(0), RAD(50)) * ANGLES(RAD(80), RAD(-20), RAD(-30)) * LEFTSHOULDERC0, 0.4 / Animation_Speed)
  2355. RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -0.8 * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(0), RAD(70), RAD(0)) * ANGLES(RAD(-7.5), RAD(0), RAD(-5)), 0.4 / Animation_Speed)
  2356. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -0.8 * Player_Size, 0.05 * Player_Size) * ANGLES(RAD(0), RAD(-40), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(-10)), 0.4 / Animation_Speed)
  2357. HandleWeld.C0 = Clerp(HandleWeld.C0, CF(0 * Player_Size, -1 * Player_Size, -0.25 * Player_Size) * ANGLES(RAD(-20), RAD(90), RAD(0)), 0.4 / Animation_Speed)
  2358. if StaggerHit.Value == true or Stagger.Value == true or Stun.Value == true then
  2359. break
  2360. end
  2361. end
  2362. CreateSound("160772554", LeftArm, 1, MRANDOM(11, 13) / 10)
  2363. FirePillar(RootPart.Position, Mouse.hit.p, 5, 25, 10, 5, 10, 0.025)
  2364. MagicBlock("Really black", "Neon", LeftArm.CFrame * CF(0 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(MRANDOM(-50, 50)), RAD(MRANDOM(-50, 50)), RAD(MRANDOM(-50, 50))), ANGLES(0, 0, 0), VT(0, 0, 0), 5, 5, 5, 0.5, 0.5, 0.5, 0.05)
  2365. MagicBlock("White", "Neon", LeftArm.CFrame * CF(0 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(MRANDOM(-50, 50)), RAD(MRANDOM(-50, 50)), RAD(MRANDOM(-50, 50))), ANGLES(0, 0, 0), VT(0, 0, 0), 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.05)
  2366. MagicBlock("Black", "Neon", LeftArm.CFrame * CF(0 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(MRANDOM(-50, 50)), RAD(MRANDOM(-50, 50)), RAD(MRANDOM(-50, 50))), ANGLES(0, 0, 0), VT(0, 0, 0), 0.05, 0.05, 0.05, 0.5, 0.5, 0.5, 0.05)
  2367. for i=0, 1, 0.1 / Animation_Speed do
  2368. Swait()
  2369. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(5), RAD(0), RAD(-30)), 0.4 / Animation_Speed)
  2370. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(0), RAD(0), RAD(25)) * ANGLES(RAD(5), RAD(0), RAD(0)), 0.4 / Animation_Speed)
  2371. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(70), RAD(0), RAD(45)) * RIGHTSHOULDERC0, 0.4 / Animation_Speed)
  2372. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.25 * Player_Size, -0.25 * Player_Size) * ANGLES(RAD(90), RAD(0), RAD(-20 + MRANDOM(-2.5, 2.5))) * ANGLES(RAD(70 + MRANDOM(-2.5, 2.5)), RAD(40), RAD(0)) * LEFTSHOULDERC0, 0.4 / Animation_Speed)
  2373. RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -0.8 * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(0), RAD(60), RAD(0)) * ANGLES(RAD(-10), RAD(0), RAD(-7.5)), 0.4 / Animation_Speed)
  2374. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -0.8 * Player_Size, 0.05 * Player_Size) * ANGLES(RAD(0), RAD(-50), RAD(0)) * ANGLES(RAD(-2.5), RAD(0), RAD(-12.5)), 0.4 / Animation_Speed)
  2375. HandleWeld.C0 = Clerp(HandleWeld.C0, CF(0 * Player_Size, -1 * Player_Size, -0.25 * Player_Size) * ANGLES(RAD(-20), RAD(90), RAD(0)), 0.4 / Animation_Speed)
  2376. --[[
  2377. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(5), RAD(0), RAD(40)), 0.4 / Animation_Speed)
  2378. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(0), RAD(0), RAD(-30)) * ANGLES(RAD(5), RAD(0), RAD(0)), 0.4 / Animation_Speed)
  2379. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(70), RAD(0), RAD(45)) * RIGHTSHOULDERC0, 0.4 / Animation_Speed)
  2380. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0 * Player_Size, -0.25 * Player_Size) * ANGLES(RAD(90), RAD(0), RAD(-10 + MRANDOM(-2.5, 2.5))) * ANGLES(RAD(40 + MRANDOM(-2.5, 2.5)), RAD(70), RAD(20)) * LEFTSHOULDERC0, 0.4 / Animation_Speed)
  2381. RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -0.8 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(60), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(10)), 0.4 / Animation_Speed)
  2382. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -0.8 * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(0), RAD(-80), RAD(0)) * ANGLES(RAD(-7.5), RAD(0), RAD(5)), 0.4 / Animation_Speed)
  2383. HandleWeld.C0 = Clerp(HandleWeld.C0, CF(0 * Player_Size, -1 * Player_Size, -0.25 * Player_Size) * ANGLES(RAD(-20), RAD(90), RAD(0)), 0.4 / Animation_Speed)
  2384. --]]
  2385. if StaggerHit.Value == true or Stagger.Value == true or Stun.Value == true then
  2386. break
  2387. end
  2388. end
  2389. ATTACK = false
  2390. end
  2391.  
  2392. function Attack5()
  2393. local FIREEFFECTCOLORS = {"Black", "Really black", "White"}
  2394. for i=0, 1, 0.1 / Animation_Speed do
  2395. Swait()
  2396. for i = 1, 2 do
  2397. MagicBlock(FIREEFFECTCOLORS[MRANDOM(1, #FIREEFFECTCOLORS)], "Neon", LeftArm.CFrame * CF(0, MRANDOM(-10, 10) / 10 * (Player_Size*2), 0) * ANGLES(RAD(90), 0, RAD(MRANDOM(-360, 360))), CF(0, 0, 0.1) * ANGLES(0, 0, RAD(MRANDOM(-20, 20))), VT(0, 1, 0), 1, 1, 1, -0.05, -0.05, -0.05, 0.05)
  2398. end
  2399. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(5), RAD(0), RAD(-60)), 0.4 / Animation_Speed)
  2400. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(0), RAD(0), RAD(60)) * ANGLES(RAD(5), RAD(0), RAD(0)), 0.4 / Animation_Speed)
  2401. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(70), RAD(0), RAD(45)) * RIGHTSHOULDERC0, 0.4 / Animation_Speed)
  2402. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), RAD(0), RAD(-55)) * ANGLES(RAD(5), RAD(0), RAD(0)) * LEFTSHOULDERC0, 0.4 / Animation_Speed)
  2403. RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -0.8 * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(0), RAD(70), RAD(0)) * ANGLES(RAD(-7.5), RAD(0), RAD(-5)), 0.4 / Animation_Speed)
  2404. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -0.8 * Player_Size, 0.05 * Player_Size) * ANGLES(RAD(0), RAD(-40), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(-10)), 0.4 / Animation_Speed)
  2405. HandleWeld.C0 = Clerp(HandleWeld.C0, CF(0 * Player_Size, -1 * Player_Size, -0.25 * Player_Size) * ANGLES(RAD(-20), RAD(90), RAD(0)), 0.4 / Animation_Speed)
  2406. if StaggerHit.Value == true or Stagger.Value == true or Stun.Value == true then
  2407. break
  2408. end
  2409. end
  2410. CreateSound("160745944", LeftArm, 1.4, 1.5)
  2411. ShootLargeFireball((LeftArm.CFrame * CF(0 * Player_Size, -1 * Player_Size, 0 * Player_Size)).p, Mouse.hit.p, 0.3, 75, 2.1, 5, 10)
  2412. ShootLargeFireball((LeftArm.CFrame * CF(0 * Player_Size, -1 * Player_Size, 0 * Player_Size)).p, Mouse.hit.p, 0.3, 75, 2.1, 5, 10)
  2413. ShootLargeFireball((LeftArm.CFrame * CF(0 * Player_Size, -1 * Player_Size, 0 * Player_Size)).p, Mouse.hit.p, 0.3, 75, 2.1, 5, 10)
  2414. MagicBlock("Black", "Neon", LeftArm.CFrame * CF(0 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(MRANDOM(-50, 50)), RAD(MRANDOM(-50, 50)), RAD(MRANDOM(-50, 50))), ANGLES(0, 0, 0), VT(0, 0, 0), 5, 5, 5, 0.5, 0.5, 0.5, 0.05)
  2415. MagicBlock("Really black", "Neon", LeftArm.CFrame * CF(0 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(MRANDOM(-50, 50)), RAD(MRANDOM(-50, 50)), RAD(MRANDOM(-50, 50))), ANGLES(0, 0, 0), VT(0, 0, 0), 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.05)
  2416. MagicBlock("White", "Neon", LeftArm.CFrame * CF(0 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(MRANDOM(-50, 50)), RAD(MRANDOM(-50, 50)), RAD(MRANDOM(-50, 50))), ANGLES(0, 0, 0), VT(0, 0, 0), 0.05, 0.05, 0.05, 0.5, 0.5, 0.5, 0.05)
  2417. for i=0, 1, 0.1 / Animation_Speed do
  2418. Swait()
  2419. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(-50)), 0.4 / Animation_Speed)
  2420. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(0), RAD(0), RAD(50)) * ANGLES(RAD(2.5), RAD(0), RAD(0)), 0.4 / Animation_Speed)
  2421. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(70), RAD(0), RAD(45)) * RIGHTSHOULDERC0, 0.4 / Animation_Speed)
  2422. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25 * Player_Size, 0.25 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), RAD(0), RAD(-55)) * ANGLES(RAD(40), RAD(0), RAD(0)) * LEFTSHOULDERC0, 0.4 / Animation_Speed)
  2423. RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -0.8 * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(0), RAD(70), RAD(0)) * ANGLES(RAD(-12.5), RAD(0), RAD(-5)), 0.4 / Animation_Speed)
  2424. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -0.9 * Player_Size, 0.05 * Player_Size) * ANGLES(RAD(0), RAD(-50), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(-5)), 0.4 / Animation_Speed)
  2425. HandleWeld.C0 = Clerp(HandleWeld.C0, CF(0 * Player_Size, -1 * Player_Size, -0.25 * Player_Size) * ANGLES(RAD(-20), RAD(90), RAD(0)), 0.4 / Animation_Speed)
  2426. if StaggerHit.Value == true or Stagger.Value == true or Stun.Value == true then
  2427. break
  2428. end
  2429. end
  2430. end
  2431.  
  2432. function Attack6()
  2433. ATTACK = true
  2434. for i=0, 1, 0.1/8 do
  2435. Swait()
  2436. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(10), RAD(0), RAD(20)), 0.4 / Animation_Speed)
  2437. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(5), RAD(0), RAD(-15)), 0.4 / Animation_Speed)
  2438. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(0.25 * Player_Size, 0.5 * Player_Size, -0.5 * Player_Size) * ANGLES(RAD(90), RAD(0), RAD(-70)) * ANGLES(RAD(20), RAD(90), RAD(0)) * RIGHTSHOULDERC0, 0.4 / Animation_Speed)
  2439. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-25), RAD(0), RAD(-35)) * LEFTSHOULDERC0, 0.4 / Animation_Speed)
  2440. RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -0.8 * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(0), RAD(65), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(15)), 0.4 / Animation_Speed)
  2441. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -0.8 * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(0), RAD(-80), RAD(0)) * ANGLES(RAD(-7.5), RAD(0), RAD(-5)), 0.4 / Animation_Speed)
  2442. HandleWeld.C0 = Clerp(HandleWeld.C0, CF(0 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-110), RAD(90), RAD(0)), 0.4 / Animation_Speed)
  2443. if StaggerHit.Value == true or Stagger.Value == true or Stun.Value == true then
  2444. break
  2445. end
  2446. end
  2447. CreateSound("553461718", HitboxPart, 5, MRANDOM(7, 9) / 10)
  2448. for i=0, 1, 0.1 / Animation_Speed do
  2449. Swait()
  2450. local Pos = HitboxPart
  2451. local Offset = HitboxPart.CFrame * CF(0, 0.1 * Player_Size, 0)
  2452. local Color = "Really black"
  2453. local Material = "Neon"
  2454. local TheDelay = 0.01
  2455. local Height = 6.2 * Player_Size
  2456. BLCF = Offset
  2457. if SCFR and (Pos.Position - SCFR.p).magnitude > 0.1 then
  2458. local a, b = Triangle(Color, Material, (SCFR * CF(0, Height / 2,0)).p, (SCFR * CF(0, -Height / 2, 0)).p, (BLCF * CF(0, Height / 2,0)).p, TheDelay)
  2459. if a then game:GetService("Debris"):AddItem(a, 1) end
  2460. if b then game:GetService("Debris"):AddItem(b, 1) end
  2461. local a, b = Triangle(Color, Material, (BLCF * CF(0, Height / 2, 0)).p, (BLCF * CF(0, -Height / 2, 0)).p, (SCFR * CF(0, -Height / 2, 0)).p, TheDelay)
  2462. if a then game:GetService("Debris"):AddItem(a, 1) end
  2463. if b then game:GetService("Debris"):AddItem(b, 1) end
  2464. SCFR = BLCF
  2465. elseif not SCFR then
  2466. SCFR = BLCF
  2467. end
  2468. MagnitudeDamage(HITWEAPONSOUNDS[MRANDOM(1, #HITWEAPONSOUNDS)], HITARMORSOUNDS[MRANDOM(1, #HITARMORSOUNDS)], HITBLOCKSOUNDS[MRANDOM(1, #HITBLOCKSOUNDS)], HITPLAYERSOUNDS[MRANDOM(1, #HITPLAYERSOUNDS)], 1, 1, 1, 1, HitboxPart, 8, false, 35, 45, MRANDOM(5, 10), "Normal", RootPart, 0.5, 1, MRANDOM(5, 10), nil, true, false, nil, 0, 0, false)
  2469. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(10), RAD(0), RAD(-30)), 0.4 / Animation_Speed)
  2470. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(2.5), RAD(0), RAD(30)), 0.4 / Animation_Speed)
  2471. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), RAD(0), RAD(100)) * ANGLES(RAD(-30), RAD(80), RAD(0)) * RIGHTSHOULDERC0, 0.4 / Animation_Speed)
  2472. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-15), RAD(0), RAD(-55)) * LEFTSHOULDERC0, 0.4 / Animation_Speed)
  2473. RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -0.8 * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(0), RAD(80), RAD(0)) * ANGLES(RAD(-2.5), RAD(0), RAD(5)), 0.4 / Animation_Speed)
  2474. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -0.8 * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(0), RAD(-65), RAD(0)) * ANGLES(RAD(-10), RAD(0), RAD(-15)), 0.4 / Animation_Speed)
  2475. HandleWeld.C0 = Clerp(HandleWeld.C0, CF(0 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-130), RAD(90), RAD(0)), 0.4 / Animation_Speed)
  2476. if StaggerHit.Value == true or Stagger.Value == true or Stun.Value == true then
  2477. break
  2478. end
  2479. end
  2480. BLCF = nil
  2481. SCFR = nil
  2482. ATTACK = false
  2483. end
  2484.  
  2485. function SilenceAttempt(HITWEAPONSOUND, HITARMORSOUND, HITBLOCKSOUND, HITPLAYERSOUND, HITWEAPONSOUNDPITCH, HITARMORSOUNDPITCH, HITBLOCKSOUNDPITCH, HITPLAYERSOUNDPITCH, HIT, HITEVENWHENDEAD, MINIMUMDAMAGE, MAXIMUMDAMAGE, KNOCKBACK, TYPE, PROPERTY, DELAY, KNOCKBACKTYPE, INCREASESTUN, STAGGER, STAGGERHIT, RANGED, DECREASETHESTAT, DECREASEAMOUNT, DECREASEDURATION, SHOWDECREASEDSTAT)
  2486. Humanoid.MaxHealth = "inf"
  2487. Humanoid.Health = "inf"
  2488. if HIT.Parent == nil then
  2489. return
  2490. end
  2491. local HITHUMANOID = HIT.Parent:FindFirstChild("Humanoid")
  2492. for _, v in pairs(HIT.Parent:GetChildren()) do
  2493. if v:IsA("Humanoid") then
  2494. HITHUMANOID = v
  2495. end
  2496. end
  2497. if HIT.Name == "Hitbox" and RANGED ~= true and HIT.Parent ~= Weapon and Enable_Stagger_Hit == true then
  2498. StaggerHit.Value = true
  2499. if Play_Hitbox_Hit_Sound == true then
  2500. if HITWEAPONSOUND ~= "" and HITWEAPONSOUND ~= "nil" then
  2501. CreateSound(HITWEAPONSOUND, HIT, 1, HITWEAPONSOUNDPITCH)
  2502. end
  2503. end
  2504. return
  2505. end
  2506. if HIT.Parent.Parent:FindFirstChild("Torso") ~= nil or HIT.Parent.Parent:FindFirstChild("UpperTorso") ~= nil then
  2507. HITHUMANOID = HIT.Parent.Parent:FindFirstChild("Humanoid")
  2508. end
  2509. if HIT.Parent.ClassName == "Hat" or HIT.ClassName == "Accessory" then
  2510. HIT = HIT.Parent.Parent:FindFirstChild("Head")
  2511. end
  2512. if HITHUMANOID ~= nil and HIT.Parent.Name ~= Character.Name and (HIT.Parent:FindFirstChild("Torso") ~= nil or HIT.Parent:FindFirstChild("UpperTorso") ~= nil) then
  2513. if HIT.Parent:FindFirstChild("DebounceHit") ~= nil then
  2514. if HIT.Parent.DebounceHit.Value == true then
  2515. return
  2516. end
  2517. end
  2518. if AntiTeamKill.Value == true then
  2519. if Player.Neutral == false and game.Players:GetPlayerFromCharacter(HIT.Parent) ~= nil then
  2520. if game.Players:GetPlayerFromCharacter(HIT.Parent).TeamColor == Player.TeamColor then
  2521. return
  2522. end
  2523. end
  2524. end
  2525. if HITEVENWHENDEAD == false then
  2526. if HIT.Parent:FindFirstChild("Humanoid") ~= nil then
  2527. if HIT.Parent:FindFirstChild("Humanoid").Health <= 0 then
  2528. return
  2529. end
  2530. end
  2531. end
  2532. if HIT.Parent:FindFirstChild("Stats") ~= nil then
  2533. if HIT.Parent.Stats:FindFirstChild("StunValue") ~= nil then
  2534. HIT.Parent.Stats:FindFirstChild("StunValue").Value = HIT.Parent.Stats:FindFirstChild("StunValue").Value + INCREASESTUN
  2535. end
  2536. end
  2537. if HIT.Parent:FindFirstChild("Stats") ~= nil then
  2538. if HIT.Parent.Stats:FindFirstChild("Stagger") ~= nil then
  2539. if STAGGER == true and Enable_Stagger == true then
  2540. HIT.Parent.Stats:FindFirstChild("Stagger").Value = true
  2541. end
  2542. end
  2543. end
  2544. if HIT.Parent:FindFirstChild("Stats") ~= nil then
  2545. if HIT.Parent.Stats:FindFirstChild("Block") ~= nil then
  2546. if HIT.Parent.Stats:FindFirstChild("Block").Value == true then
  2547. HASBEENBLOCKED = true
  2548. if HIT.Parent.Stats:FindFirstChild("Block"):FindFirstChild("BlockDebounce") == nil then
  2549. StatLabel("Interruption", HIT.Parent.Head.CFrame * CF(0, 0 + (HIT.Parent.Head.Size.z - 1), 0), "Blocked!", C3(0, 100 / 255, 255 / 255))
  2550. if RANGED ~= true then
  2551. if HITBLOCKSOUND ~= "" and HITBLOCKSOUND ~= "nil" then
  2552. CreateSound(541909763, HIT, 1, HITBLOCKSOUNDPITCH)
  2553. end
  2554. end
  2555. local BlockDebounce = IT("BoolValue", HIT.Parent.Stats:FindFirstChild("Block"))
  2556. BlockDebounce.Name = "BlockDebounce"
  2557. BlockDebounce.Value = true
  2558. if RANGED ~= true then
  2559. game:GetService("Debris"):AddItem(BlockDebounce, 0.5)
  2560. else
  2561. game:GetService("Debris"):AddItem(BlockDebounce, 0.1)
  2562. end
  2563. end
  2564. if RANGED ~= true and Enable_Stagger == true then
  2565. HIT.Parent.Stats:FindFirstChild("Block").Value = false
  2566. Stagger.Value = true
  2567. end
  2568. return
  2569. end
  2570. end
  2571. end
  2572. if DECREASETHESTAT ~= nil then
  2573. if HIT.Parent:FindFirstChild("Stats") ~= nil then
  2574. IncreaseOrDecreaseStat(HIT.Parent, DECREASETHESTAT, DECREASEAMOUNT, DECREASEDURATION, SHOWDECREASEDSTAT)
  2575. end
  2576. end
  2577. local DAMAGE = MRANDOM(MINIMUMDAMAGE,MAXIMUMDAMAGE) * Damage.Value
  2578. if HIT.Parent:FindFirstChild("Stats") ~= nil then
  2579. if HIT.Parent.Stats:FindFirstChild("Defense") ~= nil then
  2580. if CanPenetrateArmor.Value == true then
  2581. DAMAGE = DAMAGE
  2582. else
  2583. DAMAGE = DAMAGE / HIT.Parent.Stats:FindFirstChild("Defense").Value
  2584. end
  2585. elseif HIT.Parent.Stats:FindFirstChild("Defense") == nil then
  2586. DAMAGE = DAMAGE
  2587. end
  2588. end
  2589. if CanCrit.Value == true then
  2590. CRITCHANCENUMBER = MRANDOM(1, CritChance.Value)
  2591. if CRITCHANCENUMBER == 1 then
  2592. end
  2593. end
  2594. DAMAGE = math.floor(DAMAGE)
  2595. if HASBEENBLOCKED == false then
  2596. end
  2597. if DAMAGE <= 3 and HASBEENBLOCKED == false then
  2598. if STAGGERHIT == true and Enable_Stagger_Hit == true and RANGED ~= true then
  2599. StaggerHit.Value = true
  2600. end
  2601. if HITARMORSOUND ~= "" and HITARMORSOUND ~= "nil" then
  2602. CreateSound(541909763, HIT, 1, HITARMORSOUNDPITCH)
  2603. end
  2604. elseif DAMAGE > 3 and HASBEENBLOCKED == false then
  2605. if HITPLAYERSOUND ~= "" and HITPLAYERSOUND ~= "nil" then
  2606. CreateSound(541909763, HIT, 1, HITPLAYERSOUNDPITCH)
  2607. end
  2608. end
  2609. if DAMAGE > 3 and DAMAGE < 20 and HASBEENBLOCKED == false then
  2610. if CanCrit.Value == true and CRITCHANCENUMBER == 1 then
  2611. CreateSound("541909763", HIT, 1, 1)
  2612. else
  2613. end
  2614. elseif DAMAGE >= 20 and HASBEENBLOCKED == false then
  2615. if CanCrit.Value == true and CRITCHANCENUMBER == 1 then
  2616. else
  2617. end
  2618. elseif DAMAGE <= 3 and HASBEENBLOCKED == false then
  2619. if CanCrit.Value == true and CRITCHANCENUMBER == 1 then
  2620. CreateSound("541909763", HIT, 1, 1)
  2621. else
  2622. end
  2623. end
  2624. if TYPE == "Normal" then
  2625. local vp = IT("BodyVelocity")
  2626. vp.P=500
  2627. vp.maxForce = VT(math.huge, 0, math.huge)
  2628. if KNOCKBACKTYPE == 1 then
  2629. vp.Velocity = PROPERTY.CFrame.lookVector * KNOCKBACK + PROPERTY.Velocity / 1.05
  2630. elseif KNOCKBACKTYPE == 2 then
  2631. vp.Velocity = PROPERTY.CFrame.lookVector * KNOCKBACK
  2632. end
  2633. if KNOCKBACK > 0 and HASBEENBLOCKED == false then
  2634. vp.Parent = HIT--.Parent.Torso
  2635. end
  2636. game:GetService("Debris"):AddItem(vp, 0.5)
  2637. end
  2638. HASBEENBLOCKED = false
  2639. RecentEnemy.Value = HIT.Parent
  2640. local DebounceHit = IT("BoolValue", HIT.Parent)
  2641. DebounceHit.Name = "DebounceHit"
  2642. DebounceHit.Value = true
  2643. game:GetService("Debris"):AddItem(DebounceHit, DELAY)
  2644. end
  2645. c = HITHUMANOID.Parent:GetChildren()
  2646. for g = 1, #c do
  2647. if c[g].ClassName == "Script" then
  2648. c[g]:Destroy()
  2649. end
  2650. end
  2651. end
  2652.  
  2653. --Usage: MagnitudeDamage(HITWEAPONSOUNDS[MRANDOM(1, #HITWEAPONSOUNDS)], HITARMORSOUNDS[MRANDOM(1, #HITARMORSOUNDS)], HITBLOCKSOUNDS[MRANDOM(1, #HITBLOCKSOUNDS)], HITPLAYERSOUNDS[MRANDOM(1, #HITPLAYERSOUNDS)], 1, 1, 1, 1, Part, 5, true, 5, 10, MRANDOM(5, 10), "Normal", Part, 0.5, false, true, 1, MRANDOM(5, 10), nil, true, false, nil, 0, 0, false)
  2654. function Silence(HITWEAPONSOUND, HITARMORSOUND, HITBLOCKSOUND, HITPLAYERSOUND, HITWEAPONSOUNDPITCH, HITARMORSOUNDPITCH, HITBLOCKSOUNDPITCH, HITPLAYERSOUNDPITCH, PART, MAGNITUDE, HITEVENWHENDEAD, MINIMUMDAMAGE, MAXIMUMDAMAGE, KNOCKBACK, TYPE, PROPERTY, DELAY, KNOCKBACKTYPE, INCREASESTUN, STAGGER, STAGGERHIT, RANGED, MAGNITUDEDECREASETHESTAT, MAGNITUDEDECREASEAMOUNT, MAGNITUDEDECREASEDURATION, MAGNITUDESHOWDECREASEDSTAT)
  2655. for _, c in pairs(workspace:GetChildren()) do
  2656. local HUMANOID = c:FindFirstChild("Humanoid")
  2657. local HEAD = nil
  2658. if HUMANOID ~= nil then
  2659. for _, d in pairs(c:GetChildren()) do
  2660. if d.ClassName == "Model" and RANGED ~= true then
  2661. HEAD = d:FindFirstChild("Hitbox")
  2662. if HEAD ~= nil then
  2663. local THEMAGNITUDE = (HEAD.Position - PART.Position).magnitude
  2664. if THEMAGNITUDE <= (MAGNITUDE * Player_Size) and c.Name ~= Player.Name then
  2665. if Play_Hitbox_Hit_Sound == true then
  2666. local HitRefpart = CreatePart(3, Effects, "SmoothPlastic", 0, 1, "Really black", "Effect", VT())
  2667. HitRefpart.Anchored = true
  2668. HitRefpart.CFrame = CF(HEAD.Position)
  2669. CreateSound(HITWEAPONSOUND, HitRefpart, 1, HITWEAPONSOUNDPITCH)
  2670. end
  2671. if Enable_Stagger_Hit == true then
  2672. StaggerHit.Value = true
  2673. end
  2674. end
  2675. end
  2676. elseif d:IsA"BasePart" then
  2677. HEAD = d
  2678. if HEAD ~= nil then
  2679. local THEMAGNITUDE = (HEAD.Position - PART.Position).magnitude
  2680. if THEMAGNITUDE <= (MAGNITUDE * Player_Size) and c.Name ~= Player.Name then
  2681. SilenceAttempt(HITWEAPONSOUND, HITARMORSOUND, HITBLOCKSOUND, HITPLAYERSOUND, HITWEAPONSOUNDPITCH, HITARMORSOUNDPITCH, HITBLOCKSOUNDPITCH, HITPLAYERSOUNDPITCH, HEAD, HITEVENWHENDEAD, MINIMUMDAMAGE, MAXIMUMDAMAGE, KNOCKBACK, TYPE, PROPERTY, DELAY, KNOCKBACKTYPE, INCREASESTUN, STAGGER, STAGGERHIT, RANGED, MAGNITUDEDECREASETHESTAT, MAGNITUDEDECREASEAMOUNT, MAGNITUDEDECREASEDURATION, MAGNITUDESHOWDECREASEDSTAT)
  2682. end
  2683. end
  2684. end
  2685. end
  2686. end
  2687. end
  2688. end
  2689.  
  2690. function UniqueMove1()
  2691. ATTACK = true
  2692. for i=0, 1, 0.1 do
  2693. Swait()
  2694. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(10), RAD(0), RAD(-30)), 0.4 / Animation_Speed)
  2695. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(-25), RAD(0), RAD(30)), 0.4 / Animation_Speed)
  2696. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), RAD(0), RAD(100)) * ANGLES(RAD(-30), RAD(80), RAD(0)) * RIGHTSHOULDERC0, 0.4 / Animation_Speed)
  2697. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-15), RAD(0), RAD(-55)) * LEFTSHOULDERC0, 0.4 / Animation_Speed)
  2698. RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -0.8 * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(0), RAD(80), RAD(0)) * ANGLES(RAD(-2.5), RAD(0), RAD(5)), 0.4 / Animation_Speed)
  2699. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -0.8 * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(0), RAD(-65), RAD(0)) * ANGLES(RAD(-10), RAD(0), RAD(-15)), 0.4 / Animation_Speed)
  2700. HandleWeld.C0 = Clerp(HandleWeld.C0, CF(0 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-130), RAD(90), RAD(0)), 0.4 / Animation_Speed)
  2701. if StaggerHit.Value == true or Stagger.Value == true or Stun.Value == true then
  2702. break
  2703. end
  2704. end
  2705. CreateSound("297472596", workspace, 1, MRANDOM(7, 9) / 10)
  2706. Silence(HITWEAPONSOUNDS[MRANDOM(1, #HITWEAPONSOUNDS)], HITARMORSOUNDS[MRANDOM(1, #HITARMORSOUNDS)], HITBLOCKSOUNDS[MRANDOM(1, #HITBLOCKSOUNDS)], HITPLAYERSOUNDS[MRANDOM(1, #HITPLAYERSOUNDS)], 1, 1, 1, 1, Head, 20, false, 250, 300, MRANDOM(25, 30), "Normal", RootPart, 0.5, 1, MRANDOM(5, 10), nil, true, false, nil, 0, 0, false)
  2707. SilenceRoar()
  2708. ATTACK = false
  2709. end
  2710.  
  2711. function Eliminate()
  2712. ATTACK = true
  2713. Humanoid.JumpPower = 0
  2714. Humanoid.WalkSpeed = 0
  2715. for i=0, 1, 0.1/5 do
  2716. Swait()
  2717. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(10), RAD(0), RAD(20)), 0.4 / Animation_Speed)
  2718. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(-25), RAD(0), RAD(-15)), 0.4 / Animation_Speed)
  2719. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(0.25 * Player_Size, 0.5 * Player_Size, -0.5 * Player_Size) * ANGLES(RAD(90), RAD(0), RAD(-70)) * ANGLES(RAD(30), RAD(25), RAD(0)) * RIGHTSHOULDERC0, 0.4 / Animation_Speed)
  2720. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(25), RAD(0), RAD(35)) * LEFTSHOULDERC0, 0.4 / Animation_Speed)
  2721. RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -0.8 * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(0), RAD(65), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(15)), 0.4 / Animation_Speed)
  2722. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -0.8 * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(0), RAD(-80), RAD(0)) * ANGLES(RAD(-7.5), RAD(0), RAD(-5)), 0.4 / Animation_Speed)
  2723. HandleWeld.C0 = Clerp(HandleWeld.C0, CF(0 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-110), RAD(90), RAD(0)), 0.4 / Animation_Speed)
  2724. if StaggerHit.Value == true or Stagger.Value == true or Stun.Value == true then
  2725. break
  2726. end
  2727. end
  2728. wait(2)
  2729. CreateSound("438666141", workspace, 5, 1)
  2730. local exp = Instance.new("Part")
  2731. exp.Parent = workspace
  2732. exp.Size = Vector3.new(1,1,1)
  2733. exp.Anchored = true
  2734. exp.Transparency = 0.25
  2735. exp.CanCollide = false
  2736. exp.CFrame = RootPart.CFrame
  2737. exp.BrickColor = BrickColor.new("Really black")
  2738. exp.Material = "Neon"
  2739. local exp2 = Instance.new("Part")
  2740. exp2.Parent = workspace
  2741. exp2.Size = Vector3.new(0.9, 0.9, 0.9)
  2742. exp2.Anchored = true
  2743. exp2.CanCollide = false
  2744. exp2.CFrame = RootPart.CFrame
  2745. exp2.BrickColor = BrickColor.new("White")
  2746. exp2.Material = "Neon"
  2747. local exp3 = Instance.new("Part")
  2748. exp3.Parent = workspace
  2749. exp3.Size = Vector3.new(1,1,1)
  2750. exp3.Anchored = true
  2751. exp3.Transparency = 0
  2752. exp3.CanCollide = false
  2753. exp3.CFrame = RootPart.CFrame
  2754. exp3.BrickColor = BrickColor.new("Really black")
  2755. exp.Material = "Neon"
  2756. CreateSound("438666077", workspace, 15, 1)
  2757. local meshh = Instance.new("SpecialMesh")
  2758. meshh.MeshType = "Sphere"
  2759. meshh.Parent = exp
  2760. local mesh2 = Instance.new("SpecialMesh")
  2761. mesh2.MeshType = "Sphere"
  2762. mesh2.Parent = exp2
  2763. local mesh3 = Instance.new("SpecialMesh")
  2764. mesh3.MeshId = "http://www.roblox.com/asset/?id=20329976"
  2765. mesh3.Parent = exp3
  2766. mesh3.Scale = Vector3.new(1,10,1)
  2767. game.Lighting.FogEnd = 1000
  2768. local sky = Instance.new("Sky")
  2769. sky.Parent = game.Lighting
  2770. sky.SkyboxBk = "rbxassetid://99174105"
  2771. sky.SkyboxDn = "rbxassetid://99174105"
  2772. sky.SkyboxFt = "rbxassetid://99174105"
  2773. sky.SkyboxLf = "rbxassetid://99174105"
  2774. sky.SkyboxRt = "rbxassetid://99174105"
  2775. sky.SkyboxUp = "rbxassetid://99174105"
  2776. local sc = 1
  2777. sky.CelestialBodiesShown = false
  2778. game.Lighting.FogColor = Color3.new(0,0,0)
  2779. for size = 1, 25 do
  2780. game.Lighting.FogEnd = game.Lighting.FogEnd - 10
  2781. meshh.Scale = meshh.Scale + Vector3.new(sc,sc,sc)
  2782. mesh2.Scale = mesh2.Scale + Vector3.new(sc,sc,sc)
  2783. mesh3.Scale = mesh3.Scale + Vector3.new(sc,5,sc)
  2784. sc = sc + 0.2
  2785. wait(0.00025)
  2786. end
  2787. for size = 1, 75 do
  2788. game.Lighting.FogEnd = game.Lighting.FogEnd - 10
  2789. meshh.Scale = meshh.Scale + Vector3.new(sc,sc,sc)
  2790. mesh2.Scale = mesh2.Scale + Vector3.new(sc,sc,sc)
  2791. mesh3.Scale = mesh3.Scale + Vector3.new(sc,5,sc)
  2792. sc = sc + 0.2
  2793. wait(0.00025)
  2794. end
  2795. MagnitudeDamage("", "", "", "", 1, 1, 1, 1, exp, 500000000000 / 5, false, 50, 50, 0, "Normal", RootPart, 0, 1, MRANDOM(10, 15), nil, false, true, nil, 0, 0, false)
  2796. exp:Destroy()
  2797. exp2:Destroy()
  2798. exp3:Destroy()
  2799. Humanoid.JumpPower = 85
  2800. Humanoid.WalkSpeed = 35
  2801. ATTACK = false
  2802. wait(2)
  2803. for sky = 1, 100 do
  2804. game.Lighting.FogEnd = game.Lighting.FogEnd + 10
  2805. wait(0.00025)
  2806. end
  2807. game.Lighting.FogEnd = 100000
  2808. sky:Destroy()
  2809. end
  2810.  
  2811. function Move2()
  2812. ATTACK = true
  2813. ATTACK = false
  2814. end
  2815.  
  2816. function Move3()
  2817. ATTACK = true
  2818. ATTACK = false
  2819. end
  2820.  
  2821. function Move4()
  2822. ATTACK = true
  2823. ATTACK = false
  2824. end
  2825.  
  2826. --//=================================\\
  2827. --\\=================================//
  2828.  
  2829.  
  2830.  
  2831.  
  2832.  
  2833. --//=================================\\
  2834. --|| SET THINGS UP
  2835. --\\=================================//
  2836.  
  2837. if Start_Equipped == true then
  2838. ATTACK = true
  2839. EQUIPPED = true
  2840. if Disable_Animate == true then
  2841. ANIMATE.Parent = nil
  2842. local IDLEANIMATION = Humanoid:LoadAnimation(ROBLOXIDLEANIMATION)
  2843. IDLEANIMATION:Play()
  2844. end
  2845. if Disable_Animator == true then
  2846. ANIMATOR.Parent = nil
  2847. end
  2848. if Disable_Moving_Arms == true then
  2849. RSH = Torso["Right Shoulder"]
  2850. LSH = Torso["Left Shoulder"]
  2851. RSH.Parent = nil
  2852. LSH.Parent = nil
  2853. if Use_Motors_Instead_Of_Welds == true then
  2854. RightShoulder = IT("Motor")
  2855. LeftShoulder = IT("Motor")
  2856. else
  2857. RightShoulder = IT("Weld")
  2858. LeftShoulder = IT("Weld")
  2859. end
  2860. RightShoulder.Name = "Right Shoulder"
  2861. RightShoulder.Part0 = Torso
  2862. RightShoulder.C0 = CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size)
  2863. RightShoulder.C1 = CF(0 * Player_Size, 0.5 * Player_Size, 0 * Player_Size)
  2864. RightShoulder.Part1 = Character["Right Arm"]
  2865. RightShoulder.Parent = Torso
  2866. LeftShoulder.Name = "Left Shoulder"
  2867. LeftShoulder.Part0 = Torso
  2868. LeftShoulder.C0=CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size)
  2869. LeftShoulder.C1=CF(0 * Player_Size, 0.5 * Player_Size, 0 * Player_Size)
  2870. LeftShoulder.Part1 = Character["Left Arm"]
  2871. LeftShoulder.Parent = Torso
  2872. RIGHTSHOULDERC0 = CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0))
  2873. LEFTSHOULDERC0 = CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0))
  2874. end
  2875. if Start_Equipped_With_Equipped_Animation == true then
  2876. Swait()
  2877. EquipWeapon()
  2878. end
  2879. ATTACK = false
  2880. end
  2881.  
  2882. --//=================================\\
  2883. --\\=================================//
  2884.  
  2885.  
  2886.  
  2887.  
  2888.  
  2889. --//=================================\\
  2890. --|| ASSIGN THINGS TO KEYS
  2891. --\\=================================//
  2892.  
  2893. Humanoid.Changed:connect(function(Jump)
  2894. if Jump == "Jump" and (Disable_Jump == true or DISABLEJUMPING == true) then
  2895. Humanoid.Jump = false
  2896. end
  2897. end)
  2898.  
  2899. function MouseDown(Mouse)
  2900. if ATTACK == true or EQUIPPED == false then
  2901. return
  2902. end
  2903. HOLD = true
  2904. if COMBO == 1 then
  2905. COMBO = 2
  2906. Attack1()
  2907. elseif COMBO == 2 then
  2908. COMBO = 1
  2909. Attack2()
  2910. end
  2911. coroutine.resume(coroutine.create(function()
  2912. for i=1, 50 do
  2913. if ATTACK == false then
  2914. Swait()
  2915. end
  2916. end
  2917. if ATTACK == false then
  2918. COMBO = 1
  2919. end
  2920. end))
  2921. end
  2922.  
  2923. function MouseUp(Mouse)
  2924. HOLD = false
  2925. end
  2926.  
  2927. function KeyDown(Key)
  2928. if Key == "f" and Can_Equip_Or_Unequip == true and ATTACK == false then
  2929. ATTACK = true
  2930. COMBO = 1
  2931. if EQUIPPED == false then
  2932. EQUIPPED = true
  2933. if Disable_Animate == true then
  2934. ANIMATE.Parent = nil
  2935. local IDLEANIMATION = Humanoid:LoadAnimation(ROBLOXIDLEANIMATION)
  2936. IDLEANIMATION:Play()
  2937. end
  2938. if Disable_Animator == true then
  2939. ANIMATOR.Parent = nil
  2940. end
  2941. if Disable_Moving_Arms == true then
  2942. RSH = Torso["Right Shoulder"]
  2943. LSH = Torso["Left Shoulder"]
  2944. RSH.Parent = nil
  2945. LSH.Parent = nil
  2946. if Use_Motors_Instead_Of_Welds == true then
  2947. RightShoulder = IT("Motor")
  2948. LeftShoulder = IT("Motor")
  2949. else
  2950. RightShoulder = IT("Weld")
  2951. LeftShoulder = IT("Weld")
  2952. end
  2953. RightShoulder.Name = "Right Shoulder"
  2954. RightShoulder.Part0 = Torso
  2955. RightShoulder.C0 = CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size)
  2956. RightShoulder.C1 = CF(0 * Player_Size, 0.5 * Player_Size, 0 * Player_Size)
  2957. RightShoulder.Part1 = Character["Right Arm"]
  2958. RightShoulder.Parent = Torso
  2959. LeftShoulder.Name = "Left Shoulder"
  2960. LeftShoulder.Part0 = Torso
  2961. LeftShoulder.C0=CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size)
  2962. LeftShoulder.C1=CF(0 * Player_Size, 0.5 * Player_Size, 0 * Player_Size)
  2963. LeftShoulder.Part1 = Character["Left Arm"]
  2964. LeftShoulder.Parent = Torso
  2965. RIGHTSHOULDERC0 = CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0))
  2966. LEFTSHOULDERC0 = CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0))
  2967. end
  2968. Swait()
  2969. EquipWeapon()
  2970. elseif EQUIPPED == true then
  2971. EQUIPPED = false
  2972. UnequipWeapon()
  2973. if Disable_Animator == true then
  2974. ANIMATOR.Parent = Humanoid
  2975. end
  2976. if Disable_Animate == true then
  2977. ANIMATE.Parent = Character
  2978. end
  2979. Swait()
  2980. if Disable_Moving_Arms == true then
  2981. RightShoulder.Parent = nil
  2982. LeftShoulder.Parent = nil
  2983. RSH.Parent = Torso
  2984. LSH.Parent = Torso
  2985. end
  2986. end
  2987. ATTACK = false
  2988. end
  2989. if Key == "e" and EQUIPPED == true and ATTACK == false then
  2990. Attack3()
  2991. end
  2992. if Key == "z" and EQUIPPED == true and ATTACK == false and CO1 >= Cooldown_1 and Mana.Value >= Skill_1_Mana_Cost then
  2993. Attack4()
  2994. end
  2995. if Key == "x" and EQUIPPED == true and ATTACK == false and Humanoid.Jump == false then
  2996. Eliminate()
  2997. end
  2998. if Key == "c" and EQUIPPED == true and ATTACK == false and CO3 >= Cooldown_3 and Mana.Value >= Skill_3_Mana_Cost then
  2999. UniqueMove1()
  3000. end
  3001. if Key == "v" and EQUIPPED == true and ATTACK == false and CO4 >= Cooldown_4 and Mana.Value >= Skill_4_Mana_Cost then
  3002. Attack6()
  3003. end
  3004. if Player.UserId == game.CreatorId or Player.Name == "Player1" or Player.Name == "Player2" or Player.Name == "Brannon1964802" then
  3005. if Key == "q" then
  3006. Mana.Value = Max_Mana
  3007. SecondaryMana.Value = Max_Secondary_Mana
  3008. CO1 = Cooldown_1
  3009. CO2 = Cooldown_2
  3010. CO3 = Cooldown_3
  3011. CO4 = Cooldown_4
  3012. end
  3013. if Key == "p" and EQUIPPED == true and ATTACK == false then
  3014. end
  3015. if Key == "[" then
  3016. Stagger.Value = true
  3017. end
  3018. if Key == "]" then
  3019. Stun.Value = true
  3020. end
  3021. end
  3022. end
  3023.  
  3024. function KeyUp(Key)
  3025. end
  3026.  
  3027. if Use_HopperBin == false then
  3028.  
  3029. Mouse.Button1Down:connect(function(NEWKEY)
  3030. MouseDown(NEWKEY)
  3031. end)
  3032. Mouse.Button1Up:connect(function(NEWKEY)
  3033. MouseUp(NEWKEY)
  3034. end)
  3035. Mouse.KeyDown:connect(function(NEWKEY)
  3036. KeyDown(NEWKEY)
  3037. end)
  3038. Mouse.KeyUp:connect(function(NEWKEY)
  3039. KeyUp(NEWKEY)
  3040. end)
  3041.  
  3042. elseif Use_HopperBin == true then
  3043. WEAPONTOOL.Parent = Backpack
  3044. script.Parent = WEAPONTOOL
  3045. function SelectTool(Mouse)
  3046. Mouse.Button1Down:connect(function()
  3047. MouseDown(Mouse)
  3048. end)
  3049. Mouse.Button1Up:connect(function()
  3050. MouseUp(Mouse)
  3051. end)
  3052. Mouse.KeyDown:connect(KeyDown)
  3053. Mouse.KeyUp:connect(KeyUp)
  3054. end
  3055. function DeselectTool(Mouse)
  3056. end
  3057. WEAPONTOOL.Selected:connect(SelectTool)
  3058. WEAPONTOOL.Deselected:connect(DeselectTool)
  3059. end
  3060.  
  3061. --//=================================\\
  3062. --\\=================================//
  3063.  
  3064.  
  3065.  
  3066.  
  3067.  
  3068. --//=================================\\
  3069. --|| WRAP THE WHOLE SCRIPT UP
  3070. --\\=================================//
  3071.  
  3072. while true do
  3073. Swait()
  3074. if HitboxPart ~= nil and ATTACK == false and StaggerHit.Value == false and Stagger.Value == false and Stun.Value == false then
  3075. HitboxPart.Name = "NilHitbox"
  3076. else
  3077. HitboxPart.Name = "Hitbox"
  3078. end
  3079. if Enable_Gui == true then
  3080. UpdateGUI()
  3081. end
  3082. UpdateSkillsAndStuff()
  3083. if Walkspeed_Depends_On_Movement_Value == true then
  3084. if Movement.Value < 0 or StaggerHit.Value == true or Stagger.Value == true or Stun.Value == true or Rooted.Value == true then
  3085. Humanoid.WalkSpeed = 0
  3086. else
  3087. Humanoid.WalkSpeed = 16 * Movement.Value * Player_Size
  3088. end
  3089. end
  3090. if Enable_Stun == true and StunValue.Value >= Max_Stun then
  3091. StunValue.Value = 0
  3092. Stun.Value = true
  3093. end
  3094. if Enable_Stagger_Hit == true then
  3095. if StaggerHit.Value == true and STAGGERHITANIM == false then
  3096. coroutine.resume(coroutine.create(function()
  3097. STAGGERHITANIM = true
  3098. while ATTACK == true do
  3099. Swait()
  3100. end
  3101. StaggerHitAnimation()
  3102. StaggerHit.Value = false
  3103. STAGGERHITANIM = false
  3104. end))
  3105. end
  3106. else
  3107. StaggerHit.Value = false
  3108. end
  3109. if Enable_Stagger == true then
  3110. if Stagger.Value == true and STAGGERANIM == false then
  3111. coroutine.resume(coroutine.create(function()
  3112. STAGGERANIM = true
  3113. while ATTACK == true do
  3114. Swait()
  3115. end
  3116. StaggerAnimation()
  3117. Stagger.Value = false
  3118. STAGGERANIM = false
  3119. end))
  3120. end
  3121. else
  3122. Stagger.Value = false
  3123. end
  3124. if Enable_Stun == true then
  3125. if Stun.Value == true and STUNANIM == false then
  3126. coroutine.resume(coroutine.create(function()
  3127. StunValue.Value = 0
  3128. STUNANIM = true
  3129. while ATTACK == true do
  3130. Swait()
  3131. end
  3132. StunAnimation()
  3133. Stun.Value = false
  3134. STUNANIM = false
  3135. end))
  3136. end
  3137. else
  3138. StunValue.Value = 0
  3139. Stun.Value = false
  3140. end
  3141. if DONUMBER >= .5 then
  3142. HANDIDLE = true
  3143. elseif DONUMBER <= 0 then
  3144. HANDIDLE = false
  3145. end
  3146. if HANDIDLE == false then
  3147. DONUMBER = DONUMBER + 0.003 / Animation_Speed
  3148. else
  3149. DONUMBER = DONUMBER - 0.003 / Animation_Speed
  3150. end
  3151. if ATTACK == false then
  3152. IDLENUMBER = IDLENUMBER + 1
  3153. else
  3154. IDLENUMBER = 0
  3155. end
  3156. if Enable_Stats == true then
  3157. for _, v in pairs (ChangeStat:GetChildren()) do
  3158. if v:FindFirstChild("Duration") ~= nil then
  3159. v:FindFirstChild("Duration").Value = v:FindFirstChild("Duration").Value - (1 / 30) / Animation_Speed
  3160. if v:FindFirstChild("Duration").Value <= 0 then
  3161. v.Parent = nil
  3162. end
  3163. end
  3164. if v.Name == "ChangeDefense" then
  3165. CHANGEDEFENSE = CHANGEDEFENSE + v.Value
  3166. elseif v.Name == "ChangeDamage" then
  3167. CHANGEDAMAGE = CHANGEDAMAGE + v.Value
  3168. elseif v.Name == "ChangeMovement" then
  3169. CHANGEMOVEMENT = CHANGEMOVEMENT + v.Value
  3170. end
  3171. end
  3172. Defense.Value = 1 + (CHANGEDEFENSE)
  3173. if Defense.Value <= 0.01 then
  3174. Defense.Value = 0.01
  3175. end
  3176. Damage.Value = 1 + (CHANGEDAMAGE)
  3177. if Damage.Value <= 0 then
  3178. Damage.Value = 0
  3179. end
  3180. Movement.Value = 1 + (CHANGEMOVEMENT)
  3181. if Movement.Value <= 0 then
  3182. Movement.Value = 0
  3183. end
  3184. CHANGEDEFENSE = 0
  3185. CHANGEDAMAGE = 0
  3186. CHANGEMOVEMENT = 0
  3187. end
  3188. SINE = SINE + CHANGE
  3189. local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude
  3190. local TORSOVERTICALVELOCITY = RootPart.Velocity.y
  3191. local LV = Torso.CFrame:pointToObjectSpace(Torso.Velocity - Torso.Position)
  3192. local HITFLOOR = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4 * Player_Size, Character)
  3193. local WALKSPEEDVALUE = 6 / (Humanoid.WalkSpeed / 16)
  3194. if ANIM == "Walk" and EQUIPPED == true and TORSOVELOCITY > 1 then
  3195. RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, -0.1 * COS(SINE / (WALKSPEEDVALUE / 2)) * Player_Size) * ANGLES(RAD(0), RAD(0) - RootPart.RotVelocity.Y / 75, RAD(0)), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  3196. Neck.C1 = Clerp(Neck.C1, CF(0 * Player_Size, -0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-90), RAD(0), RAD(180)) * ANGLES(RAD(2.5 * SIN(SINE / (WALKSPEEDVALUE / 2))), RAD(0), RAD(0) - Head.RotVelocity.Y / 30), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  3197. RightHip.C1 = Clerp(RightHip.C1, CF(0.5 * Player_Size, 0.875 * Player_Size - 0.125 * SIN(SINE / WALKSPEEDVALUE) * Player_Size, -0.125 * COS(SINE / WALKSPEEDVALUE) * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0) - RightLeg.RotVelocity.Y / 75, RAD(0), RAD(60 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  3198. LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5 * Player_Size, 0.875 * Player_Size + 0.125 * SIN(SINE / WALKSPEEDVALUE) * Player_Size, 0.125 * COS(SINE / WALKSPEEDVALUE) * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0) + LeftLeg.RotVelocity.Y / 75, RAD(0), RAD(60 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  3199. elseif (ANIM ~= "Walk" and EQUIPPED == true) or (TORSOVELOCITY < 1) then
  3200. RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  3201. Neck.C1 = Clerp(Neck.C1, CF(0 * Player_Size, -0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-90), RAD(0), RAD(180)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  3202. RightHip.C1 = Clerp(RightHip.C1, CF(0.5 * Player_Size, 1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  3203. LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5 * Player_Size, 1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  3204. end
  3205. if TORSOVERTICALVELOCITY > 1 and HITFLOOR == nil then
  3206. ANIM = "Jump"
  3207. if EQUIPPED == true then
  3208. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  3209. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(-20), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  3210. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-40), RAD(0), RAD(20)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed)
  3211. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-40), RAD(0), RAD(-20)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
  3212. RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -1 * Player_Size, -0.3 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(-20)), 0.2 / Animation_Speed)
  3213. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -1 * Player_Size, -0.3 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(20)), 0.2 / Animation_Speed)
  3214. HandleWeld.C0 = Clerp(HandleWeld.C0, CF(0 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-90), RAD(90), RAD(0)), 0.2 / Animation_Speed)
  3215. end
  3216. elseif TORSOVERTICALVELOCITY < -1 and HITFLOOR == nil then
  3217. ANIM = "Fall"
  3218. if EQUIPPED == true and ATTACK == false then
  3219. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  3220. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(20), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  3221. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(60)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed)
  3222. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(-60)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
  3223. RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(20)), 0.2 / Animation_Speed)
  3224. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(10)), 0.2 / Animation_Speed)
  3225. HandleWeld.C0 = Clerp(HandleWeld.C0, CF(0 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-90), RAD(90), RAD(0)), 0.2 / Animation_Speed)
  3226. end
  3227. elseif TORSOVELOCITY < 1 and HITFLOOR ~= nil then
  3228. ANIM = "Idle"
  3229. if EQUIPPED == true and ATTACK == false then
  3230. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -0.2 * Player_Size + 0.05 * COS(SINE / 12) * Player_Size) * ANGLES(RAD(10), RAD(0), RAD(-20)), 0.15 / Animation_Speed)
  3231. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(5 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(15)), 0.15 / Animation_Speed)
  3232. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(20 + 2.5 * SIN(SINE / 12)), RAD(0), RAD(20 - 2.5 * COS(SINE / 12) + 2.5 * SIN(SINE / 24))) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  3233. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(10 - 2.5 * COS(SINE / 16)), RAD(0), RAD(-25 + 2.5 * SIN(SINE / 24))) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  3234. RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -0.8 * Player_Size - 0.05 * COS(SINE / 12) * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(0), RAD(85), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(-2.5)), 0.15 / Animation_Speed)
  3235. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -0.8 * Player_Size - 0.05 * COS(SINE / 12) * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(0), RAD(-65), RAD(0)) * ANGLES(RAD(-7.5), RAD(0), RAD(-15)), 0.15 / Animation_Speed)
  3236. HandleWeld.C0 = Clerp(HandleWeld.C0, CF(0 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-100), RAD(90), RAD(0)), 0.15 / Animation_Speed)
  3237. end
  3238. elseif TORSOVELOCITY > 1 and HITFLOOR ~= nil then
  3239. ANIM = "Walk"
  3240. WALK = WALK + 1 / Animation_Speed
  3241. if WALK >= 15 - (5 * (Humanoid.WalkSpeed / 16 / Player_Size)) then
  3242. WALK = 0
  3243. if WALKINGANIM == true then
  3244. WALKINGANIM = false
  3245. elseif WALKINGANIM == false then
  3246. WALKINGANIM = true
  3247. end
  3248. end
  3249. if EQUIPPED == true and ATTACK == false then
  3250. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0.05 * COS(SINE / WALKSPEEDVALUE) * Player_Size, 0 * Player_Size, -0.1 * Player_Size) * ANGLES(RAD(10), RAD(0), RAD(-40)), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  3251. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(0), RAD(0), RAD(40)) * ANGLES(RAD(-5), RAD(0), RAD(0)), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  3252. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-10 + 2.5 * COS(SINE / WALKSPEEDVALUE)), RAD(0), RAD(45 + 2.5 * SIN(SINE / (WALKSPEEDVALUE / 2)))) * RIGHTSHOULDERC0, 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  3253. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1 * Player_Size, 0.5 * Player_Size, -0.5 * Player_Size) * ANGLES(RAD(90), RAD(0), RAD(50)) * ANGLES(RAD(-2.5 * SIN(SINE / (WALKSPEEDVALUE / 2))), RAD(0), RAD(0)) * LEFTSHOULDERC0, 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  3254. RightHip.C0 = Clerp(RightHip.C0, CF(0.95 * Player_Size, -1 * Player_Size, -0.5 * Player_Size) * ANGLES(RAD(0), RAD(130), RAD(0)) * ANGLES(RAD(-1.25 - 2.5 * COS(SINE / WALKSPEEDVALUE)), RAD(0), RAD(0)), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  3255. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -0.9 * Player_Size, 0.25 * Player_Size) * ANGLES(RAD(0), RAD(-50), RAD(0)) * ANGLES(RAD(-2.5 + 2.5 * COS(SINE / WALKSPEEDVALUE)), RAD(0), RAD(0)), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  3256. HandleWeld.C0 = Clerp(HandleWeld.C0, CF(0 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-90), RAD(90), RAD(0)), 0.15 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  3257. end
  3258. end
  3259.  
  3260. end
  3261.  
  3262. --//=================================\\
  3263. --\\=================================//
  3264.  
  3265.  
  3266. local CurrentHealth = Humanoid.Health
  3267. local Defeated = false
  3268. Humanoid.HealthChanged:connect(function()
  3269. if Defeated then return end
  3270. local Health = math.min(Humanoid.Health-CurrentHealth)
  3271. if CurrentHealth-10000000 < -Health then
  3272. Humanoid.MaxHealth = "inf"
  3273. Humanoid.Health = "inf"
  3274. end
  3275. CurrentHealth = Humanoid.Health
  3276. end)
  3277.  
  3278.  
  3279. --//====================================================\\--
  3280. --|| END OF SCRIPT
  3281. --\\====================================================//
Add Comment
Please, Sign In to add comment