Advertisement
memberhero

Old Senshi? Black Magic

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