KarmaRange

Untitled

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