Advertisement
Guest User

Untitled

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