Advertisement
Dark_EccentricYT

Untitled

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