Advertisement
Guest User

Wizard

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