Dark_EccentricYT

Untitled

Jul 11th, 2018
9,079
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 47.57 KB | None | 0 0
  1. wait(.25)--made by yoyyo75 :3
  2. run = game:GetService("RunService")
  3. local player = game.Players.LocalPlayer;char = player.Character;char.Archivable = true;
  4. hrp = char:findFirstChild("HumanoidRootPart");head = char:findFirstChild("Head");ra = char:findFirstChild("Right Arm");la = char:findFirstChild("Left Arm");t = char:findFirstChild("Torso");humanoid = char:findFirstChild("Humanoid");ll = char:findFirstChild("Left Leg");rl = char:findFirstChild("Right Leg");
  5. if player.Backpack:findFirstChild("WindKatana") then
  6. player.Backpack:findFirstChild("WindKatana").Parent = nil
  7. end
  8. local hb = Instance.new("HopperBin", player.Backpack)
  9. hb.Name = "WindKatana"
  10. sword = Instance.new("Model");sword.Name = "WindKatana"
  11. script.Parent = hb;idol = true
  12. if char:findFirstChild(hb.Name) then
  13. char:findFirstChild(hb.Name):Destroy()
  14. end
  15. equip=false;anim = false;banim=false;click=false;damageon=false;DMG=0;edown=false;canjump=true;running=false;don=false;Damag = 10;fell = true;lenormal=true;lerun=false;canjump=true;locanrun=false;ss=false;canboost = true
  16. if char:findFirstChild(hb.Name) then
  17. char:findFirstChild(hb.Name).Parent = nil
  18. end
  19. function weldIt(p1,p2,r1,r2,place)
  20. local w = Instance.new("Weld")
  21. if place then
  22. w.Parent = place
  23. else
  24. w.Parent = p1
  25. end
  26. w.Part0 = p1
  27. w.Part1 = p2
  28. w.C0 = r1
  29. if r2 then
  30. w.C1 = r2
  31. end
  32. return w
  33. end
  34.  
  35.  
  36.  
  37. Add = {
  38. part = function(color,size,pos, place, naym,scale, thing,mt,ccd,id,transparent,loool,ff,yos)
  39. if loool ~= nil then
  40. balleff = Instance.new(loool, place)
  41. else
  42. balleff = Instance.new("Part", place)
  43. balleff.Material = "SmoothPlastic"
  44. balleff.TopSurface = "SmoothNoOutlines"
  45. balleff.BottomSurface = "SmoothNoOutlines"
  46. balleff.RightSurface = "SmoothNoOutlines"
  47. balleff.LeftSurface = "SmoothNoOutlines"
  48. end
  49. balleff.Name = naym
  50. balleff.Anchored= true
  51. balleff.CFrame = pos
  52. if loool == nil then
  53. balleff.Shape = thing
  54. end
  55. if ff then
  56. balleff.FormFactor = ff
  57. end
  58. balleff.CanCollide = ccd;balleff.Transparency = transparent;
  59. balleff.TopSurface = 0
  60. balleff.BottomSurface = 0
  61. balleff.Size = size
  62. balleff.BrickColor = BrickColor.new(color)
  63. if not yos then
  64. mesh = Instance.new("SpecialMesh",balleff)
  65. mesh.MeshType = mt
  66. else
  67. mesh = Instance.new(yos,balleff)
  68. end
  69. mesh.Scale = scale
  70. if mt == "FileMesh" then
  71. mesh.MeshId = id
  72. end
  73. balleff.Parent = place
  74. return balleff
  75. end,
  76. bp = function(parent,num,p)
  77. lop = Instance.new("BodyPosition",parent)
  78. lop.Name = num
  79. lop.maxForce = Vector3.new(math.huge,math.huge,math.huge)
  80. lop.position = p
  81. return lop
  82. end,
  83. BG = function(P,cf)
  84. local bg = Instance.new("BodyGyro",P)
  85. bg.maxTorque = Vector3.new(math.huge, math.huge, math.huge)
  86. bg.P = 14000
  87. bg.cframe = cf
  88. return bg
  89. end
  90. }
  91.  
  92.  
  93.  
  94.  
  95.  
  96.  
  97.  
  98.  
  99. -- MAKING THE BLADE---
  100. Lite= Add.part("Mid gray",Vector3.new(0.300000042, 0.299999982, 0.399999976),CFrame.new(-185.849991, 1.64999986, -65.3999939, 0, -1, 0, 1, 0, -0, 0, 0, 1),sword,"Lite",Vector3.new(0.800000012, 0.800000012, 0.699999988),"Block","Brick",false,nil,0,Part,"Custom")
  101. Dark= Add.part("Black",Vector3.new(0.400000066, 0.799999952, 0.49999997),CFrame.new(-185.991409, 1.50857925, -65.3999939, -0.707106709, -0.707106709, 0, 0.707106709, -0.707106709, 0, 0, 0, 1),sword,"Dark",Vector3.new(0.100000001, 0.949999988, 0.574999988),"Block","Brick",false,nil,0,Part,"Custom")
  102. Dark= Add.part("Black",Vector3.new(0.400000066, 0.399999976, 0.399999976),CFrame.new(-185.991409, 1.50857735, -65.3999939, 0, -1, 0, 1, 0, -0, 0, 0, 1),sword,"Dark",Vector3.new(1, 1, 0.600000024),"Block","Brick",false,nil,0,Part,"Custom")
  103. Blade= Add.part("Medium stone grey",Vector3.new(0.900000036, 0.200000003, 0.399999976),CFrame.new(-183.909775, 3.94065022, -65.3999939, 0.500000119, -0.866025269, 0, 0.866025269, 0.500000119, 0, 0, 0, 1),sword,"Blade",Vector3.new(1, 1, 0.200000003),"Block","Brick",false,nil,0,Part,"Custom")
  104. Blade= Add.part("Medium stone grey",Vector3.new(0.900000036, 0.200000003, 0.399999976),CFrame.new(-183.803696, 3.83458066, -65.3799896, 0.500000119, 0.866025269, 1.44789709e-007, 0.866025269, -0.500000119, -6.87506159e-008, 1.28551001e-008, 1.5976687e-007, -1),sword,"Blade",Vector3.new(1, 0.5, 0.100000001),"Block","Wedge",false,nil,0,Part,"Custom")
  105. Blade= Add.part("Medium stone grey",Vector3.new(0.900000036, 0.200000003, 0.399999976),CFrame.new(-185.531784, 1.82677507, -65.3999939, 0.707106829, -0.707106709, 0, 0.707106709, 0.707106829, 0, 0, 0, 1),sword,"Blade",Vector3.new(1, 1, 0.200000003),"Block","Brick",false,nil,0,Part,"Custom")
  106. Dark= Add.part("Black",Vector3.new(0.300000042, 0.299999982, 0.399999976),CFrame.new(-185.849991, 1.64999986, -65.3999939, 0, -1, 0, 1, 0, -0, 0, 0, 1),sword,"Dark",Vector3.new(1, 1, 0.600000024),"Block","Brick",false,nil,0,Part,"Custom")
  107. Dark= Add.part("Black",Vector3.new(0.200000077, 0.200000003, 0.5),CFrame.new(-185.991409, 1.50857735, -65.3999939, 0, -1, 0, 1, 0, -0, 0, 0, 1),sword,"Dark",Vector3.new(1, 1, 0.600000024),"Block","Brick",false,nil,0,Part,"Custom")
  108. Lite= Add.part("Mid gray",Vector3.new(0.400000066, 0.399999976, 0.399999976),CFrame.new(-185.991409, 1.50857735, -65.3999939, 0, -1, 0, 1, 0, -0, 0, 0, 1),sword,"Lite",Vector3.new(0.800000012, 0.800000012, 0.699999988),"Block","Brick",false,nil,0,Part,"Custom")
  109. BPart= Add.part("Black",Vector3.new(0.5, 0.399999976, 0.399999976),CFrame.new(-187.087418, 0.412563771, -65.3999939, 0.707106769, -0.70710665, 0, 0.70710665, 0.707106769, 0, 0, 0, 1),sword,"BPart",Vector3.new(0.300000012, 1, 0.800000012),"Block","Cylinder",false,nil,0,Part,"Custom")
  110. Dark= Add.part("Black",Vector3.new(0.300000042, 0.299999982, 0.399999976),CFrame.new(-186.132828, 1.36715674, -65.3999939, 0, -1, 0, 1, 0, -0, 0, 0, 1),sword,"Dark",Vector3.new(1, 1, 0.600000024),"Block","Brick",false,nil,0,Part,"Custom")
  111. Blade= Add.part("Medium stone grey",Vector3.new(1, 0.200000003, 0.399999976),CFrame.new(-185.461075, 1.68535447, -65.4199982, -0.707106948, 0.70710659, 4.49529054e-008, -0.70710659, -0.707106948, -1.68587405e-007, -8.74227553e-008, -1.50995817e-007, 1),sword,"Blade",Vector3.new(1, 0.5, 0.100000001),"Block","Wedge",false,nil,0,Part,"Custom")
  112. Blade= Add.part("Medium stone grey",Vector3.new(0.450000018, 0.200000003, 0.399999976),CFrame.new(-183.487625, 4.42047977, -65.4199982, -0.42261827, 0.906307817, 6.54755326e-008, -0.906307817, -0.42261827, -1.5063398e-007, -1.08849591e-007, -1.23001655e-007, 1),sword,"Blade",Vector3.new(1, 0.5, 0.100000001),"Block","Wedge",false,nil,0,Part,"Custom")
  113. Lite= Add.part("Mid gray",Vector3.new(0.300000042, 0.299999982, 0.399999976),CFrame.new(-186.132828, 1.36715674, -65.3999939, 0, -1, 0, 1, 0, -0, 0, 0, 1),sword,"Lite",Vector3.new(0.800000012, 0.800000012, 0.699999988),"Block","Brick",false,nil,0,Part,"Custom")
  114. Blade= Add.part("Medium stone grey",Vector3.new(0.900000036, 0.200000003, 0.399999976),CFrame.new(-184.824173, 2.3771975, -65.4199982, -0.642787755, 0.766044319, 4.49529054e-008, -0.766044319, -0.642787755, -1.68587405e-007, -1.00250247e-007, -1.42801824e-007, 1),sword,"Blade",Vector3.new(1, 0.5, 0.100000001),"Block","Wedge",false,nil,0,Part,"Custom")
  115. Blade= Add.part("Medium stone grey",Vector3.new(0.200000048, 0.400000006, 0.399999976),CFrame.new(-183.458023, 4.85696697, -65.3999939, -4.58588154e-008, 0.34202069, -0.939692378, -1.01666373e-008, 0.939692378, 0.34202069, 1, 2.52381778e-008, -3.96159798e-008),sword,"Blade",Vector3.new(0.400000006, 1, 0.5),"Block","Wedge",false,nil,0,Part,"Custom")
  116. Blade= Add.part("Medium stone grey",Vector3.new(0.900000036, 0.200000003, 0.399999976),CFrame.new(-184.28212, 3.08361006, -65.3799896, 0.57357651, 0.819151938, 1.44790121e-007, 0.819151938, -0.57357651, -6.87501966e-008, 2.67313585e-008, 1.58038603e-007, -1),sword,"Blade",Vector3.new(1, 0.5, 0.100000001),"Block","Wedge",false,nil,0,Part,"Custom")
  117. Blade= Add.part("Medium stone grey",Vector3.new(0.900000036, 0.200000003, 0.399999976),CFrame.new(-184.824173, 2.3771956, -65.3799896, 0.642787695, 0.766044378, 1.25616637e-007, 0.766044378, -0.642787695, -8.79236737e-008, 1.33913973e-008, 1.52744178e-007, -1),sword,"Blade",Vector3.new(1, 0.5, 0.100000001),"Block","Wedge",false,nil,0,Part,"Custom")
  118. Blade= Add.part("Medium stone grey",Vector3.new(1, 0.200000003, 0.399999976),CFrame.new(-185.461075, 1.68535447, -65.3799896, 0.707106829, 0.707106709, 1.06770145e-007, 0.707106709, -0.707106829, -1.06770166e-007, 0, 1.50995803e-007, -1),sword,"Blade",Vector3.new(1, 0.5, 0.100000001),"Block","Wedge",false,nil,0,Part,"Custom")
  119. Blade= Add.part("Medium stone grey",Vector3.new(0.5, 0.200000003, 0.399999976),CFrame.new(-183.40889, 4.83704281, -65.3799896, -0.0871555209, 0.99619472, 2.72493907e-007, 0.99619472, 0.0871555209, 5.89535674e-008, 3.49798697e-008, 2.76595131e-007, -1),sword,"Blade",Vector3.new(1, 0.5, 0.100000001),"Block","Wedge",false,nil,0,Part,"Custom")
  120. Blade= Add.part("Medium stone grey",Vector3.new(0.400000036, 0.200000003, 0.399999976),CFrame.new(-183.604263, 4.50388622, -65.3999939, 0.42261833, -0.906307757, 0, 0.906307757, 0.42261833, 0, 0, 0, 1),sword,"Blade",Vector3.new(1, 1, 0.200000003),"Block","Brick",false,nil,0,Part,"Custom")
  121. Handle= Add.part("Medium stone grey",Vector3.new(1.20000005, 0.399999976, 0.399999976),CFrame.new(-186.627823, 0.872184277, -65.3999939, 0.707106769, -0.70710665, 0, 0.70710665, 0.707106769, 0, 0, 0, 1),sword,"Handle",Vector3.new(1, 1, 0.600000024),"Block","Cylinder",false,nil,0,Part,"Custom")
  122. Blade= Add.part("Medium stone grey",Vector3.new(0.450000018, 0.200000003, 0.399999976),CFrame.new(-183.487625, 4.4204855, -65.3799896, 0.422614396, 0.906309605, 1.64295614e-007, 0.906309605, -0.422614396, -4.92447079e-008, 2.48027376e-008, 1.69714212e-007, -1),sword,"Blade",Vector3.new(1, 0.5, 0.100000001),"Block","Wedge",false,nil,0,Part,"Custom")
  123. Blade= Add.part("Medium stone grey",Vector3.new(0.900000036, 0.200000003, 0.399999976),CFrame.new(-184.930252, 2.48326516, -65.3999939, 0.642787695, -0.766044378, 0, 0.766044378, 0.642787695, 0, 0, 0, 1),sword,"Blade",Vector3.new(1, 1, 0.200000003),"Block","Brick",false,nil,0,Part,"Custom")
  124. Blade= Add.part("Medium stone grey",Vector3.new(0.900000036, 0.200000003, 0.399999976),CFrame.new(-184.28212, 3.08361387, -65.4199982, -0.57357657, 0.819151938, 4.49529622e-008, -0.819151938, -0.57357657, -1.6858732e-007, -1.12314666e-007, -1.33521056e-007, 1),sword,"Blade",Vector3.new(1, 0.5, 0.100000001),"Block","Wedge",false,nil,0,Part,"Custom")
  125. Blade= Add.part("Medium stone grey",Vector3.new(0.900000036, 0.200000003, 0.399999976),CFrame.new(-183.803696, 3.83458257, -65.4199982, -0.500000179, 0.866025329, 6.55408243e-008, -0.866025329, -0.500000179, -1.5046507e-007, -9.75361445e-008, -1.31992579e-007, 1),sword,"Blade",Vector3.new(1, 0.5, 0.100000001),"Block","Wedge",false,nil,0,Part,"Custom")
  126. Blade= Add.part("Medium stone grey",Vector3.new(0.5, 0.200000003, 0.399999976),CFrame.new(-183.40889, 4.83704853, -65.4199982, 0.0871553719, 0.99619472, 6.76225653e-008, -0.99619472, 0.0871553719, -1.49568123e-007, -1.54892646e-007, -5.43295755e-008, 1),sword,"Blade",Vector3.new(1, 0.5, 0.100000001),"Block","Wedge",false,nil,0,Part,"Custom")
  127. Core= Add.part("Bright red",Vector3.new(0.200000077, 0.200000003, 0.5),CFrame.new(-185.991409, 1.50857735, -65.3999939, 0, -1, 0, 1, 0, -0, 0, 0, 1),sword,"Core",Vector3.new(0.800000012, 0.800000012, 0.699999988),"Block","Brick",false,nil,0,Part,"Custom")
  128. Blade= Add.part("Medium stone grey",Vector3.new(0.900000036, 0.200000003, 0.399999976),CFrame.new(-184.388199, 3.18968129, -65.3999939, 0.57357651, -0.819151998, 0, 0.819151998, 0.57357651, 0, 0, 0, 1),sword,"Blade",Vector3.new(1, 1, 0.200000003),"Block","Brick",false,nil,0,Part,"Custom")
  129. hitbox= Add.part("Medium stone grey",Vector3.new(1, 3.46000004, 1),CFrame.new(-184.459076, 3.10561037, -65.4410172, 0.060511604, 0.598099828, -0.799133182, -0.0353691019, 0.801382124, 0.597104728, 0.997539937, -0.0078676939, 0.0696469769),sword,"hitbox",Vector3.new(1, 1, 1),"Block","Brick",false,nil,1,Part,"Brick")
  130.  
  131. while not ra or not la or not t or not humanoid or not head or not ll or not rl or not hrp do
  132. wait()
  133. end
  134. hrpw = hrp:findFirstChild("RootJoint");lh = t:findFirstChild("Left Hip");rh = t:findFirstChild("Right Hip");rs = t:findFirstChild("Right Shoulder");ls = t:findFirstChild("Left Shoulder");neck = t:findFirstChild("Neck");
  135. while not ls or not rs or not neck or not hrpw do
  136. wait()
  137. end
  138. co = hrpw.C0
  139. moop = {}
  140. function Hit(p)
  141. if don then
  142. Damagefunc(p,Damag-5,Damag+5,math.random(10,30),"Normal") end
  143. if QHIT then
  144. if not checkintable(p.Parent, moop) then
  145. Damagefunc(p,Damag+5,Damag+15,math.random(10,30),"Normal");
  146. table.insert(moop, p.Parent);else print("herena") end
  147. end
  148. end
  149.  
  150.  
  151. nu = sword:GetChildren()
  152. for i = 1, #nu do
  153. if nu[i].Name ~= "Handle" then
  154. if nu[i].Name == "Blade" or nu[i].Name == "hitbox" then
  155. nu[i].Touched:connect(Hit)
  156. end
  157. w = Instance.new("Weld", sword.Handle)
  158. w.Part0 = sword.Handle
  159. w.Part1 = nu[i]
  160. w.C0 = sword.Handle.CFrame:toObjectSpace(nu[i].CFrame)
  161. nu[i].Anchored = false
  162. end
  163. end
  164. sword.Handle.Anchored = false;sword.Parent = char
  165. function backweld()
  166. bw = weldIt(t,Handle,CFrame.new(1.15,-0.85,-1)*CFrame.Angles(math.rad(25),math.rad(-90),0),nil)
  167. return bw
  168. end
  169.  
  170. backweld()
  171.  
  172. function checkintable(chek, tabl)
  173. for i = 1, #tabl do
  174. if tabl[i] == check then
  175. return true
  176. end
  177. end
  178. return false
  179. end
  180. ------function of le splash-------------
  181.  
  182. function splash()
  183. local blcf = hitbox.CFrame*CFrame.new(-.125,.2,0)
  184. if scfr and (hitbox.Position-scfr.p).magnitude > .1 then
  185. local h = 4.7
  186. local a,b = Triangle((scfr*CFrame.new(0,h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p,(blcf*CFrame.new(0,h/2,0)).p)
  187. if a then game.Debris:AddItem(a,.1) end if b then game.Debris:AddItem(b,.1) end
  188. local a,b = Triangle((blcf*CFrame.new(0,h/2,0)).p,(blcf*CFrame.new(0,-h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p)
  189. if a then game.Debris:AddItem(a,.1) end if b then game.Debris:AddItem(b,.1) end
  190. scfr = blcf
  191. elseif not scfr then
  192. scfr = blcf
  193. end
  194. end
  195. function rest(num)
  196. for i = 0, 1, 0.13 do
  197. if combo ~= num then
  198. return
  199. end
  200. normal(i)
  201. wait()
  202. end
  203. if combo ~= num then
  204. return
  205. end
  206. scfr=nil;anim = false;running=false;canslash=false;combo=4;runit()
  207. end
  208. -------------------------slashr------------------------------------------------------slashr------------------------------------------------------slashr-----------------------------
  209. slash ={
  210. function()
  211. anim = true
  212.  
  213. for i = 0, 1, 0.23 do
  214. animate("Toso",(co-Vector3.new(0,0.4,0)),0,math.rad(5),math.rad(170),i);
  215. animate("rr",CFrame.new(1.5,0.5,0),0,math.rad(95),math.rad(110),i);animate("lr",CFrame.new(-1.5,0.5,0),math.rad(-45),0,math.rad(-25),i)
  216. animate("bw",CFrame.new(0,-1,0),0,math.rad(90),0,i)
  217. animate("hr",CFrame.new(0,1,0),0,math.rad(-90),0,i)
  218. animate("reg",CFrame.new(0.5,-1.1,-0.65),math.rad(-15),0,0,i)
  219. animate("leg",CFrame.new(-0.5,-1.2,0),math.rad(-25),0,0,i)
  220. wait()
  221. end
  222. wait()
  223. don = true;attackdebounce = false;scfr = nil
  224. for i = 0, 1, 0.16 do
  225. wait()
  226. splash()
  227. animate("Toso",(co-Vector3.new(0,0,0)),0,math.rad(0),math.rad(20),i);animate("hr",CFrame.new(0,1,0),0,math.rad(-20),0,i)
  228. animate("reg",CFrame.new(0.5,-1.5,0),math.rad(0),0,0,i)
  229. animate("leg",CFrame.new(-0.5,-1.5,0),math.rad(0),0,0,i)
  230. animate("rr",CFrame.new(1.5,0.5,0),0,math.rad(-60),math.rad(110),i);
  231. end
  232. scfr = nil;don = false;canslash=true;
  233. rest(1)
  234. end,
  235.  
  236.  
  237.  
  238. function()
  239. anim = true
  240. for i = 0, 1, 0.24 do
  241. animate("bw",CFrame.new(0,-1,0),math.rad(20),math.rad(90),math.rad(0),i)
  242. animate("Toso",(co-Vector3.new(0,0,0)),0,math.rad(0),math.rad(-50),i);animate("hr",CFrame.new(0,1,0),0,math.rad(10),0,i)
  243. animate("reg",CFrame.new(0.5,-1.5,0),math.rad(0),0,math.rad(10),i)
  244. animate("leg",CFrame.new(-0.5,-1.5,0),math.rad(0),0,0,i)
  245. animate("rr",CFrame.new(1.5,0.5,0),math.rad(90),math.rad(0),math.rad(110),i);
  246. wait()
  247. end
  248. wait();don = true;attackdebounce = false;scfr=nil;
  249. for i = 0, 1, 0.2 do
  250. wait()
  251. splash()
  252. animate("bw",CFrame.new(0,-1,0),math.rad(-60),math.rad(90),math.rad(0),i)
  253. animate("Toso",(co-Vector3.new(0,0.3,0)),math.rad(40),math.rad(0),math.rad(0),i);animate("hr",CFrame.new(0,1,0),math.rad(40),math.rad(10),0,i)
  254. animate("reg",CFrame.new(0.5,-1.2,-0.2),math.rad(10),0,math.rad(10),i)
  255. animate("leg",CFrame.new(-0.5,-1.2,-0.6),math.rad(30),0,0,i)
  256. animate("rr",CFrame.new(1.2,0.5,-0.3),math.rad(75),math.rad(0),math.rad(-40),i);
  257. end
  258. scfr = nil;don = false;canslash=true
  259. rest(2)
  260. end,
  261. function()
  262. anim = true;
  263. for i = 0, 1, 0.24 do
  264. wait();
  265. animate("bw",CFrame.new(0,-1,0),math.rad(0),math.rad(90),math.rad(0),i)
  266. animate("Toso",(co-Vector3.new(0,0,0)),0,math.rad(0),math.rad(30),i);animate("hr",CFrame.new(0,1,0),0,math.rad(-30),0,i)
  267. animate("reg",CFrame.new(0.5,-1.5,0),math.rad(0),0,math.rad(15),i)
  268. animate("leg",CFrame.new(-0.5,-1.5,0),math.rad(0),0,math.rad(-15),i)
  269. animate("rr",CFrame.new(1,0.6,-0.25),math.rad(180),math.rad(40),math.rad(-70),i);
  270. end;don = true;attackdebounce = false;scfr=nil
  271. for i = 0, 1, 0.2 do
  272. wait()
  273. splash()
  274. animate("bw",CFrame.new(0,-1,0),math.rad(-40),math.rad(90),math.rad(0),i)
  275. animate("Toso",(co-Vector3.new(0,0,0)),0,math.rad(0),math.rad(-50),i);animate("hr",CFrame.new(0,1,0),0,math.rad(50),0,i)
  276. animate("reg",CFrame.new(0.5,-1.5,0),math.rad(20),0,math.rad(6),i)
  277. animate("leg",CFrame.new(-0.5,-1.5,0),math.rad(-10),0,math.rad(-10),i)
  278. animate("rr",CFrame.new(1.5,0.5,0),math.rad(0),math.rad(60),math.rad(50),i);
  279. end
  280. scfr = nil;don = false;canslash=true
  281. rest(3)
  282. end,
  283. function()
  284. anim = true
  285. for i = 0, 1, 0.24 do
  286. animate("bw",CFrame.new(0,-1,0),math.rad(-100),math.rad(90),math.rad(0),i)
  287. animate("Toso",(co-Vector3.new(0,0.6,0)),0,math.rad(0),math.rad(-40),i);animate("hr",CFrame.new(0,1,0),0,math.rad(-30),0,i)
  288. animate("reg",CFrame.new(0.5,-0.9,-0.5),math.rad(0),0,math.rad(15),i)
  289. animate("leg",CFrame.new(-0.5,-0.9,0.15),math.rad(-45),0,math.rad(0),i)
  290. animate("rr",CFrame.new(1.4,0.5,0),math.rad(0),math.rad(0),math.rad(75),i);
  291. wait()
  292. end;wait();don = true;attackdebounce = false;scfr=nil
  293. for i = 0, 1, 0.24 do
  294. wait();splash()
  295. animate("bw",CFrame.new(0,-1,0),math.rad(0),math.rad(90),math.rad(0),i)
  296. animate("Toso",(co-Vector3.new(0,0,0)),0,math.rad(0),math.rad(30),i);animate("hr",CFrame.new(0,1,0),0,math.rad(-30),0,i)
  297. animate("reg",CFrame.new(0.5,-1.5,0),math.rad(0),0,math.rad(15),i)
  298. animate("leg",CFrame.new(-0.5,-1.5,0),math.rad(0),0,math.rad(-15),i)
  299. animate("rr",CFrame.new(1,0.6,-0.25),math.rad(180),math.rad(40),math.rad(-70),i);
  300. end;scfr = nil;don = false;canslash=true;rest(4)
  301. end
  302. }
  303. -------------------------slashr------------------------------------------------------slashr------------------------------------------------------slashr-----------------------------
  304.  
  305. combo = 4;canslash=false
  306.  
  307.  
  308. function clik()
  309. if not anim or canslash then
  310. canslash=false;scfr = nil
  311. if combo == 4 then
  312. combo=1;slash[1]();
  313. elseif combo == 1 then
  314. combo=2;slash[2]()
  315. elseif combo == 2 then
  316. combo=3;slash[3]()
  317. elseif combo == 3 then
  318. combo=4;slash[4]()
  319. end
  320. end
  321. end
  322. QHIT = false;
  323. skills = {
  324. function(mouse)
  325. anim = true;locanrun=true;canjump=false
  326. normal(1)
  327. mh = mouse.Hit.p
  328. x,y,z = (CFrame.new(char.Torso.Position,Vector3.new(mh.X,char.Torso.Position.Y,mh.Z))):toEulerAnglesXYZ()
  329. char.Torso.CFrame = CFrame.new(char.Torso.Position,Vector3.new(mh.X,char.Torso.Position.Y,mh.Z))
  330. wait();QHIT = true
  331. for i = 0, 1, 0.333333 do
  332. animate("bw",CFrame.new(0,-1,0),math.rad(-90),math.rad(90),math.rad(0),i)
  333. animate("Toso",(co-Vector3.new(0,0.4,0)),0,math.rad(5),math.rad(-90),i);animate("hr",CFrame.new(0,1,0),math.rad(-10),math.rad(90),0,i)
  334. animate("rr",CFrame.new(1.2,0.5,-1),math.rad(90),math.rad(0),math.rad(-90),i);
  335. wait()
  336. end
  337. wait();moop={};
  338. for i = 0, 1, 0.333333 do
  339. animate("bw",CFrame.new(0,-1,0),math.rad(-90),math.rad(90),math.rad(0),i)
  340. animate("Toso",(co-Vector3.new(0,0.4,0)),0,math.rad(5),math.rad(90),i); animate("hr",CFrame.new(0,1,0),math.rad(-10),math.rad(-70),0,i)
  341. animate("rr",CFrame.new(1.5,0.5,0),math.rad(90),math.rad(0),math.rad(90),i);
  342. wait()
  343. end;mufu={}
  344. wind1= Add.part("Institutional white",Vector3.new(4, 1.2, 1),(hitbox.CFrame-Vector3.new(0,1,0))*CFrame.Angles(math.rad(-10),0,math.rad(90)),sword,"wind",Vector3.new(1.6, 1.1, 1.1),"Block","Sphere",false,nil,0.69999998807907,Part,"Brick")
  345. wind2= Add.part("Really black",Vector3.new(4, 1.2, 1),(hitbox.CFrame-Vector3.new(0,1,0))*CFrame.Angles(math.rad(-10),0,math.rad(90)),sword,"wind",Vector3.new(1.6, 1.1, 1.1),"Block","Sphere",false,nil,0.60000002384186,Part,"Brick");wind2.Mesh.Offset = Vector3.new(0.4,0,0)
  346. wind3= Add.part("Medium stone grey",Vector3.new(4, 1.2, 1),(hitbox.CFrame-Vector3.new(0,1,0))*CFrame.Angles(math.rad(-10),0,math.rad(90)),sword,"wind",Vector3.new(1.6, 1.1, 1.1),"Block","Sphere",false,nil,0.5,Part,"Brick");wind3.Mesh.Offset = Vector3.new(0.6,0,0)
  347. wind1.CFrame = hitbox.CFrame*CFrame.Angles(math.rad(-10),0,math.rad(90))-Vector3.new(0,0.3,0);wind2.CFrame = hitbox.CFrame*CFrame.Angles(math.rad(-10),0,math.rad(90))-Vector3.new(0,0.3,0);wind3.CFrame = hitbox.CFrame*CFrame.Angles(math.rad(-10),0,math.rad(90))-Vector3.new(0,0.3,0)
  348. eff2 = Add.part("Medium stone grey", Vector3.new(), hitbox.CFrame*CFrame.Angles(1,1,1),char,"effect",Vector3.new(1,1,1),"Block","Brick",false,nil,0.4,Part,"Brick")
  349. eff1 = Add.part("Medium stone grey", Vector3.new(1,1,1), hitbox.CFrame*CFrame.Angles(math.random(-360,360),math.random(-360,360),math.random(-360,360)),char,"effect",Vector3.new(1,1,1),"Block","Brick",false,nil,0.4,Part,"Brick")
  350. eff3= Add.part("White",Vector3.new(1, 1, 1),hitbox.CFrame*CFrame.new(0,0,-1),char,"effect",Vector3.new(1.5, 1.5, 1),"Block","FileMesh",false,"http://www.roblox.com/asset/?id=3270017",0.8,Part,"Symmetric")
  351. eff4= Add.part("Black",Vector3.new(1, 1, 1),hitbox.CFrame*CFrame.new(0,0,-1.5),char,"effect",Vector3.new(1.25, 1.25, 1),"Block","FileMesh",false,"http://www.roblox.com/asset/?id=3270017",0.8,Part,"Symmetric")
  352. eff1.CFrame = hitbox.CFrame*CFrame.Angles(math.random(-360,360),math.random(-360,360),math.random(-360,360));eff2.CFrame = hitbox.CFrame*CFrame.Angles(math.random(-360,360),math.random(-360,360),math.random(-360,360))
  353. eff3.CFrame = (hitbox.CFrame*CFrame.new(0,-1,0))*CFrame.Angles(math.rad(90),0,0);eff4.CFrame=(hitbox.CFrame*CFrame.new(0,-1.5,0))*CFrame.Angles(math.rad(90),0,0)
  354. table.insert(mufu,wind1);table.insert(mufu,wind2);table.insert(mufu,wind3);
  355. coroutine.resume(coroutine.create(function(p1,p2,p3,p4,cf1)
  356. for i = 0,1,1/13 do
  357. p1.CFrame = (cf1*CFrame.new(0,3*i,-.5*i))*CFrame.Angles(math.rad(math.random(-400,400)),math.rad(math.random(-400,400)),math.rad(math.random(-400,400)));p1.Transparency=p1.Transparency+(0.6*(1/13))
  358. p2.CFrame = (cf1*CFrame.new(0,3*i,-.5*i))*CFrame.Angles(math.rad(math.random(-400,400)),math.rad(math.random(-400,400)),math.rad(math.random(-400,400)));p2.Transparency=p2.Transparency+(0.6*(1/13))
  359. p3.CFrame = (cf1*CFrame.new(0,-1+8*i,0.17-(8*(0.5/3))*i)*CFrame.Angles(math.rad(90),0,0));p3.Mesh.Scale = Vector3.new(1.5+1*i,1.5+1*i,1);p3.Transparency = 0.8+0.3*i
  360. p4.CFrame = (cf1*CFrame.new(0,-1.5+7.5*i,0.17-(7.5*(0.5/3))*i)*CFrame.Angles(math.rad(90),0,0));p4.Mesh.Scale = Vector3.new(1.25+1*i,1.25+1*i,1);p4.Transparency = 0.8+0.3*i
  361. wait();
  362. end;p1.Parent=nil;p2.Parent=nil;p3.Parent=nil;p4.Parent=nil
  363. end),eff1,eff2,eff3,eff4,hitbox.CFrame)
  364. for x = 1, #mufu do
  365. coroutine.resume(coroutine.create(function(wind,hey,trans,mehx)
  366. for i = 0, 1, (1/13) do
  367. wind.Mesh.Scale = Vector3.new(hey.X+1*i,hey.Y-hey.Y*i,hey.Z-hey.Z*i)
  368. wind.Mesh.Offset = Vector3.new(mehx+1*i,0,0)
  369. wind.Transparency = trans+(1-trans)*i
  370. wait()
  371. end;wind.Parent=nil
  372. end),mufu[x],mufu[x].Mesh.Scale,mufu[x].Transparency,mufu[x].Mesh.Offset.X)
  373. end
  374.  
  375.  
  376.  
  377. QHIT = false;locanrun=false;canjump=true;lerun=false
  378. anim = false;
  379. end,
  380. function()
  381. anim = true;canjump = false
  382. bodyp = Add.bp(t,"Stay",t.Position);
  383. for i = 0, 1, 1/7 do
  384. animate("bw",CFrame.new(0,-1,0),0,math.rad(90),0,i)
  385. animate("Toso",(co-Vector3.new(0,0.5,0)),math.rad(30),math.rad(0),math.rad(0),i)
  386. animate("hr",CFrame.new(0,1,0),math.rad(-10),math.rad(0),0,i)
  387. animate("rr",CFrame.new(1.5,0.5,0),math.rad(90),math.rad(35),math.rad(-25),i)
  388. animate("lr",CFrame.new(-1.5,0.5,0),math.rad(-15),0,math.rad(-45),i)
  389. animate("reg",CFrame.new(0.5,-1,-0.65),math.rad(25),0,0,i)
  390. animate("leg",CFrame.new(-0.5,-1.3,0),math.rad(5),0,0,i)
  391. wait()
  392. end;logic = Add.BG(hrp,hrp.CFrame)
  393. for i = 1, 10 do
  394. boost= Add.part("White",Vector3.new(1, 1, 1),t.CFrame*CFrame.new(0,0,-1),char,"effect",Vector3.new(3, 3, 3),"Block","FileMesh",false,"http://www.roblox.com/asset/?id=20329976",0.3,Part,"Symmetric")
  395. boost.CFrame = CFrame.new(t.Position-Vector3.new(0,1.2,0))*CFrame.Angles(0,math.rad(math.random(-360,360)),0)
  396. coroutine.resume(coroutine.create(function(mama)
  397. for i = 0, 1, 1/12 do
  398. mama.CFrame = mama.CFrame*CFrame.Angles(0,math.rad(math.random(-360,360)),0);mama.Transparency = 0.3+0.5*i;mama.Mesh.Scale = Vector3.new(3+1*i,3+1*i,3+1*i);
  399. wait()
  400. end;mama.Parent=nil
  401. end),boost)
  402. wait()
  403. end;
  404.  
  405. for i = 0, 1, 1/7 do
  406. animate("bw",CFrame.new(0,-1,0),0,math.rad(90),0,i)
  407. animate("Toso",(co-Vector3.new(0,0,0)),math.rad(0),math.rad(0),math.rad(0),i)
  408. animate("hr",CFrame.new(0,1,0),math.rad(0),math.rad(0),0,i)
  409. animate("rr",CFrame.new(1.5,0.5,0),math.rad(0),math.rad(90),math.rad(90),i)
  410. animate("lr",CFrame.new(-1.5,0.5,0),math.rad(-15),0,math.rad(-45),i)
  411. animate("reg",CFrame.new(0.5,-1,-0),math.rad(0),0,math.rad(25),i)
  412. animate("leg",CFrame.new(-0.5,-1,0),math.rad(0),0,math.rad(-25),i)
  413. wait()
  414. end;
  415.  
  416. ball = Add.part("White", Vector3.new(1,1,1), t.CFrame, char, "Effect", Vector3.new(20,20,20), "Block", "Sphere",false,nil,0.7,Part,"Custom")ball.Anchored = false
  417. anchor = Add.part("White",Vector3.new(5,5,5),t.CFrame,char,"anchor",Vector3.new(20,20,20),"Block","Sphere",false,nil,1,Part,"Custom");anchor.Anchored = false
  418. wind = Add.part("White",Vector3.new(5,5,5),t.CFrame,char,"anchor",Vector3.new(20,20,20),"Block","FileMesh",false,"http://www.roblox.com/asset/?id=1051557",0.6,Part,"Custom");wind.Anchored = false
  419. a=weldIt(t,anchor,CFrame.new(0,0,0),CFrame.new(0,0,0),nil);b=weldIt(t,wind,CFrame.new(0,0,0),CFrame.new(0,0,0),nil);c=weldIt(t,ball,CFrame.new(0,0,0),CFrame.new(0,0,0),nil)
  420. already = {};weldos={};lepeepz=checkdist(t,17);gage = b.C0
  421.  
  422. for i = 1, #lepeepz do
  423. if lepeepz[i] then
  424. haw = weldIt(anchor,lepeepz[i].Torso,anchor.CFrame:toObjectSpace(lepeepz[i].Torso.CFrame),nil,nil)
  425. table.insert(weldos,haw);
  426. end
  427. end
  428. for i = 0,1, 1/120 do
  429. if math.floor((i*120)%30) == 1 then
  430. for x = 1,#lepeepz do
  431. if lepeepz[x] and lepeepz[x]:findFirstChild("Humanoid") and lepeepz[x]:findFirstChild("Torso") then
  432. attackdebounce = false
  433. Damagefunc(lepeepz[x].Torso,(humanoid.MaxHealth/10),(humanoid.MaxHealth/10),math.random(10,30),"Normal")
  434. end
  435. end
  436. end
  437. if math.floor((i*120)%4) == 1 then
  438. lolbob = Add.part("White",Vector3.new(5,5,5),t.CFrame*CFrame.Angles(math.rad(math.random(-100,100)),math.rad(math.random(-100,100)),math.rad(math.random(-100,100))),char,"anchor",Vector3.new(2.5,2.5,2.5),"Block","FileMesh",false,"rbxassetid://168892432 ",0.4,Part,"Custom")
  439. lolbob.CFrame = t.CFrame*CFrame.Angles(0,math.rad(-360,360),0)
  440. coroutine.resume(coroutine.create(function(clone)
  441. for i = 0, 1, 0.1 do
  442. clone.Mesh.Scale = Vector3.new(2.5+5*i,2.5+5*i,2.5+5*i);clone.Transparency = 0.4+0.4*i
  443. wait()
  444. end;clone.Parent = nil
  445. end),lolbob)
  446. end
  447. animate("Toso",(co-Vector3.new(0,0,0)),math.rad(0),math.rad(0),math.rad((360*16)*i),i);b.C0 = gage*CFrame.Angles(0,math.rad(100*i),0);ball.Transparency = 0.6-0.4*i;wind.Transparency = 0.6-0.4*i
  448. for i = 1,#weldos do
  449. weldos[i].C0 = weldos[i].C0*CFrame.new(0,0.0625,0)
  450. end
  451. wait()
  452. end;logic.Parent=nil
  453. coroutine.resume(coroutine.create(function(a1,a2,a3,ws,w)
  454. for i = 0, 1, 0.1 do
  455. w.C0 = ws*CFrame.Angles(0,math.rad(100*i),0)
  456. a1.Mesh.Scale = Vector3.new(20+3*i,20+3*i,20+3*i);a1.Transparency = 0.2+0.8*i
  457. a2.Mesh.Scale = Vector3.new(20+3*i,20+3*i,20+3*i);a2.Transparency = 0.2+0.8*i
  458. wait()
  459. end;a1.Parent=nil;a2.Parent=nil;a3.Parent=nil;
  460. end),wind,ball,anchor,b.C0,b)
  461. for i = 1,#weldos do if weldos[i] then weldos[i].Parent = nil end end
  462. wait()
  463. anim = false;bodyp.Parent=nil;canjump=true;
  464. end,
  465. function()
  466. niye = sword:GetChildren();guard=true;br = BrickColor.new("Institutional white")
  467. if ss then
  468. br = BrickColor.new("Medium stone grey");guard = false
  469. end
  470. for i = 1,# niye do
  471. if niye[i].Name == "Blade" then
  472. niye[i].BrickColor = br;ss = guard
  473. end
  474. end
  475. end,
  476. function(bik,rotate)
  477. if not canboost then return end
  478. coroutine.resume(coroutine.create(function(ilan,ratat)
  479. yolo = Add.bp(hrp,"BOPOLS",hrp.Position);canboost=false;
  480. boosts= Add.part("White",Vector3.new(5,5,5),hrp.CFrame,char,"boom",Vector3.new(2.5,2.5,2.5),"Block","FileMesh",false,"http://www.roblox.com/asset/?id=20329976",0.4,Part,"Custom")
  481. boosts.CFrame = (t.CFrame-Vector3.new(0,1.5,0))*CFrame.Angles(0,0,math.rad(ratat))
  482. coroutine.resume(coroutine.create(function(thing)
  483. print("yo")
  484. for i = 0, 1, 0.05 do
  485. thing.Mesh.Scale = Vector3.new(2.5+1*i,2.5+1*i,2.5+1*i);thing.Transparency = 0.4+0.5*i
  486. wait()
  487. end;thing.Parent=nil
  488. end),boosts)
  489. for i = 0, 1, 0.1 do
  490. yolo.position = (hrp.CFrame*CFrame.new(0,0,ilan)).p
  491. wait()
  492. end
  493. yolo.Parent = nil;canboost=true
  494. end),bik,rotate)
  495. end
  496. }
  497. function led(key, mouse)
  498. key = key:lower()
  499. if anim then return end
  500. if key == "z" then
  501. skills[1](mouse)
  502. elseif key == "x" then
  503. skills[2](mouse)
  504. elseif key == "r" then
  505. skills[3]()
  506. elseif key == "c" then
  507. skills[4](-15,120)
  508. elseif key == "v" then
  509. skills[4](10,-120)
  510. end
  511. end
  512. function normal(i)
  513. animate("bw",CFrame.new(0,-1,0),0,math.rad(90),0,i)
  514. animate("Toso",(co-Vector3.new(0,0.4,0)),0,math.rad(5),math.rad(90),i)
  515. animate("hr",CFrame.new(0,1,0),math.rad(-10),math.rad(-70),0,i)
  516. animate("rr",CFrame.new(1.5,0.5,0),math.rad(90),math.rad(115),math.rad(-25),i)
  517. animate("lr",CFrame.new(-1.5,0.5,0),math.rad(35),0,math.rad(-25),i)
  518. animate("reg",CFrame.new(0.5,-1.1,-0.65),math.rad(-15),0,0,i)
  519. animate("leg",CFrame.new(-0.5,-1.2,0),math.rad(-25),0,0,i)
  520. end
  521. function Equip(mouse)
  522. print("yup")
  523. if equip then return end
  524. while anim do wait() end
  525. rh.Parent=nil;rs.Parent=nil;lh.Parent=nil;neck.Parent=nil;ls.Parent=nil;rlw = weldIt(t,rl, CFrame.new(0.5,-1.5,0),CFrame.new(0,0.5,0));llw = weldIt(t,ll, CFrame.new(-0.5,-1.5,0),CFrame.new(0,0.5,0));
  526. rw = weldIt(t,ra,CFrame.new(1.5,0.5,0),CFrame.new(0,0.5,0),nil);lw = weldIt(t,la,CFrame.new(-1.5,0.5,0),CFrame.new(0,0.5,0));nw = weldIt(t,head,CFrame.new(0, 1, 0),CFrame.new(0,-0.5,0))
  527. anim = true
  528. bw.Parent = nil;running=false;idol=true;
  529. hw = weldIt(ra,Handle,CFrame.new(0,-1,0)*CFrame.Angles(0,math.rad(90),0),nil)
  530. for i = 0,1,0.1 do
  531. normal(i)
  532. wait(0.0001)
  533. end
  534. mouse.Button1Down:connect(clik)
  535. mouse.KeyDown:connect(function(k) led(k, mouse) end)
  536. equip = true;anim = false;
  537. end
  538. function unequip(mouse)
  539. if not equip then return end
  540. while anim do wait() end
  541. anim = true;ss=false
  542. for i = 0,1,0.1 do
  543. animate("Toso",co-Vector3.new(0,0.4-0.4*i,0),0,0,0,i)
  544. animate("hr",CFrame.new(0,1,0),0,0,0,i)
  545. animate("rr",CFrame.new(1.5,0.5,0),0,0,0,i)
  546. animate("lr",CFrame.new(-1.5,0.5,0),0,0,0,i)
  547. animate("reg",CFrame.new(0.5,-1.5,0),0,0,0,i)
  548. animate("leg",CFrame.new(-0.5,-1.5,0),0,0,0,i)
  549. wait(0.0001)
  550. end
  551. hw.Parent = nil;backweld()
  552. rw.Parent=nil;lw.Parent=nil;hrpw.C0 = co;rlw.Parent=nil;llw.Parent=nil;rh.Parent=t;lh.Parent=t;rs.Parent=t;ls.Parent=t;neck.Parent=t;
  553. equip=false;anim=false
  554. end
  555. canrun=false
  556. function runit()
  557. if(t.Velocity*Vector3.new(1, 0, 1)).magnitude > 2 and not anim and equip and fell then
  558. running = true;
  559. for i = 0, 1,(1/7) do
  560. if not anim and equip and running and fell then
  561. animate("bw",CFrame.new(0,-1,0),0,math.rad(90),0,i)
  562. animate("Toso",(co-Vector3.new(0,0.4,0)),0,math.rad(5),math.rad(80),i)
  563. animate("hr",CFrame.new(0,1,0),math.rad(0),math.rad(-80),0,i)
  564. animate("rr",CFrame.new(1.5,0.5,0),math.rad(90),math.rad(45),math.rad(-25),i)
  565. animate("lr",CFrame.new(-1.5,0.5,0),math.rad(-35),0,math.rad(-30),i)
  566. --[[animate("reg",CFrame.new(0.5,-1.1,0.2),math.rad(5),math.rad(-80),0,i)
  567. animate("leg",CFrame.new(-0.5,-1.2,-0.2),math.rad(-2),math.rad(-80),0,i)]]
  568. animate("reg",CFrame.new(0.6,-1.2,0),math.rad(5+35*math.cos((inf-7)/4)),math.rad(-40),0,i)
  569. animate("leg",CFrame.new(-0.6,-1.2,0),math.rad(-2-35*math.cos((inf-7)/4)),math.rad(-40),0,i)
  570. wait()
  571. else
  572. if hw then
  573. hw.C0 = CFrame.new(0,-1,0)*CFrame.Angles(0,math.rad(90),0) end
  574. break
  575. end
  576. end
  577.  
  578. end
  579. end
  580. --[[function run(speed)
  581. if speed>0 then
  582.  
  583. if (t.Velocity*Vector3.new(1, 0, 1)).magnitude > 2 then
  584. runit()
  585. end
  586. else
  587. running = false
  588. for i = 0, 1, 0.142 do
  589. if not anim and equip and not running then
  590. normal(i)
  591. wait()
  592. else
  593. if hw then
  594. hw.C0 = CFrame.new(0,-1,0)*CFrame.Angles(0,math.rad(90),0) end
  595. break
  596. end
  597. end
  598. idol = true
  599. end
  600. inf = 0
  601. end]]
  602.  
  603.  
  604.  
  605.  
  606. --to[mem
  607.  
  608.  
  609. function Lerp(x,y,inc) return x + (y - x) * inc end
  610.  
  611. function animate(mem,cfr,x,y,z,e)
  612. To[mem].X=Lerp(To[mem].X,x,e);To[mem].Y=Lerp(To[mem].Y,y,e);To[mem].Z=Lerp(To[mem].Z,z,e)
  613. To[mem].cf=(cfr-Vector3.new(cfr.X,cfr.Y,cfr.Z))+Vector3.new(Lerp(To[mem].cf.X,cfr.X,e),Lerp(To[mem].cf.Y,cfr.Y,e),Lerp(To[mem].cf.Z,cfr.Z,e))
  614. end
  615. To={
  616. rr={X=0;Y=0;Z=0;cf=CFrame.new(1.5,0.5,0)};bw={X=math.rad(5);Y=math.rad(90);Z=0;cf=CFrame.new(0,-1,0)};lr={X=0;Y=0;Z=0;cf=CFrame.new(-1.5,0.5,0)};hr={X=0;Y=0;Z=0;cf=CFrame.new(0,1.5,0)};leg={X=0;Y=0;Z=0;cf=CFrame.new(-0.5,-1,0)};reg={X=0;Y=0;Z=0;cf=CFrame.new(0.5,-1,0)};Toso={X=0;Y=0;Z=0;cf=co}
  617. }
  618. game:service'RunService'.RenderStepped:connect(function()
  619. if rw then rw.C0=To["rr"].cf*CFrame.Angles((To["rr"].X),(To["rr"].Y),(To["rr"].Z)); end
  620. if hw and equip then hw.C0=To["bw"].cf*CFrame.Angles((To["bw"].X),(To["bw"].Y),(To["bw"].Z)) end
  621. if lw then lw.C0=To["lr"].cf*CFrame.Angles((To["lr"].X),(To["lr"].Y),(To["lr"].Z));end
  622. if nw then nw.C0=To["hr"].cf*CFrame.Angles((To["hr"].X),To["hr"].Y,To["hr"].Z);end
  623. if rlw then rlw.C0=To["reg"].cf*CFrame.Angles(To["reg"].X,To["reg"].Y,To["reg"].Z);end
  624. if llw then llw.C0=To["leg"].cf*CFrame.Angles(To["leg"].X,To["leg"].Y,To["leg"].Z);end
  625. if hrpw then hrpw.C0=To["Toso"].cf*CFrame.Angles(To["Toso"].X,To["Toso"].Y,To["Toso"].Z) end
  626. end)
  627. function NoOutline(Part)
  628. Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
  629. end
  630. ---------------------1274182751856210985126509218u8071894718946189406194189410-------------------------------------------
  631. ---------------------1274182751856210985126509218u8071894718946189406194189410-------------------------------------------
  632. ---------------------1274182751856210985126509218u8071894718946189406194189410-------------------------------------------
  633. local ppart = Instance.new("Part")
  634. ppart.Material = "SmoothPlastic"
  635. ppart.TopSurface,ppart.BottomSurface = 0,0
  636. ppart.FormFactor = "Custom"
  637. ppart.Size = Vector3.new(.2,.2,.2)
  638. ppart:BreakJoints()
  639. ppart.TopSurface = "SmoothNoOutlines"
  640. ppart.BottomSurface = "SmoothNoOutlines"
  641. ppart.RightSurface = "SmoothNoOutlines"
  642. ppart.LeftSurface = "SmoothNoOutlines"
  643. ppart.CanCollide = false
  644.  
  645. local function CFrameFromTopBack(at, top, back)
  646. local right = top:Cross(back)
  647. return CFrame.new(at.x, at.y, at.z,
  648. right.x, top.x, back.x,
  649. right.y, top.y, back.y,
  650. right.z, top.z, back.z)
  651. end
  652.  
  653. function Triangle(a, b, c)
  654. local edg1 = (c-a):Dot((b-a).unit)
  655. local edg2 = (a-b):Dot((c-b).unit)
  656. local edg3 = (b-c):Dot((a-c).unit)
  657. if edg1 <= (b-a).magnitude and edg1 >= 0 then
  658. a, b, c = a, b, c
  659. elseif edg2 <= (c-b).magnitude and edg2 >= 0 then
  660. a, b, c = b, c, a
  661. elseif edg3 <= (a-c).magnitude and edg3 >= 0 then
  662. a, b, c = c, a, b
  663. else
  664. assert(false, "unreachable")
  665. end
  666.  
  667. local len1 = (c-a):Dot((b-a).unit)
  668. local len2 = (b-a).magnitude - len1
  669. local width = (a + (b-a).unit*len1 - c).magnitude
  670.  
  671. local maincf = CFrameFromTopBack(a, (b-a):Cross(c-b).unit, -(b-a).unit)
  672.  
  673. local list = {}
  674.  
  675. if len1 > 0.01 then
  676. local w1 = Instance.new('WedgePart', m)
  677. w1.Material = "SmoothPlastic"
  678. w1.FormFactor = 'Custom'
  679. if Mode=="Unactive" then
  680. w1.BrickColor = ppart.BrickColor
  681. elseif Mode=="Hero" then
  682. w1.BrickColor = BrickColor.new("Bright blue")
  683. elseif Mode=="Infamous" then
  684. w1.BrickColor = BrickColor.new("Bright red")
  685. end
  686. w1.Transparency = ppart.Transparency
  687. w1.Reflectance = ppart.Reflectance
  688. w1.Material = ppart.Material
  689. w1.CanCollide = ppart.CanCollide
  690. NoOutline(w1)
  691. local sz = Vector3.new(0.2, width, len1)
  692. w1.Size = sz
  693. local sp = Instance.new("SpecialMesh",w1)
  694. sp.MeshType = "Wedge"
  695. sp.Scale = Vector3.new(0,1,1) * sz/w1.Size
  696. w1:BreakJoints()
  697. w1.Anchored = true
  698. w1.Parent = workspace
  699. w1.Transparency = 0.8
  700. coroutine.resume(coroutine.create(function(Part)
  701. for i=0,1,0.1 do
  702. wait()
  703. Part.Transparency=Part.Transparency+0.02
  704. end
  705. end),w1)
  706. w1.CFrame = maincf*CFrame.Angles(math.pi,0,math.pi/2)*CFrame.new(0,width/2,len1/2)
  707. table.insert(list,w1)
  708. end
  709.  
  710. if len2 > 0.01 then
  711. local w2 = Instance.new('WedgePart', m)
  712. w2.Material = "SmoothPlastic"
  713. w2.FormFactor = 'Custom'
  714. if Mode=="Unactive" then
  715. w2.BrickColor = ppart.BrickColor
  716. elseif Mode=="Hero" then
  717. w2.BrickColor = BrickColor.new("Bright blue")
  718. elseif Mode=="Infamous" then
  719. w2.BrickColor = BrickColor.new("Bright red")
  720. end
  721. w2.Transparency = ppart.Transparency
  722. w2.Reflectance = ppart.Reflectance
  723. w2.Material = ppart.Material
  724. w2.CanCollide = ppart.CanCollide
  725. NoOutline(w2)
  726. local sz = Vector3.new(0.2, width, len2)
  727. w2.Size = sz
  728. local sp = Instance.new("SpecialMesh",w2)
  729. sp.MeshType = "Wedge"
  730. sp.Scale = Vector3.new(0,1,1) * sz/w2.Size
  731. w2:BreakJoints()
  732. w2.Anchored = true
  733. w2.Parent = workspace
  734. w2.Transparency = 0.8
  735. coroutine.resume(coroutine.create(function(Part)
  736. for i=0,1,0.1 do
  737. wait()
  738. Part.Transparency=Part.Transparency+0.02
  739. end
  740. end),w2)
  741. w2.CFrame = maincf*CFrame.Angles(math.pi,math.pi,-math.pi/2)*CFrame.new(0,width/2,-len1 - len2/2)
  742. table.insert(list,w2)
  743. end
  744. return unpack(list)
  745. end
  746. ---------------------1274182751856210985126509218u8071894718946189406194189410-------------------------------------------
  747. ---------------------1274182751856210985126509218u8071894718946189406194189410-------------------------------------------
  748. ---------------------1274182751856210985126509218u8071894718946189406194189410-------------------------------------------
  749.  
  750.  
  751.  
  752.  
  753. ------------------------------
  754. Damagefunc=function(hit,minim,maxim,knockback,Type,Property)
  755. if hit.Parent==nil then
  756. return
  757. end
  758. CPlayer=Bin
  759. h=hit.Parent:FindFirstChild("Humanoid")
  760. for _,v in pairs(hit.Parent:children()) do
  761. if v:IsA("Humanoid") then
  762. h=v
  763. end
  764. end
  765. if h~=nil and hit.Parent.Name~=char.Name and hit.Parent:FindFirstChild("Torso")~=nil then
  766. if attackdebounce == false then
  767. attackdebounce = true
  768. coroutine.resume(coroutine.create(function()
  769. wait(0.2)
  770. attackdebounce = false
  771. end))
  772.  
  773. c=Instance.new("ObjectValue")
  774. c.Name="creator"
  775. c.Value=game:service("Players").LocalPlayer
  776. c.Parent=h
  777. game:GetService("Debris"):AddItem(c,.5)
  778. Damage=math.random(minim,maxim)
  779. blocked=false
  780. block=hit.Parent:findFirstChild("Block")
  781. if block~=nil then
  782. if block.Value>0 then
  783. blocked=true
  784. block.Value=block.Value-1
  785. print(block.Value)
  786. end
  787. end
  788. if blocked==false then
  789. print("NOOOOP")
  790. h.Health=h.Health-Damage
  791. showDamage(hit.Parent,Damage,.5,BrickColor:Red())
  792. else
  793. print("NOOOOP")
  794. h.Health=h.Health-(Damage/2)
  795. showDamage(hit.Parent,Damage/2,.5,BrickColor.new("Bright blue"))
  796. end
  797. if Type=="Knockdown" then
  798. hum=hit.Parent.Humanoid
  799. hum.PlatformStand=true
  800. coroutine.resume(coroutine.create(function(HHumanoid)
  801. wait(1)
  802. HHumanoid.PlatformStand=false
  803. end),hum)
  804. local angle=(hit.Position-(Property.Position+Vector3.new(0,0,0))).unit
  805. print(angle)
  806. --hit.CFrame=CFrame.new(hit.Position,Vector3.new(angle.x,hit.Position.y,angle.z))*CFrame.fromEulerAnglesXYZ(math.pi/4,0,0)
  807. local bodvol=Instance.new("BodyVelocity")
  808. bodvol.velocity=angle*knockback
  809. bodvol.P=5000
  810. bodvol.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
  811. bodvol.Parent=hit
  812. rl=Instance.new("BodyAngularVelocity")
  813. rl.P=3000
  814. rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000
  815. rl.angularvelocity=Vector3.new(math.random(-10,10),math.random(-10,10),math.random(-10,10))
  816. rl.Parent=hit
  817. game:GetService("Debris"):AddItem(bodvol,.5)
  818. game:GetService("Debris"):AddItem(rl,.5)
  819. elseif Type=="Normal" then
  820. vp=Instance.new("BodyVelocity")
  821. vp.P=500
  822. vp.maxForce=Vector3.new(math.huge,0,math.huge)
  823. if Rootpart then
  824. vp.velocity=RootPart.CFrame.lookVector*knockback+RootPart.Velocity/1.05
  825. end
  826. if knockback>0 then
  827. vp.Parent=hit.Parent.Torso
  828. end
  829. game:GetService("Debris"):AddItem(vp,.5)
  830. elseif Type=="Up" then
  831. local bodyVelocity=Instance.new("BodyVelocity")
  832. bodyVelocity.velocity=vt(0,20,0)
  833. bodyVelocity.P=5000
  834. bodyVelocity.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
  835. bodyVelocity.Parent=hit
  836. game:GetService("Debris"):AddItem(bodyVelocity,.5)
  837. elseif Type=="Freeze" then
  838. BodPos=Instance.new("BodyPosition")
  839. BodPos.P=50000
  840. BodPos.D=1000
  841. BodPos.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  842. BodPos.position=hit.Parent.Torso.Position
  843. BodPos.Parent=hit.Parent.Torso
  844. BodGy = it("BodyGyro")
  845. BodGy.maxTorque = Vector3.new(4e+005,4e+005,4e+005)*math.huge
  846. BodGy.P = 20e+003
  847. BodGy.Parent=hit.Parent.Torso
  848. BodGy.cframe = hit.Parent.Torso.CFrame
  849. hit.Parent.Torso.Anchored=true
  850. coroutine.resume(coroutine.create(function(Part)
  851. wait(1.5)
  852. Part.Anchored=false
  853. end),hit.Parent.Torso)
  854. game:GetService("Debris"):AddItem(BodPos,3)
  855. game:GetService("Debris"):AddItem(BodGy,3)
  856. end
  857. c=Instance.new("ObjectValue")
  858. c.Name="creator"
  859. c.Value=Player
  860. c.Parent=h
  861. game:GetService("Debris"):AddItem(c,.5)
  862. CRIT=false
  863. hitDeb=true
  864. AttackPos=6
  865. end
  866. end
  867. end
  868.  
  869. showDamage=function(Char,Dealt,du,Color)
  870. m=Instance.new("Model")
  871. m.Name=tostring(Dealt)
  872. h=Instance.new("Humanoid")
  873. h.Health=0
  874. h.MaxHealth=0
  875. h.Parent=m
  876. c=Instance.new("Part")
  877. c.Transparency=0
  878. c.BrickColor=Color
  879. c.Name="Head"
  880. c.TopSurface=0
  881. c.BottomSurface=0
  882. c.formFactor="Plate"
  883. c.Size=Vector3.new(1,.4,1)
  884. ms=Instance.new("CylinderMesh")
  885. ms.Scale=Vector3.new(.8,.8,.8)
  886. if CRIT==true then
  887. ms.Scale=Vector3.new(1,1.25,1)
  888. end
  889. ms.Parent=c
  890. c.Reflectance=0
  891. Instance.new("BodyGyro").Parent=c
  892. c.Parent=m
  893. c.CFrame=CFrame.new(Char["Head"].CFrame.p+Vector3.new(0,1.5,0))
  894. f=Instance.new("BodyPosition")
  895. f.P=2000
  896. f.D=100
  897. f.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  898. f.position=c.Position+Vector3.new(0,3,0)
  899. f.Parent=c
  900. game:GetService("Debris"):AddItem(m,.5+du)
  901. c.CanCollide=false
  902. m.Parent=workspace
  903. c.CanCollide=false
  904. end
  905.  
  906. function humang()
  907. if not canjump then
  908. humanoid.Jump = false
  909. end
  910. end
  911.  
  912. function checkint(tabl,thing)
  913. for i = 1,#tabl do
  914. if tabl[i] == thing then
  915. return true
  916. end
  917. end
  918. return false
  919. end
  920. ------------------------------------------------------
  921.  
  922. --humanoid.Running:connect(run)
  923. humanoid.Changed:connect(humang)
  924. hb.Deselected:connect(unequip)
  925. hb.Selected:connect(Equip)
  926.  
  927.  
  928. function checkdist(Part,magni)
  929. tabol = {}
  930. for _,c in pairs(workspace:children()) do
  931. local hum=c:findFirstChild("Humanoid")
  932. if hum~=nil then
  933. local head=c:findFirstChild("Torso")
  934. if head~=nil then
  935. local targ=head.Position-Part.Position
  936. local mag=targ.magnitude
  937. if mag<=magni and c.Name~=player.Name then
  938. table.insert(tabol, c)
  939. end
  940. end
  941. end
  942. end
  943.  
  944. return tabol
  945. end
  946.  
  947.  
  948.  
  949. inf = 0;lejump = false;
  950. while true do
  951. if inf == 1000 then
  952. inf = 0
  953. end
  954. if (t.Velocity*Vector3.new(1, 0, 1)).magnitude <= 2 and not anim and equip and (fell and (t.Velocity.Y <= 1 and t.Velocity.Y >= -1)) then
  955. lerun=false;if rlw and hrpw and llw then
  956. if lenormal then
  957. for i = 0, 1, 0.2 do
  958. if (t.Velocity*Vector3.new(1, 0, 1)).magnitude <= 2 and not anim and equip and (fell and (t.Velocity.Y <= 1 and t.Velocity.Y >= -1)) then
  959. normal(i)
  960. wait()
  961. else
  962. break
  963. end
  964. end
  965. lenormal = false
  966. end
  967. animate("Toso",co-Vector3.new(0,0.4-0.2*math.cos(inf/23),0),0,math.rad(5),math.rad(90),1)
  968. animate("reg",CFrame.new(0.5,-1.1-0.2*math.cos(inf/23),-0.65),math.rad(-15),0,0,1)
  969. animate("leg",CFrame.new(-0.5,-1.2,0),math.rad(-25-15*(-1*math.cos(inf/23))),0,0,1)
  970. animate("rr",CFrame.new(1.5,0.5,0),math.rad(90),math.rad(115),math.rad(-25+5*math.cos(inf/23)),1)
  971. animate("lr",CFrame.new(-1.5,0.5,0),math.rad(35),0,math.rad(-25-10*math.cos(inf/23)),1)
  972. end
  973. elseif(t.Velocity*Vector3.new(1, 0, 1)).magnitude > 2 and not anim and equip and (fell and (t.Velocity.Y <= 1 and t.Velocity.Y >= -1)) or locanrun then
  974. lenormal=true;
  975. if not lerun and not locanrun then
  976. runit()
  977. lerun=true
  978. end
  979. animate("reg",CFrame.new(0.6,-1.2,0),math.rad(5+35*math.cos(inf/4)),math.rad(-40),0,1)
  980. animate("leg",CFrame.new(-0.6,-1.2,0),math.rad(-2-35*math.cos(inf/4)),math.rad(-40),0,1)
  981. elseif t.Velocity.Y > 1 and not anim and equip and not lejump then
  982. lejump=true;lenormal=true;lerun=false
  983. for i = 0, 1, 1/4 do
  984. if not anim and equip and lejump then
  985. animate("hr",CFrame.new(0,1,0),math.rad(15),math.rad(0),0,i)
  986. animate("reg",CFrame.new(0.6,-1.2,0),math.rad(35),math.rad(-40),0,i)
  987. animate("leg",CFrame.new(-0.6,-1.2,0),math.rad(-35),math.rad(-40),0,i)
  988. animate("rr",CFrame.new(1.5,0.5,0),math.rad(90),math.rad(75),math.rad(-25),i)
  989. animate("lr",CFrame.new(-1.5,0.5,0),math.rad(-35),0,math.rad(-30),i)
  990. wait()
  991. else
  992. break
  993. end
  994. end
  995. lejump=false
  996. if t.Velocity.Y > 1 and not anim and equip and not lejump then
  997. fell = false
  998. end
  999. elseif t.Velocity.Y < -1 and not anim and equip and not lejump and not crosh then
  1000. fell = false;lenormal=true;lerun=false
  1001. for i = 0, 1, 1/4 do
  1002. if not anim and equip and (crosh == nil or (crosh and crosh.CanCollide == false)) then
  1003. animate("hr",CFrame.new(0,1,0),math.rad(-5),math.rad(0),0,i)
  1004. animate("reg",CFrame.new(0.6,-1.2,0),math.rad(-25),math.rad(-40),0,i)
  1005. animate("leg",CFrame.new(-0.6,-1.2,0),math.rad(15),math.rad(-40),0,i)
  1006. animate("rr",CFrame.new(1.5,0.5,0),math.rad(90),math.rad(100),math.rad(-25),i)
  1007. animate("lr",CFrame.new(-1.5,0.5,0),math.rad(46),0,math.rad(-30),i)
  1008. wait()
  1009. else
  1010. print('break')
  1011. break
  1012. end
  1013. end
  1014. lejump = false
  1015. else
  1016. idol = true;lenormal=true;lerun=false
  1017. end
  1018.  
  1019. ray = Ray.new(t.Position,(((t.CFrame*CFrame.new(0,-1.5,0)).p)-t.Position).unit*3)
  1020. crosh, endPoint = Workspace:FindPartOnRay(ray,char)
  1021. if (crosh) then
  1022. lejump=false
  1023. fell = true
  1024. end
  1025. if ss then
  1026. windy= Add.part("Institutional white",Vector3.new(4, 1.2, 1),(hitbox.CFrame),sword,"wind",Vector3.new(math.random(50,110)/100, 0.3, 0.3),"Block","Sphere",false,nil,0.69999998807907,Part,"Brick");windy.Anchored = false; windyweld=weldIt(hitbox,windy,CFrame.new(math.random(-100,100)/130,-2,math.random(-100,100)/130)*CFrame.Angles(0,0,math.rad(90)),nil,nil)
  1027. coroutine.resume(coroutine.create(function(w,was,cu)
  1028. for i = 0, 1, 0.2 do
  1029. was.C0 = cu+Vector3.new(0,4*i,0)
  1030. wait()
  1031. end;was.Parent=nil;w.Parent = nil;print("yomama")
  1032. end),windy,windyweld,windyweld.C0)
  1033. end
  1034. inf =inf+1
  1035. wait()
  1036. end
Add Comment
Please, Sign In to add comment