Guest User

Untitled

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