Advertisement
MiloTheSkunk

RoBlOX DaNk ScRiPT

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