Advertisement
DogeLiker

DESTROYER

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