Advertisement
ItzPartapika

Soviet Officer.

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