KarmaRange

Sorcus

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