Advertisement
MiloTheSkunk

ROBLOX Corrupted Script

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