Advertisement
1x1x1x1IAMbck

Virus

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