Advertisement
KarmaRange

Untitled

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