Dark_EccentricYT

Untitled

Aug 18th, 2017
1,527
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 53.20 KB | None | 0 0
  1. local function lerp(weld,beglerp,endlerp,speed)
  2. weld.C0 = beglerp:lerp(endlerp,speed)
  3. return weld.C0
  4. end
  5.  
  6. local speed = 0.2
  7. local angle = 0
  8. local anglespeed = 2
  9. local armspeed = 0.2
  10. local armangle = 0
  11. local armanglespeed = 2
  12. local legspeed = 0.2
  13. local legangle = 0
  14. local leganglespeed = 2
  15. local on = true
  16. local damen = false
  17. local enabled = true
  18. local blocking = false
  19. local zenabled = 0
  20. local xenabled = 0
  21. local cenabled = 0
  22. local venabled = 0
  23. local eenabled = 0
  24. local Debounce = {}
  25. local TakeDamage = false
  26. local combo = 1
  27. local Player = game.Players.LocalPlayer
  28. local mouse = Player:GetMouse()
  29. local Char = Player.Character
  30. local Character = Char
  31. local Human = Char.Humanoid
  32. local Sounds = {"rbxassetid://234365549","rbxassetid://200632211","rbxassetid://136007472","rbxassetid://136523485","rbxassetid://163619849","rbxassetid://240517975","rbxassetid://233856154","rbxassetid://401057781","rbxassetid://401057825","rbxassetid://401057895","rbxassetid://199149186","rbxassetid://199149269"}
  33. local Head = Char.Head
  34. local LA = Char:findFirstChild("Left Arm")
  35. local RA = Char:findFirstChild("Right Arm")
  36. local LL = Char:findFirstChild("Left Leg")
  37. local RL = Char:findFirstChild("Right Leg")
  38. local T = Char:findFirstChild("Torso")
  39. local LS = T:findFirstChild("Left Shoulder")
  40. local RS = T:findFirstChild("Right Shoulder")
  41. local LH = T:findFirstChild("Left Hip")
  42. local RH = T:findFirstChild("Right Hip")
  43. local Neck = T:findFirstChild("Neck")
  44. local HM = Char:findFirstChild("HumanoidRootPart")
  45. local RJ = Char:findFirstChild("HumanoidRootPart"):findFirstChild("RootJoint")
  46. local WLS = Instance.new("Motor", T)
  47. WLS.C0 = CFrame.new(-1.5, 0.5, 0)
  48. WLS.C1 = CFrame.new(0, 0.5, 0)
  49. WLS.Part0 = T
  50. WLS.Part1 = LA
  51. local WRS = Instance.new("Motor", T)
  52. WRS.Part0 = T
  53. WRS.Part1 = RA
  54. WRS.C0 = CFrame.new(1.5, 0.5, 0)
  55. WRS.C1 = CFrame.new(0, 0.5, 0)
  56. local WLH = LH
  57. local WRH = RH
  58. local LSC0 = WLS.C0
  59. local RSC0 = WRS.C0
  60. local LHC0 = CFrame.new(-1, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  61. local LHC1 = CFrame.new(-0.5, 1 ,0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  62. local RHC0 = CFrame.new(1, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  63. local RHC1 = CFrame.new(0.5, 1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  64. local WRJ = RJ
  65. local RJC0 = WRJ.C0
  66. local RJC1 = WRJ.C1
  67. local NC0 = CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  68. local Run = game:GetService("RunService")
  69. local noweightprop = PhysicalProperties.new(0,0.3,0.5,0,0)
  70. Anim = Char:FindFirstChild("Animate")
  71. if Anim ~= nil then
  72. Anim.Parent = nil
  73. end
  74. Animate = Human:FindFirstChild("Animator")
  75. if Animate ~= nil then
  76. Animate.Parent = nil
  77. end
  78.  
  79. local gui = Instance.new("ScreenGui",Player.PlayerGui)
  80. local skill1 = Instance.new("TextLabel",gui)
  81. skill1.Size = UDim2.new(0,150,0,50)
  82. skill1.Position = UDim2.new(0.75,0,0.75,0)
  83. skill1.Text = ""
  84. skill1.TextWrapped = true
  85. skill1.BackgroundColor3 = BrickColor.new("Medium stone grey").Color
  86. local skill1text = Instance.new("TextLabel",gui)
  87. skill1text.Size = UDim2.new(0,150,0,50)
  88. skill1text.Position = UDim2.new(0.75,0,0.75,0)
  89. skill1text.TextColor3 = Color3.new(1,1,1)
  90. skill1text.BackgroundTransparency = 1
  91. skill1text.TextWrapped = true
  92. skill1text.TextScaled = true
  93. skill1text.Font = "Antique"
  94. skill1text.BackgroundColor3 = BrickColor.new("Medium stone grey").Color
  95. skill1img = Instance.new("ImageLabel",skill1)
  96. skill1img.Size = UDim2.new(0,0,1,0)
  97. skill1img.Image = "rbxassetid://48965808"
  98. skill1img.BackgroundColor3 = BrickColor.new("Navy blue").Color
  99. local skill2 = Instance.new("TextLabel",gui)
  100. skill2.Size = UDim2.new(0,150,0,50)
  101. skill2.Position = UDim2.new(0.875,0,0.75,0)
  102. skill2.Text = ""
  103. skill2.TextWrapped = true
  104. skill2.BackgroundColor3 = BrickColor.new("Medium stone grey").Color
  105. local skill2text = Instance.new("TextLabel",gui)
  106. skill2text.Size = UDim2.new(0,150,0,50)
  107. skill2text.Position = UDim2.new(0.875,0,0.75,0)
  108. skill2text.TextColor3 = Color3.new(1,1,1)
  109. skill2text.BackgroundTransparency = 1
  110. skill2text.TextWrapped = true
  111. skill2text.TextScaled = true
  112. skill2text.Font = "Antique"
  113. skill2text.BackgroundColor3 = BrickColor.new("Medium stone grey").Color
  114. skill2img = Instance.new("ImageLabel",skill2)
  115. skill2img.Size = UDim2.new(0,0,1,0)
  116. skill2img.Image = "rbxassetid://48965808"
  117. skill2img.BackgroundColor3 = BrickColor.new("Navy blue").Color
  118. local skill3 = Instance.new("TextLabel",gui)
  119. skill3.Size = UDim2.new(0,150,0,50)
  120. skill3.Position = UDim2.new(0.75,0,0.85,0)
  121. skill3.Text = ""
  122. skill3.TextWrapped = true
  123. skill3.BackgroundColor3 = BrickColor.new("Medium stone grey").Color
  124. local skill3text = Instance.new("TextLabel",gui)
  125. skill3text.Size = UDim2.new(0,150,0,50)
  126. skill3text.Position = UDim2.new(0.75,0,0.85,0)
  127. skill3text.TextColor3 = Color3.new(1,1,1)
  128. skill3text.BackgroundTransparency = 1
  129. skill3text.TextWrapped = true
  130. skill3text.TextScaled = true
  131. skill3text.Font = "Antique"
  132. skill3text.BackgroundColor3 = BrickColor.new("Medium stone grey").Color
  133. skill3img = Instance.new("ImageLabel",skill3)
  134. skill3img.Size = UDim2.new(0,0,1,0)
  135. skill3img.Image = "rbxassetid://48965808"
  136. skill3img.BackgroundColor3 = BrickColor.new("Navy blue").Color
  137. local skill4 = Instance.new("TextLabel",gui)
  138. skill4.Size = UDim2.new(0,150,0,50)
  139. skill4.Position = UDim2.new(0.875,0,0.85,0)
  140. skill4.Text = ""
  141. skill4.TextWrapped = true
  142. skill4.BackgroundColor3 = BrickColor.new("Medium stone grey").Color
  143. local skill4text = Instance.new("TextLabel",gui)
  144. skill4text.Size = UDim2.new(0,150,0,50)
  145. skill4text.Position = UDim2.new(0.875,0,0.85,0)
  146. skill4text.TextColor3 = Color3.new(1,1,1)
  147. skill4text.BackgroundTransparency = 1
  148. skill4text.TextWrapped = true
  149. skill4text.TextScaled = true
  150. skill4text.Font = "Antique"
  151. skill4text.BackgroundColor3 = BrickColor.new("Medium stone grey").Color
  152. skill4img = Instance.new("ImageLabel",skill4)
  153. skill4img.Size = UDim2.new(0,0,1,0)
  154. skill4img.Image = "rbxassetid://48965808"
  155. skill4img.BackgroundColor3 = BrickColor.new("Navy blue").Color
  156. local skill5 = Instance.new("TextLabel",gui)
  157. skill5.Size = UDim2.new(0,150,0,50)
  158. skill5.Position = UDim2.new(0.8125,0,0.65,0)
  159. skill5.Text = ""
  160. skill5.TextWrapped = true
  161. skill5.BackgroundColor3 = BrickColor.new("Medium stone grey").Color
  162. local skill5text = Instance.new("TextLabel",gui)
  163. skill5text.Size = UDim2.new(0,150,0,50)
  164. skill5text.Position = UDim2.new(0.8125,0,0.65,0)
  165. skill5text.TextColor3 = Color3.new(1,1,1)
  166. skill5text.BackgroundTransparency = 1
  167. skill5text.TextWrapped = true
  168. skill5text.TextScaled = true
  169. skill5text.Font = "Antique"
  170. skill5text.BackgroundColor3 = BrickColor.new("Medium stone grey").Color
  171. skill5img = Instance.new("ImageLabel",skill5)
  172. skill5img.Size = UDim2.new(0,0,1,0)
  173. skill5img.Image = "rbxassetid://48965808"
  174. skill5img.BackgroundColor3 = BrickColor.new("Navy blue").Color
  175.  
  176. Character=Char
  177. m=Instance.new('Model',Character)
  178. it=Instance.new
  179. function nooutline(part)
  180. part.TopSurface,part.BottomSurface,part.LeftSurface,part.RightSurface,part.FrontSurface,part.BackSurface = 10,10,10,10,10,10
  181. end
  182. function part(formfactor,parent,material,reflectance,transparency,brickcolor,name,size)
  183. local fp=it("Part")
  184. fp.formFactor=formfactor
  185. fp.Parent=parent
  186. fp.Reflectance=reflectance
  187. fp.Transparency=transparency
  188. fp.CanCollide=false fp.Locked=true
  189. fp.BrickColor=BrickColor.new(tostring(brickcolor))
  190. fp.Name=name
  191. fp.Size=size
  192. fp.Position=Character.Torso.Position
  193. nooutline(fp)
  194. fp.Material=material
  195. fp:BreakJoints()
  196. return fp
  197. end
  198. function mesh(Mesh,part,meshtype,meshid,offset,scale)
  199. local mesh=it(Mesh)
  200. mesh.Parent=part
  201. if Mesh=="SpecialMesh" then
  202. mesh.MeshType=meshtype
  203. mesh.MeshId=meshid
  204. end
  205. mesh.Offset=offset
  206. mesh.Scale=scale
  207. return mesh
  208. end
  209. function weld(parent,part0,part1,c0,c1)
  210. local weld=it("Weld")
  211. weld.Parent=parent
  212. weld.Part0=part0
  213. weld.Part1=part1
  214. weld.C0=c0
  215. weld.C1=c1
  216. return weld
  217. end
  218. Sword=part(Enum.FormFactor.Symmetric,m,Enum.Material.Plastic,0,0,"Medium stone grey","Handle",Vector3.new(1, 4, 2))
  219. Swordweld=weld(m,Character["Right Arm"],Sword,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(1.0997057e-005, 1.90734863e-006, 2.81333923e-005, 0, 0, 1, 0, 0.999999881, 0, -1, 0, 0))
  220. Swordmesh = mesh("SpecialMesh",Sword,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=139536155",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  221. Swordmesh.TextureId = "http://www.roblox.com/asset/?id=139536467"
  222. Shield=part(Enum.FormFactor.Symmetric,m,Enum.Material.Plastic,0,0,"Medium stone grey","Handle",Vector3.new(3, 3, 1))
  223. Shieldweld=weld(m,Character["Left Arm"],Shield,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-2.81333923e-005, 1.90734863e-006, 1.0997057e-005, 1, 0, 0, 0, 0.999999881, 0, 4.37113883e-008, 0, 1))
  224. Shieldmesh = mesh("SpecialMesh",Shield,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=139536383",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  225. Shieldmesh.TextureId = "http://www.roblox.com/asset/?id=139536467"
  226.  
  227. HW = Swordweld
  228. SHW = Shieldweld
  229. hc0 = Swordweld.C0 *CFrame.new(0,-1,-1.5) *CFrame.Angles(-math.pi/2,math.pi/2,0)
  230. shc0 = Shieldweld.C0 *CFrame.new(-0.65,-0.1,0) *CFrame.Angles(-math.pi/2,math.pi/2,0)
  231. HW.C0 = hc0
  232. SHW.C0 = shc0
  233.  
  234. for i,v in pairs(m:GetChildren()) do
  235. if v.ClassName == "Part" then
  236. v.CustomPhysicalProperties = noweightprop
  237. for i,x in pairs(v:GetChildren()) do
  238. v.CustomPhysicalProperties = noweightprop
  239. end
  240. end
  241. end
  242.  
  243. local Meshes={
  244. Blast="20329976",
  245. Crown="1323306",
  246. Ring="3270017",
  247. Claw="10681506",
  248. Crystal="9756362",
  249. Coil="9753878",
  250. Cloud="1095708",
  251. Skull="4770583",
  252. SpinyShell="1080954",
  253. }
  254.  
  255. local function nooutlines(part)
  256. part.TopSurface,part.BottomSurface,part.LeftSurface,part.RightSurface,part.FrontSurface,part.BackSurface = 10,10,10,10,10,10
  257. end
  258.  
  259. local function getmesh(mesh)
  260. return "rbxassetid://"..mesh
  261. end
  262.  
  263.  
  264. ArtificialHB = Instance.new("BindableEvent", script)
  265. ArtificialHB.Name = "Heartbeat"
  266.  
  267. script:WaitForChild("Heartbeat")
  268.  
  269. frame = 1 / 60
  270. tf = 0
  271. allowframeloss = false
  272. tossremainder = false
  273. lastframe = tick()
  274. script.Heartbeat:Fire()
  275.  
  276. game:GetService("RunService").Heartbeat:connect(function(s, p)
  277. tf = tf + s
  278. if tf >= frame then
  279. if allowframeloss then
  280. script.Heartbeat:Fire()
  281. lastframe = tick()
  282. else
  283. for i = 1, math.floor(tf / frame) do
  284. script.Heartbeat:Fire()
  285. end
  286. lastframe = tick()
  287. end
  288. if tossremainder then
  289. tf = 0
  290. else
  291. tf = tf - frame * math.floor(tf / frame)
  292. end
  293. end
  294. end)
  295.  
  296. local function Rwait(num)
  297. if num == 0 or num == nil then
  298. ArtificialHB.Event:wait()
  299. else
  300. for i = 0, num do
  301. ArtificialHB.Event:wait()
  302. end
  303. end
  304. end
  305.  
  306. local function effect(part,brickcolor,size,cframe,trans,transincrement,scaleby,loopwait,meshid,meshtype)
  307. local p = Instance.new("Part", part or workspace)
  308. p.Anchored = true
  309. p.CanCollide = false
  310. p.FormFactor = Enum.FormFactor.Custom
  311. p.Material = "SmoothPlastic"
  312. p.CFrame = cframe
  313. p.BrickColor = brickcolor
  314. p.Size = Vector3.new(1,1,1)
  315. p.Transparency = trans
  316. nooutlines(p)
  317. local m = Instance.new("SpecialMesh",p)
  318. if meshtype ~= nil and meshid == nil then
  319. m.MeshType = meshtype
  320. end
  321. if meshtype == nil and meshid ~= nil then
  322. m.MeshId = getmesh(meshid)
  323. end
  324. m.Scale = size
  325. coroutine.wrap(function()
  326. for i = 0,loopwait,0.1 do
  327. p.CFrame = p.CFrame
  328. p.Transparency = p.Transparency +transincrement
  329. m.Scale = m.Scale + scaleby
  330. Rwait()
  331. end
  332. p:Destroy()
  333. end)()
  334. return p
  335. end
  336.  
  337. local PlaySound = function(part,volume,pitch,id,looped)
  338. local Sound = Instance.new("Sound", part)
  339. Sound.SoundId = id
  340. Sound.Pitch = pitch
  341. Sound.Volume = volume
  342. coroutine.wrap(function()
  343. wait()
  344. Sound:Play()
  345. if looped == nil then
  346. game.Debris:AddItem(Sound,10)
  347. end
  348. end)()
  349. if looped == true then
  350. Sound.Looped = true
  351. ThisSound = Sound
  352. end
  353. end
  354.  
  355. local ShowDmg = function(totake)
  356. local modl = Instance.new("Model", workspace)
  357. modl.Name = tostring(totake)
  358. local prt = Instance.new("Part", modl)
  359. prt.CanCollide = false
  360. prt.BrickColor = BrickColor.Red()
  361. prt.Name = "Head"
  362. prt.CFrame = HM.CFrame *CFrame.new(0, 1.5, 0)
  363. prt.TopSurface = 0
  364. prt.BottomSurface = 0
  365. prt.FormFactor = 3
  366. prt.Size = Vector3.new(1, 0.2, 1)
  367. local bm = Instance.new("BlockMesh", prt)
  368. local hum = Instance.new("Humanoid", modl)
  369. hum.Health = 0
  370. hum.MaxHealth = 0
  371. hum.WalkSpeed = 0
  372. bodypos = Instance.new("BodyPosition", prt)
  373. bodypos.position = Head.Position +Vector3.new(0, 1, 0)
  374. bodypos.maxForce = Vector3.new(math.huge, math.huge, math.huge)
  375. game.Debris:AddItem(modl, 1)
  376. coroutine.resume(coroutine.create(function()
  377. for i = 1, 3 do
  378. bodypos.position = bodypos.position +Vector3.new(0, 0.5, 0)
  379. Rwait()
  380. end
  381. end))
  382. end
  383.  
  384. local function ChargeAt(Strength)
  385. local BV = Instance.new("BodyVelocity",HM)
  386. BV.maxForce = Vector3.new(1e5,0,1e5)
  387. BV.velocity = HM.CFrame.lookVector *Strength
  388. game.Debris:AddItem(BV,0.1)
  389. end
  390.  
  391. local function Damage(hit,mm,knockback,knockbackvelocity)
  392. if hit ~= nil and damen == true and hit.Parent ~= Char then
  393. local hum = GetHumanoid(hit.Parent)
  394. if hum ~= nil then
  395. if TakeDamage == true then
  396. hum:TakeDamage(mm)
  397. spawn(function()
  398. ShowDmg(mm)
  399. end)
  400. elseif TakeDamage == false then
  401. hum.Health = hum.Health - mm
  402. spawn(function()
  403. ShowDmg(mm)
  404. end)
  405. end
  406. PlaySound(hum.Torso,1,1,Sounds[math.random(8,12)])
  407. if knockback ~= nil and knockback ~= 0 then
  408. if knockbackvelocity == nil then
  409. local v = Instance.new("BodyVelocity",hum.Torso)
  410. v.maxForce = Vector3.new(1e5,1e5,1e5)
  411. v.P = 1e20
  412. v.velocity = HM.CFrame.lookVector *knockback
  413. game.Debris:AddItem(v,0.3)
  414. else
  415. local v = Instance.new("BodyVelocity",hum.Torso)
  416. v.maxForce = Vector3.new(1e5,1e5,1e5)
  417. v.P = 1e20
  418. v.velocity = KnockbackVelocity *knockback
  419. game.Debris:AddItem(v,0.3)
  420. end
  421. end
  422. end
  423. damen = false
  424. end
  425. end
  426.  
  427. function GetDistance(Obj,Mag)
  428. local Bodies = {}
  429. for _,v in pairs(workspace:GetChildren()) do
  430. if v ~= Char then
  431. hum = findhum(v)
  432. if hum ~= nil and hum.Torso ~= nil then
  433. local Mag2 = (hum.Torso.Position - Obj.Position).magnitude
  434. if Mag2 < Mag then
  435. Bodies[#Bodies + 1] = v
  436. end
  437. end
  438. end
  439. end
  440. return Bodies,hum
  441. end
  442.  
  443. --darkus stuff
  444.  
  445. function GetHumanoid(Character)
  446.  
  447. assert(Character, 'bad argument #1 to Character (Model expected, got nil)')
  448.  
  449. local hum
  450.  
  451. if Character == Char then return end
  452.  
  453. if Character.ClassName == "Hat" or Character.ClassName == "Accessory" then
  454. for q,e in next, Character.Parent:children() do
  455. if e:isA'Humanoid' then
  456. hum = e
  457. end
  458. if e:isA'ForceField' then
  459. return
  460. end
  461. end
  462. else
  463. for q,e in next, Character:children() do
  464. if e:isA'Humanoid' then
  465. hum = e
  466. end
  467. if e:isA'ForceField' then
  468. return
  469. end
  470. end
  471. end
  472. return hum
  473. end
  474.  
  475. function GetNear(Object, Distance)
  476.  
  477. assert(Object, 'bad argument #1 to Object (Model expected, got nil)')
  478.  
  479. local Distance = (Distance and Distance or 25)
  480. local rtn = {}
  481.  
  482. for q,e in next, workspace:children() do
  483. local Hum = e:FindFirstChild'Humanoid'
  484. if Hum ~= nil then
  485. Tor = Hum.Torso
  486. end
  487. if Tor ~= nil then
  488. local dist = (Object.Position-Tor.Position).magnitude
  489. if dist <= Distance then
  490. rtn[#rtn+1] = e
  491. end
  492. end
  493. end
  494. return rtn
  495. end
  496.  
  497. function DamageNear(Distance, Part, Damage, Knockback, DebounceTime, KnockbackVelocity)
  498. if damen == false then return end
  499. assert(Part, 'bad argument #2 to Part (Part expected, got nil)')
  500. assert(Part:isA'BasePart', ('bad argument #2 to Part (Part expected, got %s)'):format(Part.ClassName))
  501.  
  502. local Distance = (Distance and Distance or 25)
  503. local Noobs = GetNear(Part, Distance)
  504.  
  505. for nild, Character in next, Noobs do
  506.  
  507. local Human = GetHumanoid(Character)
  508. if Human and not Debounce[Character] then
  509. -- no clue why they were using spawn but ok...
  510.  
  511. Debounce[Character] = true
  512.  
  513. if TakeDamage then
  514. Human:TakeDamage(Damage)
  515. spawn(function()
  516. ShowDmg(Damage)
  517. end)
  518. else
  519. Human.Health = Human.Health - Damage
  520. spawn(function()
  521. ShowDmg(Damage)
  522. end)
  523. end
  524. PlaySound(Human.Torso,1,1,Sounds[math.random(8,12)])
  525. if Knockback then
  526. if KnockbackVelocity == nil then
  527. local v = Instance.new("BodyVelocity", Human.Torso)
  528. v.maxForce = Vector3.new(1e5,1e5,1e5)
  529. v.P = 1e20
  530. v.velocity = HM.CFrame.lookVector * Knockback
  531. spawn(function()
  532. game:service'Debris':AddItem(v,0.3)
  533. end)
  534. else
  535. local v = Instance.new("BodyVelocity", Human.Torso)
  536. v.maxForce = Vector3.new(1e5,1e5,1e5)
  537. v.P = 1e20
  538. v.velocity = KnockbackVelocity * Knockback
  539. spawn(function()
  540. game:service'Debris':AddItem(v,0.3)
  541. end)
  542. end
  543. end
  544.  
  545. coroutine.wrap(function()--spawn(function()
  546. wait(DebounceTime)
  547. Debounce[Character] = nil
  548. end)()--end)
  549.  
  550. end
  551. end
  552.  
  553. return
  554. end
  555. --
  556.  
  557. local function Slash1()
  558. for i = 1,12 do
  559. lerp(WLS,WLS.C0,LSC0 *CFrame.Angles(math.pi/7,0,-math.pi/4),armspeed)
  560. lerp(WRS,WRS.C0,RSC0 *CFrame.Angles(0,-math.pi/1.2,-math.pi/2),armspeed)
  561. lerp(WRJ,WRJ.C0,RJC0 *CFrame.Angles(0,0,-math.pi/5),speed)
  562. lerp(Neck,Neck.C0,NC0 *CFrame.Angles(0,0,math.pi/5),speed)
  563. lerp(HW,HW.C0,hc0,speed)
  564. lerp(SHW,SHW.C0,shc0,speed)
  565. if Vector3.new(HM.Velocity.X,0,HM.Velocity.Z).magnitude < 2 then
  566. lerp(WLH,WLH.C0,LHC0,legspeed)
  567. lerp(WRH,WRH.C0,RHC0,legspeed)
  568. elseif Vector3.new(HM.Velocity.X,0,HM.Velocity.Z).magnitude >= 2 then
  569. lerp(WLH,WLH.C0,LHC0 *CFrame.new(-0.1+math.sin(legangle*Human.WalkSpeed/16)*0.2,0.1+math.sin(legangle*Human.WalkSpeed/16)*0.3,0) *CFrame.Angles(0,0,math.asin(math.cos(legangle*Human.WalkSpeed/16)*0.75)),legspeed)
  570. lerp(WRH,WRH.C0,RHC0 *CFrame.new(0.1+math.sin(legangle*Human.WalkSpeed/16)*0.2,0.1-math.sin(legangle*Human.WalkSpeed/16)*0.3,0) *CFrame.Angles(0,0,math.asin(math.cos(legangle*Human.WalkSpeed/16)*0.75)),legspeed)
  571. end
  572. Rwait()
  573. end
  574. damen = true
  575. PlaySound(Sword,1,0.6,Sounds[1])
  576. for i = 1,15 do
  577. DamageNear(4,Sword,math.random(5,10),5,0.5)
  578. lerp(WLS,WLS.C0,LSC0 *CFrame.Angles(math.pi/6,0,-math.pi/4),armspeed)
  579. lerp(WRS,WRS.C0,RSC0 *CFrame.new(0,0,-0.5) *CFrame.Angles(0,-math.pi/10,-math.pi/2),armspeed)
  580. lerp(WRJ,WRJ.C0,RJC0 *CFrame.Angles(0,0,math.pi/5),speed)
  581. lerp(Neck,Neck.C0,NC0 *CFrame.Angles(0,0,-math.pi/5),speed)
  582. lerp(HW,HW.C0,hc0,speed)
  583. lerp(SHW,SHW.C0,shc0,speed)
  584. if Vector3.new(HM.Velocity.X,0,HM.Velocity.Z).magnitude < 2 then
  585. lerp(WLH,WLH.C0,LHC0,legspeed)
  586. lerp(WRH,WRH.C0,RHC0,legspeed)
  587. elseif Vector3.new(HM.Velocity.X,0,HM.Velocity.Z).magnitude >= 2 then
  588. lerp(WLH,WLH.C0,LHC0 *CFrame.new(-0.1+math.sin(legangle*Human.WalkSpeed/16)*0.2,0.1+math.sin(legangle*Human.WalkSpeed/16)*0.15,0) *CFrame.Angles(0,0,math.asin(math.cos(legangle*Human.WalkSpeed/16)*0.75)),legspeed)
  589. lerp(WRH,WRH.C0,RHC0 *CFrame.new(0.1+math.sin(legangle*Human.WalkSpeed/16)*0.2,0.1-math.sin(legangle*Human.WalkSpeed/16)*0.15,0) *CFrame.Angles(0,0,math.asin(math.cos(legangle*Human.WalkSpeed/16)*0.75)),legspeed)
  590. end
  591. Rwait()
  592. end
  593. damen = false
  594. end
  595.  
  596. local function Slash2()
  597. for i = 1,12 do
  598. lerp(WLS,WLS.C0,LSC0 *CFrame.Angles(0,0,-math.pi/8),armspeed)
  599. lerp(WRS,WRS.C0,RSC0 *CFrame.Angles(math.pi/1.3,0,math.pi/5),armspeed)
  600. lerp(WRJ,WRJ.C0,RJC0 *CFrame.Angles(0,0,-math.pi/5),speed)
  601. lerp(Neck,Neck.C0,NC0 *CFrame.Angles(0,0,math.pi/5),speed)
  602. lerp(HW,HW.C0,hc0,speed)
  603. lerp(SHW,SHW.C0,shc0,speed)
  604. if Vector3.new(HM.Velocity.X,0,HM.Velocity.Z).magnitude < 2 then
  605. lerp(WLH,WLH.C0,LHC0,legspeed)
  606. lerp(WRH,WRH.C0,RHC0,legspeed)
  607. elseif Vector3.new(HM.Velocity.X,0,HM.Velocity.Z).magnitude >= 2 then
  608. lerp(WLH,WLH.C0,LHC0 *CFrame.new(-0.1+math.sin(legangle*Human.WalkSpeed/16)*0.2,0.1+math.sin(legangle*Human.WalkSpeed/16)*0.15,0) *CFrame.Angles(0,0,math.asin(math.cos(legangle*Human.WalkSpeed/16)*0.75)),legspeed)
  609. lerp(WRH,WRH.C0,RHC0 *CFrame.new(0.1+math.sin(legangle*Human.WalkSpeed/16)*0.2,0.1-math.sin(legangle*Human.WalkSpeed/16)*0.15,0) *CFrame.Angles(0,0,math.asin(math.cos(legangle*Human.WalkSpeed/16)*0.75)),legspeed)
  610. end
  611. Rwait()
  612. end
  613. damen = true
  614. PlaySound(Sword,1,0.8,Sounds[1])
  615. for i = 1,15 do
  616. DamageNear(4,Sword,math.random(5,10),5,0.5)
  617. lerp(WLS,WLS.C0,LSC0 *CFrame.Angles(-math.pi/7,0,-math.pi/4),armspeed)
  618. lerp(WRS,WRS.C0,RSC0 *CFrame.Angles(math.pi/38,0,-math.pi/5),armspeed)
  619. lerp(WRJ,WRJ.C0,RJC0 *CFrame.Angles(0,0,math.pi/5),speed)
  620. lerp(Neck,Neck.C0,NC0 *CFrame.Angles(0,0,-math.pi/5),speed)
  621. lerp(HW,HW.C0,hc0,speed)
  622. lerp(SHW,SHW.C0,shc0,speed)
  623. if Vector3.new(HM.Velocity.X,0,HM.Velocity.Z).magnitude < 2 then
  624. lerp(WLH,WLH.C0,LHC0,legspeed)
  625. lerp(WRH,WRH.C0,RHC0,legspeed)
  626. elseif Vector3.new(HM.Velocity.X,0,HM.Velocity.Z).magnitude >= 2 then
  627. lerp(WLH,WLH.C0,LHC0 *CFrame.new(-0.1+math.sin(legangle*Human.WalkSpeed/16)*0.2,0.1+math.sin(legangle*Human.WalkSpeed/16)*0.15,0) *CFrame.Angles(0,0,math.asin(math.cos(legangle*Human.WalkSpeed/16)*0.75)),legspeed)
  628. lerp(WRH,WRH.C0,RHC0 *CFrame.new(0.1+math.sin(legangle*Human.WalkSpeed/16)*0.2,0.1-math.sin(legangle*Human.WalkSpeed/16)*0.15,0) *CFrame.Angles(0,0,math.asin(math.cos(legangle*Human.WalkSpeed/16)*0.75)),legspeed)
  629. end
  630. Rwait()
  631. end
  632. damen = false
  633. end
  634.  
  635. local function Charge3()
  636. for i = 1,12 do
  637. lerp(WLS,WLS.C0,LSC0 *CFrame.Angles(0,0,-math.pi/5),armspeed)
  638. lerp(WRS,WRS.C0,RSC0 *CFrame.Angles(0,math.pi/6,math.pi/2),armspeed)
  639. lerp(WLH,WLH.C0,LHC0 *CFrame.new(-0.8,0.5,0),legspeed)
  640. lerp(WRH,WRH.C0,RHC0 *CFrame.new(0,0.5,0) *CFrame.Angles(-math.pi/10,0,-math.pi/9),legspeed)
  641. lerp(WRJ,WRJ.C0,RJC0 *CFrame.new(0,0,-0.5) *CFrame.Angles(0,0,-math.pi/6),speed)
  642. lerp(Neck,Neck.C0,NC0 *CFrame.Angles(0,0,math.pi/6),speed)
  643. lerp(HW,HW.C0,hc0,speed)
  644. lerp(SHW,SHW.C0,shc0,speed)
  645. if Vector3.new(HM.Velocity.X,0,HM.Velocity.Z).magnitude < 2 then
  646. lerp(WLH,WLH.C0,LHC0 *CFrame.new(-0.8,0.5,0),legspeed)
  647. lerp(WRH,WRH.C0,RHC0 *CFrame.new(0,0.5,0) *CFrame.Angles(-math.pi/10,0,-math.pi/9),legspeed)
  648. elseif Vector3.new(HM.Velocity.X,0,HM.Velocity.Z).magnitude >= 2 then
  649. lerp(WLH,WLH.C0,LHC0 *CFrame.new(-0.8,0.5,0) *CFrame.new(-0.1+math.sin(legangle*Human.WalkSpeed/16)*0.2,0.1+math.sin(legangle*Human.WalkSpeed/16)*0.15,0) *CFrame.Angles(0,0,math.asin(math.cos(legangle*Human.WalkSpeed/16)*0.75)),legspeed)
  650. lerp(WRH,WRH.C0,RHC0 *CFrame.new(0.1+math.sin(legangle*Human.WalkSpeed/16)*0.2,0.1-math.sin(legangle*Human.WalkSpeed/16)*0.15,0) *CFrame.Angles(0,0,math.asin(math.cos(legangle*Human.WalkSpeed/16)*0.75)),legspeed)
  651. end
  652. Rwait()
  653. end
  654. damen = true
  655. PlaySound(Sword,1,1.2,Sounds[1])
  656. ChargeAt(50)
  657. for i = 1,18 do
  658. DamageNear(4,Sword,math.random(5,11),17,0.5)
  659. lerp(WLS,WLS.C0,LSC0 *CFrame.Angles(0,0,-math.pi/5),armspeed)
  660. lerp(WRS,WRS.C0,RSC0 *CFrame.Angles(0,math.pi/3,math.pi/2),armspeed)
  661. lerp(WLH,WLH.C0,LHC0,legspeed)
  662. lerp(WRH,WRH.C0,RHC0 *CFrame.Angles(0,0,0),legspeed)
  663. lerp(WRJ,WRJ.C0,RJC0 *CFrame.Angles(0,0,math.pi/3),speed)
  664. lerp(Neck,Neck.C0,NC0 *CFrame.Angles(0,0,-math.pi/3),speed)
  665. lerp(HW,HW.C0,hc0 *CFrame.new(1,-2,0) *CFrame.Angles(0,0,-math.pi/1.5),1)
  666. lerp(SHW,SHW.C0,shc0,speed)
  667. if Vector3.new(HM.Velocity.X,0,HM.Velocity.Z).magnitude < 2 then
  668. lerp(WLH,WLH.C0,LHC0,legspeed)
  669. lerp(WRH,WRH.C0,RHC0,legspeed)
  670. elseif Vector3.new(HM.Velocity.X,0,HM.Velocity.Z).magnitude >= 2 then
  671. lerp(WLH,WLH.C0,LHC0 *CFrame.new(-0.1+math.sin(legangle*Human.WalkSpeed/16)*0.2,0.1+math.sin(legangle*Human.WalkSpeed/16)*0.15,0) *CFrame.Angles(0,0,math.asin(math.cos(legangle*Human.WalkSpeed/16)*0.75)),legspeed)
  672. lerp(WRH,WRH.C0,RHC0 *CFrame.new(0.1+math.sin(legangle*Human.WalkSpeed/16)*0.2,0.1-math.sin(legangle*Human.WalkSpeed/16)*0.15,0) *CFrame.Angles(0,0,math.asin(math.cos(legangle*Human.WalkSpeed/16)*0.75)),legspeed)
  673. end
  674. Rwait()
  675. end
  676. damen = false
  677. end
  678.  
  679. local function Shield4()
  680. for i = 1,14 do
  681. DamageNear(4,Shield,math.random(7,14),15,0.5)
  682. lerp(WLS,WLS.C0,LSC0 *CFrame.new(0.5,0,0) *CFrame.Angles(math.pi/2,0,math.pi/8),armspeed)
  683. lerp(WRS,WRS.C0,RSC0 *CFrame.Angles(0,0,math.pi/8),armspeed)
  684. lerp(WRJ,WRJ.C0,RJC0 *CFrame.Angles(0,0,-math.pi/2),speed)
  685. lerp(Neck,Neck.C0,NC0 *CFrame.Angles(0,0,math.pi/2),speed)
  686. lerp(HW,HW.C0,hc0,speed)
  687. lerp(SHW,SHW.C0,shc0,speed)
  688. if Vector3.new(HM.Velocity.X,0,HM.Velocity.Z).magnitude < 2 then
  689. lerp(WLH,WLH.C0,LHC0,legspeed)
  690. lerp(WRH,WRH.C0,RHC0,legspeed)
  691. elseif Vector3.new(HM.Velocity.X,0,HM.Velocity.Z).magnitude >= 2 then
  692. lerp(WLH,WLH.C0,LHC0 *CFrame.new(-0.1+math.sin(legangle*Human.WalkSpeed/16)*0.2,0.1+math.sin(legangle*Human.WalkSpeed/16)*0.15,0) *CFrame.Angles(0,0,math.asin(math.cos(legangle*Human.WalkSpeed/16)*0.75)),legspeed)
  693. lerp(WRH,WRH.C0,RHC0 *CFrame.new(0.1+math.sin(legangle*Human.WalkSpeed/16)*0.2,0.1-math.sin(legangle*Human.WalkSpeed/16)*0.15,0) *CFrame.Angles(0,0,math.asin(math.cos(legangle*Human.WalkSpeed/16)*0.75)),legspeed)
  694. end
  695. Rwait()
  696. end
  697. damen = true
  698. PlaySound(Shield,1,0.7,Sounds[2])
  699. ChargeAt(40)
  700. for i = 1,18 do
  701. DamageNear(4,Shield,math.random(6,10),15,0.5)
  702. lerp(WLS,WLS.C0,LSC0 *CFrame.Angles(math.pi/2,0,0),armspeed)
  703. lerp(WRS,WRS.C0,RSC0 *CFrame.Angles(0,0,math.pi/8),armspeed)
  704. lerp(WRJ,WRJ.C0,RJC0 *CFrame.Angles(0,0,-math.pi/2),speed)
  705. lerp(Neck,Neck.C0,NC0 *CFrame.Angles(0,0,math.pi/2),speed)
  706. lerp(HW,HW.C0,hc0,speed)
  707. lerp(SHW,SHW.C0,shc0,speed)
  708. if Vector3.new(HM.Velocity.X,0,HM.Velocity.Z).magnitude < 2 then
  709. lerp(WLH,WLH.C0,LHC0,legspeed)
  710. lerp(WRH,WRH.C0,RHC0,legspeed)
  711. elseif Vector3.new(HM.Velocity.X,0,HM.Velocity.Z).magnitude >= 2 then
  712. lerp(WLH,WLH.C0,LHC0 *CFrame.new(-0.1+math.sin(legangle*Human.WalkSpeed/16)*0.2,0.1+math.sin(legangle*Human.WalkSpeed/16)*0.15,0) *CFrame.Angles(0,0,math.asin(math.cos(legangle*Human.WalkSpeed/16)*0.75)),legspeed)
  713. lerp(WRH,WRH.C0,RHC0 *CFrame.new(0.1+math.sin(legangle*Human.WalkSpeed/16)*0.2,0.1-math.sin(legangle*Human.WalkSpeed/16)*0.15,0) *CFrame.Angles(0,0,math.asin(math.cos(legangle*Human.WalkSpeed/16)*0.75)),legspeed)
  714. end
  715. Rwait()
  716. end
  717. damen = false
  718. end
  719.  
  720. local function SwordStrike()
  721. local sound = Instance.new("Sound",Sword)
  722. sound.SoundId = Sounds[5]
  723. sound.Volume = 1
  724. sound.Pitch = 0.1
  725. sound:Play()
  726. game.Debris:AddItem(sound,10)
  727. for i = 1,16 do
  728. sound.Pitch = sound.Pitch +0.05
  729. lerp(WLS,WLS.C0,LSC0 *CFrame.Angles(0,0,math.pi/8),armspeed)
  730. lerp(WRS,WRS.C0,RSC0 *CFrame.Angles(math.pi/1.15,0,math.pi/7),armspeed)
  731. lerp(WRJ,WRJ.C0,RJC0 *CFrame.Angles(0,0,-math.pi/5),speed)
  732. lerp(Neck,Neck.C0,NC0 *CFrame.Angles(0,0,math.pi/5),speed)
  733. lerp(HW,HW.C0,hc0,speed)
  734. lerp(SHW,SHW.C0,shc0,speed)
  735. if Vector3.new(HM.Velocity.X,0,HM.Velocity.Z).magnitude < 2 then
  736. lerp(WLH,WLH.C0,LHC0,legspeed)
  737. lerp(WRH,WRH.C0,RHC0,legspeed)
  738. elseif Vector3.new(HM.Velocity.X,0,HM.Velocity.Z).magnitude >= 2 then
  739. lerp(WLH,WLH.C0,LHC0 *CFrame.new(-0.1+math.sin(legangle*Human.WalkSpeed/16)*0.2,0.1+math.sin(legangle*Human.WalkSpeed/16)*0.15,0) *CFrame.Angles(0,0,math.asin(math.cos(legangle*Human.WalkSpeed/16)*0.75)),legspeed)
  740. lerp(WRH,WRH.C0,RHC0 *CFrame.new(0.1+math.sin(legangle*Human.WalkSpeed/16)*0.2,0.1-math.sin(legangle*Human.WalkSpeed/16)*0.15,0) *CFrame.Angles(0,0,math.asin(math.cos(legangle*Human.WalkSpeed/16)*0.75)),legspeed)
  741. end
  742. Rwait()
  743. end
  744. PlaySound(Sword,1,0.85,Sounds[1])
  745. damen = true
  746. for i = 1,18 do
  747. DamageNear(4,Sword,math.random(14,18),20,0.5)
  748. if i % 4 == 0 then
  749. SwordEff = Sword:Clone()
  750. SwordEff.Anchored = true
  751. SwordEff.Parent = Char
  752. local sphereeff = effect(Sword,BrickColor.new("Toothpaste"),Vector3.new(0.8,3,0.8),SwordEff.CFrame *CFrame.new(0,0.2,0),0,0.2,Vector3.new(0.1,0,0.1),1,nil,"Sphere")
  753. sphereeff.Material = "Neon"
  754. for _,Sounds in pairs(SwordEff:GetChildren()) do
  755. if Sounds.ClassName == "Sound" then
  756. SwordEff.Sound:Stop()
  757. SwordEff.Sound:Destroy()
  758. end
  759. end
  760. SwordEff.Transparency = 0.25
  761. end
  762. game.Debris:AddItem(SwordEff,0.5)
  763. lerp(WLS,WLS.C0,LSC0 *CFrame.Angles(math.pi/5,0,-math.pi/4),armspeed)
  764. lerp(WRS,WRS.C0,RSC0 *CFrame.Angles(math.pi/5,0,-math.pi/12),armspeed)
  765. lerp(WRJ,WRJ.C0,RJC0 *CFrame.Angles(0,0,math.pi/5),speed)
  766. lerp(Neck,Neck.C0,NC0 *CFrame.Angles(0,0,-math.pi/5),speed)
  767. lerp(HW,HW.C0,hc0 *CFrame.new(1,-1,0) *CFrame.Angles(0,0,-math.pi/4),speed)
  768. lerp(SHW,SHW.C0,shc0,speed)
  769. if Vector3.new(HM.Velocity.X,0,HM.Velocity.Z).magnitude < 2 then
  770. lerp(WLH,WLH.C0,LHC0,legspeed)
  771. lerp(WRH,WRH.C0,RHC0,legspeed)
  772. elseif Vector3.new(HM.Velocity.X,0,HM.Velocity.Z).magnitude >= 2 then
  773. lerp(WLH,WLH.C0,LHC0 *CFrame.new(-0.1+math.sin(legangle*Human.WalkSpeed/16)*0.2,0.1+math.sin(legangle*Human.WalkSpeed/16)*0.15,0) *CFrame.Angles(0,0,math.asin(math.cos(legangle*Human.WalkSpeed/16)*0.75)),legspeed)
  774. lerp(WRH,WRH.C0,RHC0 *CFrame.new(0.1+math.sin(legangle*Human.WalkSpeed/16)*0.2,0.1-math.sin(legangle*Human.WalkSpeed/16)*0.15,0) *CFrame.Angles(0,0,math.asin(math.cos(legangle*Human.WalkSpeed/16)*0.75)),legspeed)
  775. end
  776. Rwait()
  777. end
  778. damen = false
  779. end
  780.  
  781. local function SwordsOfChaos()
  782. for i = 1,16 do
  783. lerp(WLS,WLS.C0,LSC0 *CFrame.Angles(0,0,-math.pi/8),armspeed)
  784. lerp(WRS,WRS.C0,RSC0 *CFrame.Angles(math.pi/1.15,0,0),armspeed)
  785. lerp(WRJ,WRJ.C0,RJC0,speed)
  786. lerp(Neck,Neck.C0,NC0,speed)
  787. lerp(HW,HW.C0,hc0 *CFrame.new(-0.8,-3,0) *CFrame.Angles(math.pi,0,math.pi/7),1)
  788. lerp(SHW,SHW.C0,shc0,speed)
  789. if Vector3.new(HM.Velocity.X,0,HM.Velocity.Z).magnitude < 2 then
  790. lerp(WLH,WLH.C0,LHC0,legspeed)
  791. lerp(WRH,WRH.C0,RHC0,legspeed)
  792. elseif Vector3.new(HM.Velocity.X,0,HM.Velocity.Z).magnitude >= 2 then
  793. lerp(WLH,WLH.C0,LHC0 *CFrame.new(-0.1+math.sin(legangle*Human.WalkSpeed/16)*0.2,0.1+math.sin(legangle*Human.WalkSpeed/16)*0.15,0) *CFrame.Angles(0,0,math.asin(math.cos(legangle*Human.WalkSpeed/16)*0.75)),legspeed)
  794. lerp(WRH,WRH.C0,RHC0 *CFrame.new(0.1+math.sin(legangle*Human.WalkSpeed/16)*0.2,0.1-math.sin(legangle*Human.WalkSpeed/16)*0.15,0) *CFrame.Angles(0,0,math.asin(math.cos(legangle*Human.WalkSpeed/16)*0.75)),legspeed)
  795. end
  796. Rwait()
  797. end
  798. damen = true
  799. Human.WalkSpeed = 0
  800. local distance = 0
  801. local Ignore = {}
  802. local hashit = false
  803. for i = 1,50 do
  804. if i == 10 then
  805. for I_shall,ignore_this in pairs(workspace:GetChildren()) do
  806. if ignore_this:IsA("Model") then
  807. if ignore_this:FindFirstChild("Humanoid") then
  808. for _,ignorepart in pairs(ignore_this:GetChildren()) do
  809. if ignorepart.ClassName == "Part" then
  810. table.insert(Ignore,ignorepart)
  811. end
  812. end
  813. end
  814. end
  815. end
  816. local RayC = Ray.new(Sword.Position +Vector3.new(0,1,0),Vector3.new(0,-4,0))
  817. local Hit,pos = workspace:FindPartOnRayWithIgnoreList(RayC,Ignore)
  818. if Hit ~= nil and hashit == false then
  819. hashit = true
  820. effect(Sword,BrickColor.new("Toothpaste"),Vector3.new(0.4,3,0.4),Sword.CFrame *CFrame.new(0,0.2,0),0,0.1,Vector3.new(0.5,0,0.5),1,nil,"Sphere")
  821. for i = 1,8 do
  822. local center = Instance.new("Part",Sword)
  823. center.Anchored = true
  824. center.CanCollide = false
  825. center.Transparency = 1
  826. center.Size = Vector3.new(1,1,1)
  827. center.TopSurface = 0
  828. center.BottomSurface = 0
  829. center.FrontSurface = "Hinge"
  830. center.CFrame = CFrame.new(pos) *(HM.CFrame-HM.Position) *CFrame.new(0, 0.5, distance)
  831. center:BreakJoints()
  832. game.Debris:AddItem(center,2)
  833. PlaySound(center,0.4,0.7,Sounds[4])
  834. local Ignore = {}
  835. for I_shall,ignore_this in pairs(workspace:GetChildren()) do
  836. if ignore_this:IsA("Model") then
  837. if ignore_this:FindFirstChild("Humanoid") then
  838. for _,ignorepart in pairs(ignore_this:GetChildren()) do
  839. if ignorepart.ClassName == "Part" then
  840. table.insert(Ignore,ignorepart)
  841. end
  842. end
  843. end
  844. end
  845. end
  846. local RayC = Ray.new(center.Position,Vector3.new(0,-999,0))
  847. local Hit,pos = workspace:FindPartOnRayWithIgnoreList(RayC,Ignore)
  848. if Hit ~= nil and hashit == true then
  849. for i = 1,5 do
  850. local groundeff = effect(Sword,Hit.BrickColor,Vector3.new(1.5,1.5,1.5),CFrame.new(pos) *CFrame.new(math.random(-2,2),0,math.random(-2,2)) *CFrame.Angles(math.random(-3600,3600)/10,math.random(-3600,3600)/10,math.random(-3600,3600)/10),0,0,Vector3.new(),1,nil,"Brick")
  851. groundeff.Material = Hit.Material
  852. end
  853. local SwordEff = effect(Sword,BrickColor.new("Medium stone grey"),Vector3.new(0.8,0.8,0.8),CFrame.new(pos),0,0,Vector3.new(),8,"139536155",nil)
  854. SwordEff.Mesh.TextureId = "rbxassetid://139536467"
  855. SwordEff.Mesh.Scale = Vector3.new(1,1.25,1)
  856. PlaySound(SwordEff,0.2,1.5,Sounds[6])
  857. spawn(function()
  858. effect(Sword,BrickColor.new("Toothpaste"),Vector3.new(2,6,2),SwordEff.CFrame,0,0.1,Vector3.new(0.1,-0.7,0.1),1,nil,"Sphere")
  859. damen = true
  860. for i = 1,80 do
  861. if i % 5 == 0 then
  862. effect(Sword,BrickColor.new("Toothpaste"),Vector3.new(2,2,2),SwordEff.CFrame *CFrame.Angles(math.random(-3600,3600)/10,math.random(-3600,3600)/10,math.random(-3600,3600)/10),0,0.25,Vector3.new(-0.2,-0.2,-0.2),0.25,nil,"Brick")
  863. end
  864. DamageNear(4,SwordEff,math.random(10,15),30,0.2,Vector3.new(0,1.2,0))
  865. SwordEff.CFrame = SwordEff.CFrame *CFrame.Angles(0,math.rad(50),0) *CFrame.new(0,0.25,0)
  866. Rwait()
  867. end
  868. SwordEff.Transparency = 1
  869. PlaySound(SwordEff,0.2,1.7,Sounds[3])
  870. PlaySound(SwordEff,0.4,1.9,Sounds[4])
  871. local sphereeff = effect(Sword,BrickColor.new("Toothpaste"),Vector3.new(2/2,6/2,2/2),SwordEff.CFrame,0,0.2,Vector3.new(0.85,0.85,0.85),6,nil,"Sphere")
  872. sphereeff.Material = "Neon"
  873. spawn(function()
  874. for i = 1,30 do
  875. DamageNear(4,sphereeff,math.random(4,8),30,0.2,center.CFrame.lookVector *0.8)
  876. Rwait()
  877. end
  878. end)
  879. for i = 1,5 do
  880. local sphereeff2 = effect(Sword,BrickColor.new("Toothpaste"),Vector3.new(0.2,1,0.2),sphereeff.CFrame *CFrame.Angles(math.random(-3600,3600)/10,math.random(-3600,3600)/10,math.random(-3600,3600)/10),0,0.2,Vector3.new(0,0.8,0),2,nil,"Sphere")
  881. spawn(function()
  882. for i = 1,80 do
  883. sphereeff2.CFrame = sphereeff2.CFrame *CFrame.new(0,2,0)
  884. Rwait()
  885. end
  886. end)
  887. sphereeff2.Material = "Neon"
  888. Rwait()
  889. end
  890. end)
  891. distance = distance -4
  892. end
  893. Rwait()
  894. end
  895. end
  896. end
  897. lerp(WLS,WLS.C0,LSC0 *CFrame.Angles(math.pi/5,0,-math.pi/4),armspeed)
  898. lerp(WRS,WRS.C0,RSC0 *CFrame.Angles(math.pi/9,0,0),armspeed)
  899. lerp(WRJ,WRJ.C0,RJC0 *CFrame.new(0,0,-1),speed)
  900. lerp(Neck,Neck.C0,NC0,speed)
  901. lerp(WLH,WLH.C0,LHC0 *CFrame.Angles(0,0,math.pi/2),legspeed)
  902. lerp(WRH,WRH.C0,RHC0 *CFrame.new(1,0.5,0),legspeed)
  903. lerp(HW,HW.C0,hc0 *CFrame.new(1,-1.5,0) *CFrame.Angles(math.pi,0,-math.pi/2.5),1)
  904. lerp(SHW,SHW.C0,shc0,speed)
  905. Rwait()
  906. end
  907. Human.WalkSpeed = 16
  908. damen = false
  909. end
  910.  
  911. local function ThrowingOrbs()
  912. for i = 1,3 do
  913. for i = 1,12 do
  914. lerp(WLS,WLS.C0,LSC0 *CFrame.Angles(0,0,-math.pi/8),armspeed)
  915. lerp(WRS,WRS.C0,RSC0 *CFrame.Angles(0,math.pi/30,math.pi/2),armspeed)
  916. lerp(WRJ,WRJ.C0,RJC0 *CFrame.Angles(0,0,-math.pi/5),speed)
  917. lerp(Neck,Neck.C0,NC0 *CFrame.Angles(0,0,math.pi/5),speed)
  918. lerp(HW,HW.C0,hc0,1)
  919. lerp(SHW,SHW.C0,shc0,speed)
  920. if Vector3.new(HM.Velocity.X,0,HM.Velocity.Z).magnitude < 2 then
  921. lerp(WLH,WLH.C0,LHC0,legspeed)
  922. lerp(WRH,WRH.C0,RHC0,legspeed)
  923. elseif Vector3.new(HM.Velocity.X,0,HM.Velocity.Z).magnitude >= 2 then
  924. lerp(WLH,WLH.C0,LHC0 *CFrame.new(-0.1+math.sin(legangle*Human.WalkSpeed/16)*0.2,0.1+math.sin(legangle*Human.WalkSpeed/16)*0.15,0) *CFrame.Angles(0,0,math.asin(math.cos(legangle*Human.WalkSpeed/16)*0.75)),legspeed)
  925. lerp(WRH,WRH.C0,RHC0 *CFrame.new(0.1+math.sin(legangle*Human.WalkSpeed/16)*0.2,0.1-math.sin(legangle*Human.WalkSpeed/16)*0.15,0) *CFrame.Angles(0,0,math.asin(math.cos(legangle*Human.WalkSpeed/16)*0.75)),legspeed)
  926. end
  927. Rwait()
  928. end
  929. damen = true
  930. PlaySound(Sword,1,0.8,Sounds[1])
  931. for i = 1,16 do
  932. if i == 14 then
  933. local balleff = effect(Sword,BrickColor.new("Toothpaste"),Vector3.new(2,2,2),HM.CFrame *CFrame.new(0,0,-5),0,0,Vector3.new(),7,nil,"Sphere")
  934. local sound = Instance.new("Sound",balleff)
  935. sound.SoundId = Sounds[6]
  936. sound.Pitch = 1.73
  937. sound.Volume = 1
  938. sound.TimePosition = 0.1
  939. sound:Play()
  940. game.Debris:AddItem(sound,10)
  941. balleff.Anchored = false
  942. balleff.Material = "Neon"
  943. local BV = Instance.new("BodyVelocity",balleff)
  944. BV.maxForce = Vector3.new(1/0,1/0,1/0)
  945. BV.velocity = HM.CFrame.lookVector *100
  946. spawn(function()
  947. if balleff.Parent == nil then
  948. print("ok")
  949. for i = 1,3 do
  950. effect(Sword,BrickColor.new("Toothpaste"),Vector3.new(2,2,2),balleff.CFrame *CFrame.Angles(math.random(-3600,3600)/10,math.random(-3600,3600)/10,math.random(-3600,3600)/10),0,0,Vector3.new(1,1,1),0.25,nil,"Brick")
  951. end
  952. for i = 1,5 do
  953. local explosioneff = effect(Sword,BrickColor.new("Toothpaste"),Vector3.new(0.2,1,0.2),balleff.CFrame *CFrame.Angles(math.random(-3600,3600)/10,math.random(-3600,3600)/10,math.random(-3600,3600)/10),0,0.25,Vector3.new(0,0.8,0),0.25,nil,"Sphere")
  954. spawn(function()
  955. for i = 1,10 do
  956. explosioneff.CFrame = explosioneff.CFrame *CFrame.new(0,1,0)
  957. Rwait()
  958. end
  959. end)
  960. end
  961. end
  962. local dmgbx = balleff.Touched:connect(function(hit)
  963. if damen == false then return end
  964. if hit.Parent == Char or hit.Parent == Shield or hit.Parent == Sword then return end
  965. Damage(hit,math.random(8,15),15)
  966. damen = false
  967. for i = 1,3 do
  968. effect(Sword,BrickColor.new("Toothpaste"),Vector3.new(2,2,2),balleff.CFrame *CFrame.Angles(math.random(-3600,3600)/10,math.random(-3600,3600)/10,math.random(-3600,3600)/10),0,0,Vector3.new(1,1,1),0.25,nil,"Brick")
  969. end
  970. for i = 1,5 do
  971. local explosioneff = effect(Sword,BrickColor.new("Toothpaste"),Vector3.new(0.2,1,0.2),balleff.CFrame *CFrame.Angles(math.random(-3600,3600)/10,math.random(-3600,3600)/10,math.random(-3600,3600)/10),0,0.25,Vector3.new(0,0.8,0),0.25,nil,"Sphere")
  972. spawn(function()
  973. for i = 1,10 do
  974. explosioneff.CFrame = explosioneff.CFrame *CFrame.new(0,1,0)
  975. Rwait()
  976. end
  977. end)
  978. end
  979. balleff.Parent = nil
  980. end)
  981. while balleff.Parent ~= nil do
  982. effect(balleff,BrickColor.new("Toothpaste"),Vector3.new(1.3,1.3,1.3),balleff.CFrame *CFrame.new(0,0,2) *CFrame.Angles(math.random(-3600,3600)/10,math.random(-3600,3600)/10,math.random(-3600,3600)/10),0,0.05,Vector3.new(-0.1,-0.1,-0.1),0.55,nil,"Brick")
  983. Rwait()
  984. end
  985. Rwait()
  986. end)
  987. end
  988. lerp(WLS,WLS.C0,LSC0 *CFrame.new(0,0,-0.5) *CFrame.Angles(0,0,-math.pi/8),armspeed)
  989. lerp(WRS,WRS.C0,RSC0 *CFrame.Angles(0,math.pi/1.3,math.pi/2),armspeed)
  990. lerp(WRJ,WRJ.C0,RJC0 *CFrame.Angles(0,0,math.pi/2),speed)
  991. lerp(Neck,Neck.C0,NC0 *CFrame.Angles(0,0,-math.pi/2),speed)
  992. lerp(HW,HW.C0,hc0 *CFrame.new(-0.8,-3,0) *CFrame.Angles(math.pi,0,math.pi/4),1)
  993. lerp(SHW,SHW.C0,shc0,speed)
  994. if Vector3.new(HM.Velocity.X,0,HM.Velocity.Z).magnitude < 2 then
  995. lerp(WLH,WLH.C0,LHC0,legspeed)
  996. lerp(WRH,WRH.C0,RHC0,legspeed)
  997. elseif Vector3.new(HM.Velocity.X,0,HM.Velocity.Z).magnitude >= 2 then
  998. lerp(WLH,WLH.C0,LHC0 *CFrame.new(-0.1+math.sin(legangle*Human.WalkSpeed/16)*0.2,0.1+math.sin(legangle*Human.WalkSpeed/16)*0.15,0) *CFrame.Angles(0,0,math.asin(math.cos(legangle*Human.WalkSpeed/16)*0.75)),legspeed)
  999. lerp(WRH,WRH.C0,RHC0 *CFrame.new(0.1+math.sin(legangle*Human.WalkSpeed/16)*0.2,0.1-math.sin(legangle*Human.WalkSpeed/16)*0.15,0) *CFrame.Angles(0,0,math.asin(math.cos(legangle*Human.WalkSpeed/16)*0.75)),legspeed)
  1000. end
  1001. Rwait()
  1002. end
  1003. end
  1004. end
  1005.  
  1006. local function Block()
  1007. health = Human.Health
  1008. while blocking == true do
  1009. if Human.Health < health then
  1010. if blocking == true then
  1011. if Human.Health < health then
  1012. damen = true
  1013. print((health-Human.Health)*0.005)
  1014. eenabled = eenabled -(health-Human.Health)*0.005
  1015. Human.Health = health -(health-Human.Health)*0.2
  1016. PlaySound(Shield,1,0.8,Sounds[7])
  1017. local ShieldEff = effect(Shield,BrickColor.new("Medium stone grey"),Shield.Size,Shield.CFrame,0,0.1,Vector3.new(0.1,0.1,0.1),1,"139536383",nil)
  1018. ShieldEff.Mesh.TextureId = "rbxassetid://139536467"
  1019. DamageNear(10,Shield,math.random(10,15),50,1)
  1020. ChargeAt(-25)
  1021. damen = false
  1022. health = Human.Health
  1023. Rwait()
  1024. end
  1025. Rwait()
  1026. end
  1027. Rwait()
  1028. end
  1029. if blocking == false then return end
  1030. if enabled == true then return end
  1031. if eenabled <= 0 then eenabled = 0 return end
  1032. lerp(WLS,WLS.C0,LSC0 *CFrame.new(0,0,-0.5) *CFrame.Angles(math.pi/2,0,math.pi/4),armspeed)
  1033. lerp(WRS,WRS.C0,RSC0 *CFrame.Angles(math.pi/7,0,math.pi/7),armspeed)
  1034. lerp(WRJ,WRJ.C0,RJC0 *CFrame.Angles(0,0,-math.pi/4),speed)
  1035. lerp(Neck,Neck.C0,NC0 *CFrame.Angles(0,0,math.pi/4),speed)
  1036. lerp(HW,HW.C0,hc0,speed)
  1037. lerp(SHW,SHW.C0,shc0,speed)
  1038. if Vector3.new(HM.Velocity.X,0,HM.Velocity.Z).magnitude < 2 then
  1039. lerp(WLH,WLH.C0,LHC0,legspeed)
  1040. lerp(WRH,WRH.C0,RHC0,legspeed)
  1041. elseif Vector3.new(HM.Velocity.X,0,HM.Velocity.Z).magnitude >= 2 then
  1042. lerp(WLH,WLH.C0,LHC0 *CFrame.new(-0.1+math.sin(legangle*Human.WalkSpeed/16)*0.2,0.1+math.sin(legangle*Human.WalkSpeed/16)*0.15,0) *CFrame.Angles(0,0,math.asin(math.cos(legangle*Human.WalkSpeed/16)*0.75)),legspeed)
  1043. lerp(WRH,WRH.C0,RHC0 *CFrame.new(0.1+math.sin(legangle*Human.WalkSpeed/16)*0.2,0.1-math.sin(legangle*Human.WalkSpeed/16)*0.15,0) *CFrame.Angles(0,0,math.asin(math.cos(legangle*Human.WalkSpeed/16)*0.75)),legspeed)
  1044. end
  1045. Rwait()
  1046. end
  1047. end
  1048.  
  1049. local function ShieldSlam()
  1050. local BV = Instance.new("BodyVelocity",HM)
  1051. BV.maxForce = Vector3.new(0,1/0,0)
  1052. BV.velocity = Vector3.new(0,120,0)
  1053. game.Debris:AddItem(BV,0.3)
  1054. for i = 1,20 do
  1055. lerp(WLS,WLS.C0,LSC0 *CFrame.Angles(math.pi/2,0,math.pi/8),armspeed*1.5)
  1056. lerp(WRS,WRS.C0,RSC0 *CFrame.Angles(math.pi/8,0,math.pi/7),armspeed*1.5)
  1057. lerp(WLH,WLH.C0,LHC0 *CFrame.Angles(0,0,-math.pi/10),legspeed*1.5)
  1058. lerp(WRH,WRH.C0,RHC0 *CFrame.new(0.5,0.5,0) *CFrame.Angles(0,0,-math.pi/8),legspeed*1.5)
  1059. lerp(WRJ,WRJ.C0,RJC0,speed*1.5)
  1060. lerp(Neck,Neck.C0,NC0 *CFrame.Angles(-math.pi/8,0,0),speed*1.5)
  1061. lerp(HW,HW.C0,hc0,speed*1.5)
  1062. lerp(SHW,SHW.C0,shc0,speed*1.5)
  1063. Rwait()
  1064. end
  1065. for i = 0,1,0.1 do
  1066. lerp(WLS,WLS.C0,LSC0 *CFrame.Angles(math.pi/2,0,math.pi/4),armspeed)
  1067. lerp(WRS,WRS.C0,RSC0 *CFrame.Angles(math.pi/7,0,math.pi/7),armspeed)
  1068. lerp(WRJ,WRJ.C0,RJC0 *CFrame.Angles(math.pi*i*2,0,0) *CFrame.Angles(0,0,-math.pi/4),speed)
  1069. lerp(Neck,Neck.C0,NC0 *CFrame.Angles(0,0,math.pi/4),speed)
  1070. lerp(WLH,WLH.C0,LHC0 *CFrame.new(-1,0.5,0) *CFrame.Angles(0,0,math.pi/4),legspeed)
  1071. lerp(WRH,WRH.C0,RHC0 *CFrame.new(1,0.5,0) *CFrame.Angles(0,0,-math.pi/4),legspeed)
  1072. lerp(HW,HW.C0,hc0,speed)
  1073. lerp(SHW,SHW.C0,shc0,speed)
  1074. Rwait()
  1075. end
  1076. local Ignore = {}
  1077. local hashit = false
  1078. local distance = 0
  1079. Human.WalkSpeed = 0
  1080. for i = 1,100 do
  1081. if i >= 10 then
  1082. for I_shall,ignore_this in pairs(workspace:GetChildren()) do
  1083. if ignore_this:IsA("Model") then
  1084. if ignore_this:FindFirstChild("Humanoid") then
  1085. for _,ignorepart in pairs(ignore_this:GetChildren()) do
  1086. if ignorepart.ClassName == "Part" then
  1087. table.insert(Ignore,ignorepart)
  1088. end
  1089. end
  1090. end
  1091. end
  1092. end
  1093. local RayC = Ray.new(Shield.Position,Vector3.new(0,-2,0))
  1094. local Hit,pos = workspace:FindPartOnRayWithIgnoreList(RayC,Ignore)
  1095. if Hit ~= nil and hashit == false then
  1096. hashit = true
  1097. for i = 1,8 do
  1098. local center = Instance.new("Part",Sword)
  1099. center.Anchored = true
  1100. center.CanCollide = false
  1101. center.Transparency = 1
  1102. center.Size = Vector3.new(1,1,1)
  1103. center.TopSurface = 0
  1104. center.BottomSurface = 0
  1105. center.FrontSurface = "Hinge"
  1106. center.CFrame = CFrame.new(pos) *(HM.CFrame-HM.Position) *CFrame.new(0, 0.5, distance)
  1107. center:BreakJoints()
  1108. game.Debris:AddItem(center,2)
  1109. PlaySound(center,0.4,0.7,Sounds[4])
  1110. local Ignore = {}
  1111. for I_shall,ignore_this in pairs(workspace:GetChildren()) do
  1112. if ignore_this:IsA("Model") then
  1113. if ignore_this:FindFirstChild("Humanoid") then
  1114. for _,ignorepart in pairs(ignore_this:GetChildren()) do
  1115. if ignorepart.ClassName == "Part" then
  1116. table.insert(Ignore,ignorepart)
  1117. end
  1118. end
  1119. end
  1120. end
  1121. end
  1122. damen = true
  1123. local RayC = Ray.new(center.Position,Vector3.new(0,-999,0))
  1124. local Hit,pos = workspace:FindPartOnRayWithIgnoreList(RayC,Ignore)
  1125. if Hit ~= nil and hashit == true then
  1126. for i = 1,5 do
  1127. local groundeff = effect(Shield,Hit.BrickColor,Vector3.new(2,2,2),CFrame.new(pos) *CFrame.new(math.random(-10,10),0,math.random(-10,10)) *CFrame.Angles(math.random(-3600,3600)/10,math.random(-3600,3600)/10,math.random(-3600,3600)/10),0,0,Vector3.new(),1,nil,"Brick")
  1128. groundeff.Material = Hit.Material
  1129. end
  1130. effect(Shield,Hit.BrickColor,Vector3.new(1,1,1),CFrame.new(pos) +Vector3.new(0,0.75,0),0,0.1,Vector3.new(0.5*2,0.75*2,0.5*2),1,Meshes.Crown,nil)
  1131. spawn(function()
  1132. for i = 1,30 do
  1133. DamageNear(20,center,math.random(5,11),10,0.5)
  1134. Rwait()
  1135. end
  1136. end)
  1137. distance = distance -4
  1138. end
  1139. Rwait(5)
  1140. end
  1141. end
  1142. end
  1143. lerp(WLS,WLS.C0,LSC0 *CFrame.new(0,-1.5,0) *CFrame.Angles(math.pi/2,0,math.pi/4),armspeed)
  1144. lerp(WRS,WRS.C0,RSC0 *CFrame.Angles(math.pi/7,0,math.pi/7),armspeed)
  1145. lerp(WRJ,WRJ.C0,RJC0 *CFrame.new(0,0,-1) *CFrame.Angles(0,0,-math.pi/4),speed)
  1146. lerp(Neck,Neck.C0,NC0 *CFrame.Angles(0,0,math.pi/4),speed)
  1147. lerp(WLH,WLH.C0,LHC0 *CFrame.new(0.2,0.5,0) *CFrame.Angles(0,math.pi/4,math.pi/4),legspeed)
  1148. lerp(WRH,WRH.C0,RHC0 *CFrame.new(0.7,0.5,0) *CFrame.Angles(0,math.pi/4,-math.pi/4),legspeed)
  1149. lerp(HW,HW.C0,hc0,speed)
  1150. lerp(SHW,SHW.C0,shc0,speed)
  1151. Rwait()
  1152. end
  1153. Human.WalkSpeed = 16
  1154. damen = false
  1155. end
  1156.  
  1157. local click = mouse.Button1Down:connect(function()
  1158. if on == false then return end
  1159. if enabled == false then return end
  1160. if combo == 1 and enabled == true then
  1161. enabled = false
  1162. Slash1()
  1163. enabled = true
  1164. combo = 2
  1165. coroutine.wrap(function()
  1166. Rwait(400)
  1167. if combo ~= 1 and enabled == true then
  1168. combo = 1
  1169. end
  1170. end)()
  1171. elseif combo == 2 and enabled == true then
  1172. enabled = false
  1173. Slash2()
  1174. enabled = true
  1175. combo = 3
  1176. coroutine.wrap(function()
  1177. Rwait(400)
  1178. if combo ~= 1 and enabled == true then
  1179. combo = 1
  1180. end
  1181. end)()
  1182. elseif combo == 3 and enabled == true then
  1183. enabled = false
  1184. Charge3()
  1185. enabled = true
  1186. combo = 4
  1187. coroutine.wrap(function()
  1188. Rwait(400)
  1189. if combo ~= 1 and enabled == true then
  1190. combo = 1
  1191. end
  1192. end)()
  1193. elseif combo == 4 and enabled == true then
  1194. enabled = false
  1195. Shield4()
  1196. enabled = true
  1197. combo = 1
  1198. end
  1199. end)
  1200. local keys = mouse.KeyDown:connect(function(key)
  1201. key = key:lower()
  1202. if enabled == false then return end
  1203. if key == "z" and on == true and enabled == true and zenabled == 1 then
  1204. zenabled = 0
  1205. enabled = false
  1206. SwordStrike()
  1207. enabled = true
  1208. elseif key == "x" and on == true and enabled == true and xenabled == 1 then
  1209. xenabled = 0
  1210. enabled = false
  1211. SwordsOfChaos()
  1212. enabled = true
  1213. elseif key == "c" and on == true and enabled == true and cenabled == 1 then
  1214. cenabled = 0
  1215. enabled = false
  1216. ThrowingOrbs()
  1217. enabled = true
  1218. elseif key == "v" and on == true and enabled == true and venabled == 1 then
  1219. venabled = 0
  1220. enabled = false
  1221. ShieldSlam()
  1222. enabled = true
  1223. elseif key == "e" and on == true and enabled == true and eenabled == 1 then
  1224. if blocking == false then
  1225. if eenabled <= 0.5 then return end
  1226. enabled = false
  1227. blocking = true
  1228. Block()
  1229. Rwait(0.2)
  1230. enabled = true
  1231. end
  1232. end
  1233. end)
  1234.  
  1235. local keysup = mouse.KeyUp:connect(function(key2)
  1236. if key2 == "e" then
  1237. blocking = false
  1238. end
  1239. end)
  1240.  
  1241. local function Cast(Pos,Dir,Amp,IgnoreList)
  1242. return workspace:FindPartOnRay(Ray.new(Pos, Dir.unit*Amp), IgnoreList)
  1243. end
  1244.  
  1245. while true do
  1246. local surface = Cast(HM.Position,(CFrame.new(HM.Position,HM.Position - Vector3.new(0,1,0))).lookVector,4,Char)
  1247. if zenabled < 1 then
  1248. zenabled = zenabled +0.01 *0.25
  1249. else
  1250. zenabled = 1
  1251. end
  1252. if xenabled < 1 then
  1253. xenabled = xenabled +0.01 *0.175
  1254. else
  1255. xenabled = 1
  1256. end
  1257. if cenabled < 1 then
  1258. cenabled = cenabled +0.01 *0.15
  1259. else
  1260. cenabled = 1
  1261. end
  1262. if eenabled < 1 then
  1263. if blocking == false then
  1264. eenabled = eenabled +0.01 *0.27
  1265. end
  1266. else
  1267. eenabled = 1
  1268. end
  1269. if venabled < 1 then
  1270. venabled = venabled +0.01 *0.1
  1271. else
  1272. venabled = 1
  1273. end
  1274. skill1text.Text = "[Z] \n Sword Strike"
  1275. skill2text.Text = "[X] \n Swords of Chaos"
  1276. skill3text.Text = "[C] \n Throwing Orbs"
  1277. skill4text.Text = "[V] \n Shield Slam"
  1278. skill5text.Text = "[E] \n Block"
  1279. skill1img:TweenSize(UDim2.new(zenabled,0,1,0))
  1280. skill2img:TweenSize(UDim2.new(xenabled,0,1,0))
  1281. skill3img:TweenSize(UDim2.new(cenabled,0,1,0))
  1282. skill4img:TweenSize(UDim2.new(venabled,0,1,0))
  1283. skill5img:TweenSize(UDim2.new(eenabled,0,1,0))
  1284. if on == true then
  1285. angle = (angle % 100) +anglespeed/10
  1286. armangle = (armangle % 100) +armanglespeed/10
  1287. legangle = (legangle % 100) +leganglespeed/10
  1288. if action == "Idle" and enabled == true and surface ~= nil then
  1289. lerp(WLS,WLS.C0,LSC0 *CFrame.new(0,-math.cos(angle*0.25)*0.05,0) *CFrame.Angles(math.pi/2+math.cos(angle*0.25)*0.05,0,math.pi/8+math.cos(angle*0.25)*0.05),armspeed)
  1290. lerp(WRS,WRS.C0,RSC0 *CFrame.new(0,-math.cos(angle*0.25)*0.05,0) *CFrame.Angles(math.cos(angle*0.25)*0.15,0,math.pi/7-math.cos(angle*0.25)*0.05),armspeed)
  1291. lerp(WLH,WLH.C0,LHC0 *CFrame.new(0.4,0.2+math.cos(legangle*0.25)*0.1,0) *CFrame.Angles(0,math.pi/4,0),legspeed)
  1292. lerp(WRH,WRH.C0,RHC0 *CFrame.new(-0.4,0.2+math.cos(legangle*0.25)*0.1,0) *CFrame.Angles(0,-math.pi/8,0),legspeed)
  1293. lerp(WRJ,WRJ.C0,RJC0 *CFrame.new(0,0,-0.2-math.cos(angle*0.25)*0.1) *CFrame.Angles(0,0,-math.pi/8),speed)
  1294. lerp(Neck,Neck.C0,NC0 *CFrame.Angles(math.sin(angle*0.25)*0.05,0,math.pi/8),speed)
  1295. lerp(HW,HW.C0,hc0,speed)
  1296. lerp(SHW,SHW.C0,shc0,speed)
  1297. end
  1298. if action == "Walk" and enabled == true and surface ~= nil then
  1299. lerp(WLS,WLS.C0,LSC0 *CFrame.new(0,-math.cos(armangle*0.25)*0.05,0) *CFrame.Angles(math.pi/2-math.cos(angle*0.25)*0.05,0,math.pi/7-math.cos(angle*0.25)*0.15),armspeed)
  1300. lerp(WRS,WRS.C0,RSC0 *CFrame.new(0,-math.cos(armangle*0.25)*0.05,0) *CFrame.Angles(math.pi/3.5+math.cos(angle*0.25)*0.05,0,math.pi/4-math.cos(angle*0.25)*0.15),armspeed)
  1301. lerp(WLH,WLH.C0,LHC0 *CFrame.new(0,-math.cos(legangle*0.25)*0.05,0) *CFrame.new(0.5,0.25+math.sin(legangle*Human.WalkSpeed/16)*0.15,0) *CFrame.Angles(0,math.pi/4,0) *CFrame.Angles(0,0,math.pi/10+math.asin(math.cos(legangle*Human.WalkSpeed/16)*0.75)),legspeed)
  1302. lerp(WRH,WRH.C0,RHC0 *CFrame.new(0,-math.cos(legangle*0.25)*0.05,0) *CFrame.new(0.5,0.1-math.sin(legangle*Human.WalkSpeed/16)*0.15,0) *CFrame.Angles(0,math.pi/4,0) *CFrame.Angles(0,0,-math.pi/10+math.asin(math.cos(legangle*Human.WalkSpeed/16)*0.75)),legspeed)
  1303. lerp(WRJ,WRJ.C0,RJC0 *CFrame.new(0,0,-0.25+math.cos(angle*0.25)*0.05) *CFrame.Angles(math.pi/10,HM.RotVelocity.Y/40,-math.pi/4),speed)
  1304. lerp(Neck,Neck.C0,NC0 *CFrame.Angles(0,0,math.pi/4) *CFrame.Angles(-math.pi/10+math.sin(angle*Human.WalkSpeed/16*0.25)*0.1,0,0),speed)
  1305. lerp(HW,HW.C0,hc0,speed)
  1306. lerp(SHW,SHW.C0,shc0,speed)
  1307. end
  1308. if HM.Velocity.Y >= 5 and enabled == true and surface == nil then
  1309. action = "Jump"
  1310. lerp(WLS,WLS.C0,LSC0 *CFrame.Angles(math.pi/1.7,0,math.pi/8),armspeed*1.5)
  1311. lerp(WRS,WRS.C0,RSC0 *CFrame.Angles(math.pi/7,0,math.pi/7),armspeed*1.5)
  1312. lerp(WLH,WLH.C0,LHC0 *CFrame.Angles(0,0,-math.pi/10),legspeed*1.5)
  1313. lerp(WRH,WRH.C0,RHC0 *CFrame.new(0.5,0.5,0) *CFrame.Angles(0,0,-math.pi/8),legspeed*1.5)
  1314. lerp(WRJ,WRJ.C0,RJC0,speed*1.5)
  1315. lerp(Neck,Neck.C0,NC0 *CFrame.Angles(-math.pi/8,0,0),speed*1.5)
  1316. lerp(HW,HW.C0,hc0,speed*1.5)
  1317. lerp(SHW,SHW.C0,shc0,speed*1.5)
  1318. Rwait()
  1319. elseif HM.Velocity.Y <= -5 and enabled == true and surface == nil then
  1320. action = "Fall"
  1321. lerp(WLS,WLS.C0,LSC0 *CFrame.Angles(math.pi/3,0,math.pi/8),armspeed*1.5)
  1322. lerp(WRS,WRS.C0,RSC0 *CFrame.Angles(math.pi/9,0,math.pi/7),armspeed*1.5)
  1323. lerp(WLH,WLH.C0,LHC0 *CFrame.Angles(0,0,-math.pi/7),legspeed*1.5)
  1324. lerp(WRH,WRH.C0,RHC0 *CFrame.new(0.5,0,0) *CFrame.Angles(0,0,math.pi/8),legspeed*1.5)
  1325. lerp(WRJ,WRJ.C0,RJC0,speed*1.5)
  1326. lerp(Neck,Neck.C0,NC0 *CFrame.Angles(math.pi/5,0,0),speed*1.5)
  1327. lerp(HW,HW.C0,hc0,speed*1.5)
  1328. lerp(SHW,SHW.C0,shc0,speed*1.5)
  1329. Rwait()
  1330. end
  1331. if Vector3.new(HM.Velocity.X,0,HM.Velocity.Z).magnitude <= 2 then
  1332. action = "Idle"
  1333. elseif Vector3.new(HM.Velocity.X,0,HM.Velocity.Z).magnitude >= 2 then
  1334. action = "Walk"
  1335. end
  1336. end
  1337. Rwait()
  1338. end
Add Comment
Please, Sign In to add comment