Advertisement
Joshmaxy1115

Josh The Nova V3

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