Advertisement
Guest User

Untitled

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