KarmaRange

Untitled

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