Advertisement
deathsignature2

berzerker claws

Jan 22nd, 2018
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 73.97 KB | None | 0 0
  1. run = game:GetService("RunService")
  2. local player = game.Players.LocalPlayer
  3. char = player.Character
  4. char.Archivable = true
  5. throwmode = false;runarmsanim = false;throwing = false;shadowblade=false;shieldon=false;combo = "";formercombo = combo;last="j";
  6. keyf=false;mainColor = "Royal purple";color1 = "Really black";color2="Black";clickagain=false;noimpact = false;shadowr=false;
  7. maxmana = 500;mana = maxmana;impact = nil;chargeskill =false;tdown=false;
  8. jumping=false;anim = false;fall = false;runs = false;ready = true;notequi = false;equiping = false;gotDamage1=false;gotDamage2=false;
  9. Damage = 30
  10. lastpoint1 = Vector3.new(0, 0, 0);lastpoint2 = Vector3.new(0, 0, 0);
  11. at = 1
  12. effects = {};swords = {}
  13. --check parts--
  14. 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");
  15.  
  16. local hb = Instance.new("HopperBin", player.Backpack)
  17. hb.Name = "ClawBerserk"
  18. clawe1 = Instance.new("Model");clawe1.Name = "Claw1"
  19. clawe2 = Instance.new("Model");clawe2.Name = "Claw2"
  20. script.Parent = hb
  21. function ComputePos(pos1, pos2)
  22. local pos3 = Vector3.new(pos2.x, pos1.y, pos2.z)
  23. return CFrame.new(pos1, pos3)
  24. end
  25.  
  26.  
  27. Add = {
  28. Sphere = function(P)
  29. local m = Instance.new("SpecialMesh",P)
  30. m.MeshType = "Sphere"
  31. return m
  32. end,
  33. BF = function(P)
  34. local bf = Instance.new("BodyForce",P)
  35. bf.force = Vector3.new(0, P:GetMass()*187, 0)
  36. return bf
  37. end,
  38. BP = function(P)
  39. local bp = Instance.new("BodyPosition",P)
  40. bp.maxForce = Vector3.new(math.huge, 0, math.huge)
  41. bp.P = 14000
  42. return bp
  43. end,
  44. BG = function(P)
  45. local bg = Instance.new("BodyGyro",P)
  46. bg.maxTorque = Vector3.new(math.huge, math.huge, math.huge)
  47. bg.P = 14000
  48. return bg
  49. end,
  50. ingay = function(id, place,por,lop)
  51. local sound = Instance.new("Sound", place)
  52. sound.SoundId = id
  53. sound.Looped = lop
  54. sound.Volume = 1;sound.Pitch=1;sound.PlayOnRemove = por;
  55. return sound
  56. end,
  57. part = function(color,size,pos, place, naym,scale, thing,mt,ccd,id,transparent,loool,ff)
  58. if loool ~= nil then
  59. balleff = Instance.new(loool, place)
  60. else
  61. balleff = Instance.new("Part", place)
  62. balleff.Material = "SmoothPlastic"
  63. balleff.TopSurface = "SmoothNoOutlines"
  64. balleff.BottomSurface = "SmoothNoOutlines"
  65. balleff.RightSurface = "SmoothNoOutlines"
  66. balleff.LeftSurface = "SmoothNoOutlines"
  67. end
  68. balleff.Name = naym
  69. balleff.Anchored= true
  70. balleff.CFrame = pos
  71. if loool == nil then
  72. balleff.Shape = thing
  73. end
  74. if ff then
  75. balleff.FormFactor = ff
  76. end
  77. balleff.CanCollide = ccd;balleff.Transparency = transparent;
  78. balleff.TopSurface = 0
  79. balleff.BottomSurface = 0
  80. balleff.Size = size
  81. balleff.BrickColor = BrickColor.new(color)
  82. mesh = Instance.new("SpecialMesh",balleff)
  83. mesh.MeshType = mt
  84. mesh.Scale = scale
  85. if mt == "FileMesh" then
  86. mesh.MeshId = id
  87. end
  88. balleff.Parent = place
  89. return balleff
  90. end,
  91. BV = function(place,cf)
  92. bels = Instance.new("BodyVelocity")
  93. bels.velocity = cf
  94. bels.maxForce = Vector3.new(math.huge, math.huge, math.huge)
  95. bels.Parent = place
  96. return bels
  97. end
  98. }
  99.  
  100. --creating the blade------
  101. --c1--
  102. c1handle = Add.part("Really black",Vector3.new(0.2, 0.927, 0.655),CFrame.new(-12.4381819, 2.37272429, 34.2791138, 1, 0, 0, 0, 1, 0, 0, 0, 1),clawe1,"Handle",Vector3.new(0.455, 1, 1),"Block","Brick",false,nil,0,nil,"Custom")
  103. c1b1 = Add.part("White",Vector3.new(0.2, 0.764, 0.2),CFrame.new(-12.5654516, 3.03635716, 34.1518364, 1, 0, 0, 0, 1, 0, 0, 0, 1),clawe1,"Blade",Vector3.new(0.273, 1, 0.909),"Block","Brick",false,nil,0,nil,"Custom")
  104. c1b2 = Add.part("White",Vector3.new(0.2, 0.764, 0.2),CFrame.new(-12.5654554, 3.03637242, 34.4063873, 1, 0, 0, 0, 1, 0, 0, 0, 1),clawe1,"Blade",Vector3.new(0.273, 1, 0.909),"Block","Brick",false,nil,0,nil,"Custom")
  105. c1b3 = Add.part("White",Vector3.new(1, 1.2, 1),CFrame.new(-12.5644522, 3.47271276, 34.1471367, 1, 0, 8.74227766e-008, 0, 1, 0, -8.74227766e-008, 0, 1),clawe1,"Blade",Vector3.new(0.041, 0.091, 0.183),"Block","Wedge",false,nil,0,nil,"Brick")
  106. c1b4 = Add.part("White",Vector3.new(1, 1.2, 1),CFrame.new(-12.5663671, 3.47272801, 34.4068413, -1, 0, -4.37113883e-008, 0, 1, 0, 4.37113883e-008, 0, -1),clawe1,"Blade",Vector3.new(0.041, 0.091, 0.183),"Block","Wedge",false,nil,0,nil,"Brick")
  107. c1ca1 = Add.part("Royal purple",Vector3.new(0.2, 1.2, 0.2),CFrame.new(-12.7645464, 2.82196593, 34.1602974, 1, 0, 0, 0, 1, 0, 0, 0, 1),clawe1,"Canun",Vector3.new(1, 1, 1),"Block","Head",false,nil,1,nil,"Custom")
  108. c1ca2 = Add.part("Royal purple",Vector3.new(0.2, 1.2, 0.2),CFrame.new(-12.7645464, 2.80196548, 34.4103012, 1, 0, 0, 0, 1, 0, 0, 0, 1),clawe1,"Canun",Vector3.new(1, 1, 1),"Block","Head",false,nil,1,nil,"Custom")
  109. c1lever = Add.part("Royal purple",Vector3.new(0.2, 0.745, 0.673),CFrame.new(-12.5472708, 2.3363626, 34.2700233, 1, 0, 0, 0, 1, 0, 0, 0, 1),clawe1,"lever",Vector3.new(0.455, 1, 1),"Block","Brick",false,nil,1,nil,"Custom")
  110. c1p1 = Add.part("Really black",Vector3.new(1, 1.2, 1),CFrame.new(-12.6472731, 2.91817832, 34.0609283, 1, 0, 0, 0, 1, 0, 0, 0, 1),clawe1,"Part",Vector3.new(0.109, 0.136, 0.436),"Block","Wedge",false,nil,0,nil,"Brick")
  111. c1p2 = Add.part("Really black",Vector3.new(0.2, 0.2, 0.855),CFrame.new(-12.4927244, 1.89999163, 34.2882042, 1, 0, 0, 0, 1, 0, 0, 0, 1),clawe1,"Part",Vector3.new(1, 0.091, 1),"Block","Brick",false,nil,0,nil,"Custom")
  112. c1p3 = Add.part("Really black",Vector3.new(0.2, 0.927, 0.2),CFrame.new(-12.4927244, 2.37272429, 34.6609306, 1, 0, 0, 0, 1, 0, 0, 0, 1),clawe1,"Part",Vector3.new(1, 1, 0.545),"Block","Brick",false,nil,0,nil,"Custom")
  113. c1p4 = Add.part("Really black",Vector3.new(0.873, 0.2, 0.945),CFrame.new(-12.6472731, 2.36364532, 34.2791138, 0, -1, 0, 0, 0, 1, -1, 0, -4.37113883e-008),clawe1,"Part",Vector3.new(1, 0.545, 1),"Block","Brick",false,nil,0,nil,"Custom")
  114. c1p5 = Add.part("Really black",Vector3.new(0.2, 0.2, 0.873),CFrame.new(-12.7745466, 2.45455527, 34.27911, 1, -2.38402421e-007, 1.03647017e-012, 2.38402407e-007, 1, 1.82780425e-007, -1.08004545e-012, -1.82780425e-007, 1),clawe1,"Part",Vector3.new(0.727, 0.727, 1),"Block","Brick",false,nil,0,nil,"Custom")
  115. c1p6 = Add.part("Really black",Vector3.new(1, 1.2, 1),CFrame.new(-12.6472731, 2.91817832, 34.4972954, -1, 4.37113918e-008, -4.37113883e-008, 4.37113918e-008, 1, -4.37113847e-008, 4.37113883e-008, -4.37113883e-008, -1),clawe1,"Part",Vector3.new(0.109, 0.136, 0.436),"Block","Wedge",false,nil,0,nil,"Brick")
  116. c1p7 = Add.part("Really black",Vector3.new(1, 1.2, 1),CFrame.new(-12.7745466, 2.13636565, 34.2791138, 0, -0.999999702, 0, 4.37113727e-007, 0, 0.999999821, -0.999999762, 0, -4.80825236e-007),clawe1,"Part",Vector3.new(0.873, 0.121, 0.491),"Block","Wedge",false,nil,0,nil,"Brick")
  117. c1p8 = Add.part("Really black",Vector3.new(1, 1.2, 1),CFrame.new(-12.7745466, 2.68181968, 34.27911, -7.72206249e-007, -2.14576653e-006, 1, -3.71878684e-007, 1, 2.1457663e-006, -1, -3.71877036e-007, -7.72207045e-007),clawe1,"Part",Vector3.new(0.873, 0.258, 0.145),"Block","Wedge",false,nil,0,nil,"Brick")
  118. c1p9 = Add.part("Really black",Vector3.new(0.2, 0.945, 0.2),CFrame.new(-12.4927282, 2.36364532, 33.8972931, 1, 0, 0, 0, 1, 0, 0, 0, 1),clawe1,"Part",Vector3.new(1, 1, 0.545),"Block","Brick",false,nil,0,nil,"Custom")
  119.  
  120. local clawsound1=Add.ingay("http://www.roblox.com/asset?id=92597369",c1b4,false,false)
  121. --c2--
  122. c2handle = Add.part("Really black",Vector3.new(0.2, 0.927, 0.655),CFrame.new(-9.7954483, 2.32275319, 34.3390808, -1, 0, -7.1055146e-015, 0, 1, 0, 7.1055146e-015, 0, -1),clawe2,"Handle",Vector3.new(0.455, 1, 1),"Block","Brick",false,nil,0,nil,"Custom")
  123. c2b1 = Add.part("White",Vector3.new(0.2, 1.013, 0.2),CFrame.new(-9.66817856, 3.11092854, 34.3390808, -1, 0, -7.1055146e-015, 0, 1, 0, 7.1055146e-015, 0, -1),clawe2,"Blade",Vector3.new(0.273, 1, 0.909),"Block","Brick",false,nil,0,nil,"Custom")
  124. c2b2 = Add.part("White",Vector3.new(1, 1.2, 1),CFrame.new(-9.66726875, 3.67092466, 34.292717, 1, 0, 4.37114167e-008, 0, 1, 0, -4.37114167e-008, 0, 1),clawe2,"Blade",Vector3.new(0.055, 0.091, 0.0911),"Block","Wedge",false,nil,0,nil,"Brick")
  125. c2b3 = Add.part("White",Vector3.new(1, 1.2, 1),CFrame.new(-9.66918182, 3.67274046, 34.3833237, -0.99999702, 0, -8.74225989e-008, 0, 1, 0, 8.74225989e-008, 0, -0.99999702),clawe2,"Blade",Vector3.new(0.055, 0.091, 0.091),"Block","Wedge",false,nil,0,nil,"Brick")
  126. c2sb1 = Add.part("Really black",Vector3.new(0.2, 1.41, 0.83),CFrame.new(-9.70180893, 3.49774122, 34.3261185, 1, 0, 0, 0, 1, 0, 0, 0, 1),clawe2,"SB",Vector3.new(1,1,1),"Block","Brick",false,nil,1,nil,"Custom")
  127. c2sb2 = Add.part("Really black",Vector3.new(1, 1.2, 1),CFrame.new(-9.70853043, 4.51036358, 34.5233459, -1, 0, -4.37113883e-008, 0, 1, 0, 4.37113883e-008, 0, -1),clawe2,"SB",Vector3.new(0.2, 0.5, 0.4),"Block","Wedge",false,nil,1,"WedgePart","Brick")
  128. c2sb3 = Add.part("Really black",Vector3.new(1, 1.2, 1),CFrame.new(-9.7048893, 4.51274014, 34.1274414, 1, 0, 0, 0, 1, 0, 0, 0, 1),clawe2,"SB",Vector3.new(0.2, 0.5, 0.4),"Block","Wedge",false,nil,1,"WedgePart","Brick")
  129. lever = Add.part("Royal purple",Vector3.new(0.2, 0.745, 0.673),CFrame.new(-9.68636131, 2.28637624, 34.3481712, -1, 0, -7.1055146e-015, 0, 1, 0, 7.1055146e-015, 0, -1),clawe2,"lever",Vector3.new(0.455, 1, 1),"Block","Brick",false,nil,1,nil,"Custom")
  130. c2p1 = Add.part("Really black",Vector3.new(0.2, 0.2, 0.873),CFrame.new(-9.45909119, 2.40457082, 34.3390808, -1, 2.38408433e-007, 2.71453278e-008, 2.38408433e-007, 1, 1.82775864e-007, -2.71452834e-008, 1.82775864e-007, -1),clawe2,"Part",Vector3.new(0.727, 0.727, 1),"Block","Brick",false,nil,0,nil,"Custom")
  131. c2p2 = Add.part("Institutional white",Vector3.new(0.2, 0.2, 0.764),CFrame.new(-9.3909111, 2.41366506, 34.3572655, 1, 0, 7.1055146e-015, 0, 1, 0, -7.1055146e-015, 0, 1),clawe2,"Part",Vector3.new(0.091, 0.273, 1),"Block","Brick",false,nil,0,nil,"Custom")
  132. c2p3 = Add.part("Really black",Vector3.new(0.873, 0.2, 0.945),CFrame.new(-9.58636189, 2.31365895, 34.3390808, 7.1055146e-015, 1, 0, 0, 0, 1, 1, -7.1055146e-015, 0),clawe2,"Part",Vector3.new(1, 0.545, 1),"Block","Brick",false,nil,0,nil,"Custom")
  133. c2p4 = Add.part("Really black",Vector3.new(1, 1.2, 1),CFrame.new(-9.45909119, 2.08638024, 34.3390808, 7.1055146e-015, 1, -3.10599535e-021, 4.37124612e-007, 0, 1, 1, -7.1055146e-015, -4.37124612e-007),clawe2,"Part",Vector3.new(0.873, 0.121, 0.491),"Block","Wedge",false,nil,0,nil,"Brick")
  134. c2p5 = Add.part("Really black",Vector3.new(1, 1.2, 1),CFrame.new(-9.45909119, 2.63183379, 34.3390808, 7.74864588e-007, 2.08611937e-006, -1, -3.2619127e-007, 1, 2.08611914e-006, 1, 3.2618965e-007, 7.74865271e-007),clawe2,"Part",Vector3.new(0.873, 0.258, 0.145),"Block","Wedge",false,nil,0,nil,"Brick")
  135. c2p6 = Add.part("Really black",Vector3.new(0.2, 0.945, 0.2),CFrame.new(-9.7409029, 2.31365895, 34.72089, -1, 0, -7.1055146e-015, 0, 1, 0, 7.1055146e-015, 0, -1),clawe2,"Part",Vector3.new(1, 1, 0.545),"Block","Brick",false,nil,0,nil,"Custom")
  136. c2p7 = Add.part("Really black",Vector3.new(0.2, 0.2, 0.855),CFrame.new(-9.7409029, 1.85000658, 34.3299866, -1, 0, -7.1055146e-015, 0, 1, 0, 7.1055146e-015, 0, -1),clawe2,"Part",Vector3.new(1, 0.091, 1),"Block","Brick",false,nil,0,nil,"Custom")
  137. c2p8 = Add.part("Really black",Vector3.new(0.2, 0.927, 0.2),CFrame.new(-9.7409029, 2.32275319, 33.9572754, -1, 0, -7.1055146e-015, 0, 1, 0, 7.1055146e-015, 0, -1),clawe2,"Part",Vector3.new(1, 1, 0.545),"Block","Brick",false,nil,0,nil,"Custom")
  138. c2p9 = Add.part("Really black",Vector3.new(1, 1.2, 1),CFrame.new(-9.58636189, 2.8681922, 34.5572586, -1, 0, -7.1055146e-015, 0, 1, 0, 7.1055146e-015, 0, -1),clawe2,"Part",Vector3.new(0.109, 0.136, 0.436),"Block","Wedge",false,nil,0,nil,"Brick")
  139. c2p10 = Add.part("Really black",Vector3.new(1, 1.2, 1),CFrame.new(-9.58636189, 2.8681922, 34.1209106, 1, -4.37124683e-008, 5.96046661e-008, 4.37124719e-008, 1, -4.37103118e-008, -5.9604659e-008, 4.37103154e-008, 1),clawe2,"Part",Vector3.new(0.109, 0.136, 0.436),"Block","Wedge",false,nil,0,nil,"Brick")
  140.  
  141. local clawsound2 = Add.ingay("http://www.roblox.com/asset?id=92597369",c2b3,false,false)
  142. stuf = clawe1:GetChildren()
  143. for i = 1, #stuf do
  144. if stuf[i].Name == "Blade" then
  145. weld = Instance.new("Weld", clawe1.lever)
  146. weld.Part0 = clawe1.lever
  147. weld.Part1= stuf[i]
  148. weld.C0 = clawe1.lever.CFrame:toObjectSpace(stuf[i].CFrame)
  149. stuf[i].Anchored = false
  150. end
  151. end
  152. for i = 1, #stuf do
  153. if stuf[i].Name ~= "Handle" and stuf[i].ClassName ~= "Script" and stuf[i].Name ~= "Blade" then
  154. weld = Instance.new("Weld", clawe1.Handle)
  155. weld.Part0 = clawe1.Handle
  156. weld.Part1= stuf[i]
  157. weld.C0 = clawe1.Handle.CFrame:toObjectSpace(stuf[i].CFrame)
  158. if stuf[i].Name == "lever" then
  159. weld.Name = "Main"
  160. elseif stuf[i].Name == "Canun" then
  161. weld.Name = "CWeld"
  162. end
  163. stuf[i].Anchored = false
  164. end
  165. end
  166. clawe1.Handle.Anchored = false
  167. stuf = clawe2:GetChildren()
  168. for i = 1, #stuf do
  169. if stuf[i].Name == "Blade" then
  170. weld = Instance.new("Weld", clawe2.lever)
  171. weld.Part0 = clawe2.lever
  172. weld.Part1= stuf[i]
  173. weld.C0 = clawe2.lever.CFrame:toObjectSpace(stuf[i].CFrame)
  174. stuf[i].Anchored = false
  175. end
  176. end
  177. for i = 1, #stuf do
  178. if stuf[i].Name ~= "Handle" and stuf[i].ClassName ~= "Script" and stuf[i].Name ~= "Blade" then
  179. weld = Instance.new("Weld", clawe2.Handle)
  180. weld.Part0 = clawe2.Handle
  181. weld.Part1= stuf[i]
  182. weld.C0 = clawe2.Handle.CFrame:toObjectSpace(stuf[i].CFrame)
  183. if stuf[i].Name == "lever" then
  184. weld.Name = "Main"
  185. elseif stuf[i].Name == "SB" then
  186. weld.Name = "SBweld"
  187. end
  188. stuf[i].Anchored = false
  189. end
  190. end
  191. clawe2.Handle.Anchored = false
  192. --end--
  193. claw1 = clawe1
  194. claw2 = clawe2
  195. c1b4.Name = "BladeT"
  196. c2b3.Name = "BladeT"
  197. claw1.Parent = char;claw2.Parent = char;
  198. mainweld1c = claw1.Handle.Main.C0
  199. mainweld2c = claw2.Handle.Main.C0
  200. function resetedges()
  201. lastpoint1 = claw1.BladeT.CFrame.p;lastpoint2 = claw2.BladeT.CFrame.p;
  202. end
  203. function stable(rw,lw)
  204. rw.C1 = CFrame.new(0,0.5,0)
  205. lw.C1 = CFrame.new(0,0.5,0)
  206. end
  207. attacks = {
  208. function(mouse)
  209. anim = true
  210. gotDamage1 = true
  211. lastpoint1=claw1.BladeT.CFrame.p;lastpoint2=claw2.BladeT.CFrame.p
  212. claw1.BladeT.Sound:Play()
  213. for i = 0, 1, 0.5 do
  214. lineEffect(claw1.BladeT,lastpoint1)
  215. rw.C0 = CFrame.new(1.5, 0.5, 0)*CFrame.Angles(math.rad(0),0,math.rad(40*i))
  216. lw.C0 = CFrame.new(-1.5, 0.5, 0)*CFrame.Angles(math.rad(0),0,math.rad(-35*i))
  217. nw.C0 = CFrame.new(0, 1.5, 0)*CFrame.Angles(0,math.rad(-40*i),0)
  218. stable(rw,lw)
  219. hrpw.C0 = co*CFrame.Angles(0,0,math.rad(50*i))
  220. wait()
  221. end
  222. for i = 0, 1, 0.5 do
  223. lineEffect(claw1.BladeT,lastpoint1)
  224. rw.C0 = CFrame.new(1.5, 0.5, 0)*CFrame.Angles(math.rad(0),0,math.rad(50+40*i))
  225. lw.C0 = CFrame.new(-1.5, 0.5, 0)*CFrame.Angles(math.rad(0),0,math.rad(-35))
  226. nw.C0 = CFrame.new(0, 1.5, 0)*CFrame.Angles(0,math.rad(-40-30*i),0)
  227. stable(rw,lw)
  228. hrpw.C0 = co*CFrame.Angles(0,0,math.rad(50+40*i))
  229. wait()
  230. end
  231. wait(0.15)
  232. for i = 0, 1, 0.2 do
  233. rw.C0 = CFrame.new(1.5, 0.5, 0)*CFrame.Angles(math.rad(0),0,math.rad(90-90*i))
  234. lw.C0 = CFrame.new(-1.5, 0.5, 0)*CFrame.Angles(math.rad(0),0,math.rad(-35+35*i))
  235. nw.C0 = CFrame.new(0, 1.5, 0)*CFrame.Angles(0,math.rad(-70+70*i),0)
  236. stable(rw,lw)
  237. hrpw.C0 = co*CFrame.Angles(0,0,math.rad(90-90*i))
  238. wait()
  239. end
  240. gotDamage1 = false
  241. anim = false
  242. end,
  243. ----------------------------
  244. function(mouse)
  245. anim = true
  246. claw2.BladeT.Sound.Pitch = .6
  247. claw2.BladeT.Sound:Play()
  248.  
  249. for i = 0, 1, 0.1 do
  250. rw.C0 = CFrame.new(1.5, 0.5, 0)*CFrame.Angles(math.rad(0),0,math.rad(35*i))
  251. lw.C0 = CFrame.new(-1.5, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(45*i),math.rad(-35*i))
  252. nw.C0 = CFrame.new(0, 1.5, 0)*CFrame.Angles(0,math.rad(-30*i),0)
  253. stable(rw,lw)
  254. hrpw.C0 = co*CFrame.Angles(0,0,math.rad(50*i))
  255. wait()
  256. end
  257. wait(0.15)
  258. resetedges()
  259. gotDamage2 = true
  260. for i = 0, 1, 0.2 do
  261. rw.C0 = CFrame.new(1.5, 0.5, 0)*CFrame.Angles(math.rad(0),0,math.rad(35))
  262. lw.C0 = CFrame.new(-1.5, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(45-195*i),math.rad(-35-60*i))
  263. nw.C0 = CFrame.new(0, 1.5, 0)*CFrame.Angles(0,math.rad(-30+100*i),0)
  264. stable(rw,lw)
  265. hrpw.C0 = co*CFrame.Angles(0,0,math.rad(50-140*i))
  266. lineEffect(claw2.BladeT,lastpoint2)
  267. wait()
  268. end
  269. wait(0.15)
  270. gotDamage2 = false
  271. for i = 0, 1, 0.1 do
  272. rw.C0 = CFrame.new(1.5, 0.5, 0)*CFrame.Angles(math.rad(0),0,math.rad(35-35*i))
  273. lw.C0 = CFrame.new(-1.5, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(-150+150*i),math.rad(-95+95*i))
  274. nw.C0 = CFrame.new(0, 1.5, 0)*CFrame.Angles(0,math.rad(70-70*i),0)
  275. stable(rw,lw)
  276. hrpw.C0 = co*CFrame.Angles(0,0,math.rad(-90+90*i))
  277. wait()
  278. end
  279. anim = false
  280. end,
  281. --------------------------
  282. function(mouse)
  283. local Orig = t.CFrame
  284. local bp = Add.BP(t)
  285. bp.position = Orig.p
  286. lookingCF = head.CFrame.lookVector*3-Vector3.new(0,1.5,0)
  287. bp.position = t.CFrame.p
  288. anim = true
  289. claw2.BladeT.Sound.Pitch = .7
  290. claw2.BladeT.Sound:Play()
  291. wait()
  292. claw1.BladeT.Sound.Pitch = .8
  293. claw1.BladeT.Sound:Play()
  294. for i = 0, 1, 0.1 do
  295. rw.C0 = CFrame.new(1.5, 0.5, 0)*CFrame.Angles(math.rad(25*i),0,math.rad(-25*i))
  296. lw.C0 = CFrame.new(-1.5, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(-150*i),math.rad(-85*i))
  297. nw.C0 = CFrame.new(0, 1.5, 0)*CFrame.Angles(0,math.rad(-50*i),0)
  298. bp.position = t.CFrame.p+lookingCF
  299. stable(rw,lw)
  300. hrpw.C0 = co*CFrame.Angles(0,0,math.rad(-50*i))
  301. wait()
  302. end
  303. wait(0.15)
  304. resetedges()
  305. gotDamage2 = true
  306. gotDamage1 = true
  307. for i = 0, 1, 0.2 do
  308. rw.C0 = CFrame.new(1.5, 0.5, 0)*CFrame.Angles(math.rad(25-25*i),0,math.rad(-25+115*i))
  309. lw.C0 = CFrame.new(-1.5, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(-150+150*i),math.rad(-85-5*i))
  310. nw.C0 = CFrame.new(0, 1.5, 0)*CFrame.Angles(0,math.rad(-50+140*i),0)
  311. bp.position = t.CFrame.p+lookingCF
  312. stable(rw,lw)
  313. hrpw.C0 = co*CFrame.Angles(0,0,math.rad(-50+230*i))
  314. lineEffect(claw2.BladeT,lastpoint2);lineEffect(claw1.BladeT,lastpoint1);
  315. wait()
  316. end
  317. wait(0.15)
  318. gotDamage1 = false
  319. gotDamage2 = false
  320. for i = 0, 1, 0.1 do
  321. rw.C0 = CFrame.new(1.5, 0.5, 0)*CFrame.Angles(math.rad(0),0,math.rad(35-35*i))
  322. lw.C0 = CFrame.new(-1.5, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(-90+90*i))
  323. nw.C0 = CFrame.new(0, 1.5, 0)*CFrame.Angles(0,math.rad(90-90*i),0)
  324. bp.position = t.CFrame.p+lookingCF
  325. stable(rw,lw)
  326. hrpw.C0 = co*CFrame.Angles(0,0,math.rad(180-180*i))
  327. wait()
  328. end
  329. anim = false
  330. bp.Parent = nil
  331. end
  332. }
  333. function checkdel(item,name)
  334. local lol = item:GetChildren();
  335. for i = 1, #lol do
  336. if lol[i].ClassName == name then
  337. lol[i].Parent = nil
  338. end;end;end;
  339.  
  340. function blaka(clun,jojo,thin)
  341. local erm = clun:GetChildren()
  342. for i = 1, #erm do
  343. if erm[i] then
  344. checkdel(erm[i],"Decal")
  345. if erm[i].ClassName == "Part" or erm[i].ClassName == "WedgePart" then
  346. erm[i].CanCollide = false
  347. erm[i].Anchored = true
  348. erm[i].BrickColor = BrickColor.new(color1)
  349. erm[i].Transparency = 0.5
  350. if jojo and erm[i].Name ~= "Torso" then
  351. erm[i].Anchored = false
  352. weldIt(thin.Torso,erm[i],thin.Torso.CFrame:toObjectSpace(erm[i].CFrame),nil,erm[i])
  353. end
  354. erm[i].Parent = clun
  355. if erm[i].Name == "Boost" or erm[i].Name == "Wind" or erm[i].Name == "Bul" then
  356. erm[i].Parent = nil
  357. end
  358. elseif erm[i].ClassName == "Model" then
  359. blaka(erm[i],jojo,thin)
  360. elseif erm[i].ClassName == "Hat" then
  361. erm[i].Handle.Anchored = true
  362. erm[i].Handle.Mesh.TextureId = ""
  363. erm[i].Handle.BrickColor =BrickColor.new(color1)
  364. erm[i].Handle.Transparency = 0.5
  365. if jojo then
  366. erm[i].Handle.Anchored = false
  367. weldIt(thin.Torso,erm[i].Handle,thin.Torso.CFrame:toObjectSpace(erm[i].Handle.CFrame),nil,erm[i])
  368. end
  369. erm[i].Handle.Parent = clun
  370. erm[i].Parent = nil
  371. else
  372. erm[i].Parent = nil
  373. end
  374. end
  375. end
  376. end
  377. function derpall(place,item)
  378. local yomam = item:GetChildren()
  379. for i = 1, #yomam do
  380. yomam[i].Parent = place
  381. end
  382. item.Parent = nil
  383. end
  384. function darkclone(jojo)
  385. clon = char:Clone()
  386. clon.Torso.CFrame = t.CFrame
  387. derpall(clon,clon.Claw1);derpall(clon,clon.Claw2);
  388. blaka(clon,jojo,clon)
  389. if jojo then
  390. clon.Torso.Anchored = false
  391. end
  392. clon.Parent = claw1
  393. clon.Archivable = false
  394. return clon
  395. end
  396. function dispear()
  397.  
  398. end
  399. function setfoot(x)
  400. if x then
  401. rh.Parent = nil;lh.Parent = nil;rlw = weldIt(t,rl, CFrame.new(0.5,-1.5,0),nil);llw = weldIt(t,ll, CFrame.new(-0.5,-1.5,0),nil);
  402. else
  403. rh.Parent = t;lh.Parent=t;rlw.Parent=nil;llw.Parent=nil
  404. end
  405. end
  406. skills = {
  407. function()
  408. if mana >= 60 and not anim and ready then
  409. mana = mana-60
  410. updateGui()
  411. anim = true
  412. rh.Parent = nil;lh.Parent = nil;
  413. rlw = weldIt(t,rl, CFrame.new(0.5,-1.5,0),nil);llw = weldIt(t,ll, CFrame.new(-0.5,-1.5,0),nil);
  414. for i = 0, 1, 0.2 do
  415. if ready then
  416. rw.C0 = CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(-35*i),0,math.rad(25*i))
  417. lw.C0 = CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(-35*i),0,math.rad(-25*i))
  418. rlw.C0 = CFrame.new(0.5,-1.5,0)*CFrame.Angles(math.rad(-45*i),0,0)
  419. llw.C0 = CFrame.new(-0.5,-1.5,0.25*i)*CFrame.Angles(math.rad(-15*i),0,0)
  420. stable(rw,lw)
  421. wait()
  422. else
  423. break
  424. end
  425. end
  426. wait(0.5)
  427. local clon = darkclone()
  428. local bul = Add.part(color1,Vector3.new(5.85, 5.85, 5.85),clon.Torso.CFrame,char,"Bul",Vector3.new(1,1,1),"Ball","Sphere",false,nil,0)
  429. bul.CFrame = clon.Torso.CFrame
  430. coroutine.resume(coroutine.create(function(ball)
  431. for i = 0,1,0.05 do
  432. ball.Mesh.Scale = Vector3.new(1+0.75*i,1+0.75*i,1+0.75*i)
  433. ball.Transparency = 0.75*i
  434. wait()
  435. end
  436. ball.Parent = nil
  437. end),bul)
  438. rh.Parent = t;lh.Parent=t;rlw.Parent = nil;llw.Parent = nil
  439. humanoid.Jump = false
  440. bp = Add.BP(t)
  441. origcf = t.CFrame
  442. lookingCF = head.CFrame.lookVector*20-Vector3.new(0,1.5,0)
  443. gotDamage1 = true;gotDamage2 = true
  444. resetedges()
  445. for i = 0, 1, 0.2 do
  446. if ready then
  447. lineEffect(claw1.BladeT,lastpoint1);lineEffect(claw2.BladeT,lastpoint2)
  448. rw.C0 = CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(-35+35*i),math.rad(120*i),math.rad(25+65*i))
  449. lw.C0 = CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(-35+35*i),math.rad(-120*i),math.rad(-25-65*i))
  450. stable(rw,lw)
  451. bp.position = t.CFrame.p+lookingCF
  452. wait()
  453. else
  454. break
  455. end
  456. end
  457. gotDamage1 = false;gotDamage2 = false;clickagain = false
  458. for i = 1, 10 do
  459. if not clickagain then
  460. wait(0.15)
  461. else
  462. break
  463. end
  464. end
  465. bp.Parent = nil
  466. clon.Parent = nil
  467. if clickagain then
  468. rh.Parent = nil;lh.Parent = nil;
  469. rlw = weldIt(t,rl, CFrame.new(0.5,-1.5,0),nil);llw = weldIt(t,ll, CFrame.new(-0.5,-1.5,0),nil);
  470. rlw.C0 = CFrame.new(1,-1.5,-0.5)*CFrame.Angles(math.rad(30),0,math.rad(25));llw.C0 = CFrame.new(-1,-1.5,-0.5)*CFrame.Angles(math.rad(30),0,math.rad(-25))
  471. rw.C0 = CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(45),math.rad(0),math.rad(25))
  472. lw.C0 = CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(45),math.rad(0),math.rad(-25))
  473. stable(rw,lw)
  474. clon = darkclone()
  475. local bul = Add.part(color1,Vector3.new(5.85, 5.85, 5.85),clon.Torso.CFrame,char,"Bul",Vector3.new(1,1,1),"Ball","Sphere",false,nil,0)
  476. bul.CFrame = clon.Torso.CFrame
  477. coroutine.resume(coroutine.create(function(ball)
  478. for i = 0,1,0.05 do
  479. ball.Mesh.Scale = Vector3.new(1+0.75*i,1+0.75*i,1+0.75*i)
  480. ball.Transparency = 1*i
  481. wait()
  482. end
  483. ball.Parent = nil
  484. end),bul)
  485. chargeso = Add.ingay("http://www.roblox.com/asset?id=153613030",clon["Torso"],false,false)
  486. chargeso:Play()
  487. rh.Parent=t;lh.Parent=t;rlw.Parent = nil;llw.Parent = nil
  488. t.CFrame = origcf
  489. game:GetService("Debris"):AddItem(clon,1.5)
  490. end
  491. rw.C0 = CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0))
  492. lw.C0 = CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0))
  493. stable(rw,lw)
  494. wait()
  495. anim = false
  496. end
  497. end,
  498. --darkspin--
  499. function()
  500. if not anim and ready then
  501. anim = true;
  502. if not shadowblade and mana >= 80 then
  503. mana = mana-80
  504. updateGui()
  505. bg = Add.BG(t)
  506. pos = Vector3.new(t.Position)
  507. bv = Add.BV(t,pos+Vector3.new(0,70,0))
  508. gotDamage1 = true;gotDamage2 = true;
  509. resetedges()
  510. CF = t.CFrame
  511. chargeso1 = Add.ingay("http://www.roblox.com/asset?id=130839563",t,false,true)
  512. chargeso1:Play()
  513. for i = 0, 1, 0.05 do
  514. lineEffect(claw1.BladeT,lastpoint1);lineEffect(claw2.BladeT,lastpoint2)
  515. rw.C0 = CFrame.new(1.5,0.5,0)*CFrame.Angles(0,0,math.rad(150*i))
  516. lw.C0 = CFrame.new(-1.5,0.5,0)*CFrame.Angles(0,0,math.rad(-150*i))
  517. stable(rw,lw)
  518. CF2 = t.CFrame * CFrame.Angles(0, math.rad(210*i), 0)
  519. bg.cframe = CF2
  520. wait(0.001)
  521. end
  522. gotDamage1 = false;gotDamage2 = false;bg.Parent=nil;bv.Parent = nil;
  523. noimpact = false
  524. tframe = t.CFrame
  525. while not noimpact do
  526. if (t.CFrame.p-tframe.p).magnitude >=4 then
  527. clon = darkclone()
  528. coroutine.resume(coroutine.create(function(clone)
  529. wait(0.25)
  530. clone.Parent = nil
  531. end),clon)
  532.  
  533. end
  534. chargeso1:Stop();chargeso1.Parent = nil
  535. chargeso = Add.ingay("http://www.roblox.com/asset?id=134854740",bul2,false,false)
  536. tframe = t.CFrame
  537. wait()
  538. end
  539. impact2 = impact
  540. bule = Add.part(color1,Vector3.new(35.85, 2, 35.85),CFrame.new(t.Position.X,impact2.Position.Y+1,t.Position.Z),Workspace,"Shake",Vector3.new(0,0.1,0),"Block","Sphere",false,nil,0)
  541. bule.CFrame = CFrame.new(t.Position.X,impact2.Position.Y+impact2.Size.Y/2,t.Position.Z)
  542. bule2 = Add.part(color1,Vector3.new(35.85, 2, 35.85),CFrame.new(t.Position.X,impact2.Position.Y+1,t.Position.Z),Workspace,"Shake2",Vector3.new(0,1,0),"Block","FileMesh",false,"http://www.roblox.com/asset/?id=20329976",0)
  543. bule2.CFrame = bule.CFrame
  544. bul = Add.part(color1,Vector3.new(5.85, 5.85, 5.85),bule.CFrame,Workspace,"Bul",Vector3.new(1,1,1),"Ball","Sphere",false,nil,0)
  545. bul.CFrame = bule.CFrame
  546. bul2 = Add.part(mainColor,Vector3.new(5.5, 5.5, 5.5),bule.CFrame,Workspace,"Bul",Vector3.new(1,1,1),"Ball","Sphere",false,nil,0)
  547. bul2.CFrame = bule.CFrame
  548.  
  549. coroutine.resume(coroutine.create(function(p1,p2,p3,p4)
  550. for i = 0,1,0.05 do
  551. p1.Mesh.Scale = Vector3.new(1.45*i, 0.1, 1.45*i)
  552. p1.Transparency = 0.5*i
  553. p2.Mesh.Scale = Vector3.new(12.6*i, 1, 12.6*i)
  554. p2.Transparency = 0.5*i
  555. p3.Mesh.Scale = Vector3.new(5*i, 5*i, 5*i)
  556. p3.Transparency = 0.5*i
  557. p4.Mesh.Scale = Vector3.new(5*i, 5*i, 5*i)
  558. p4.Transparency = 0.5*i
  559. wait()
  560. end
  561. wait()
  562. p1.Parent=nil;p2.Parent=nil;p3.Parent=nil;p4.Parent=nil
  563. end),bule,bule2,bul,bul2)
  564.  
  565. chargeso = Add.ingay("http://www.roblox.com/asset?id=142070127",bul2,false,false)
  566. chargeso:Play()
  567. distanceDamage(bule,20,Damage*1.2)
  568. bp = Add.BP(t)
  569. poss = Vector3.new(t.Position.X,impact2.Position.Y+1.5,t.Position.Z)
  570. bp.position = poss
  571. rh.Parent = nil;lh.Parent = nil;rlw = weldIt(t,rl, CFrame.new(0.5,-1.5,0),nil);llw = weldIt(t,ll, CFrame.new(-0.5,-1.5,0),nil);
  572.  
  573. for i = 0, 1, 0.2 do
  574. rw.C0 = CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(-45*i),0,math.rad(150-120*i))
  575. lw.C0 = CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(-45*i),0,math.rad(-150+120*i))
  576. rlw.C0 = CFrame.new(0.5,-1.5+.1*i,-0.1*i)*CFrame.Angles(math.rad(-45*i),0,0)
  577. llw.C0 = CFrame.new(-0.5,-1.5,0.25*i)*CFrame.Angles(math.rad(-15*i),0,0)
  578. stable(rw,lw)
  579. bp.position = poss
  580. wait(0.001)
  581. end
  582. wait(1)
  583. for i = 0, 1, 0.2 do
  584. rw.C0 = CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(-45+45*i),0,math.rad(30-30*i))
  585. lw.C0 = CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(-45+45*i),0,math.rad(-30+30*i))
  586. rlw.C0 = CFrame.new(0.5,-1.4-.1*i,-0.1+0.1*i)*CFrame.Angles(math.rad(-45+45*i),0,0)
  587. llw.C0 = CFrame.new(-0.5,-1.5,0.25-0.25*i)*CFrame.Angles(math.rad(-15+15*i),0,0)
  588. bp.position = poss
  589. stable(rw,lw)
  590. wait(0.001)
  591. end
  592. rh.Parent = t;lh.Parent=t;rlw.Parent = nil;llw.Parent = nil;bp.Parent = nil
  593. elseif shadowblade and mana >= 140 then--shadowstrike
  594. pur = Add.part(color1,Vector3.new(1,1,1),t.CFrame-Vector3.new(0,1.75,0)*CFrame.Angles(math.rad(90),math.rad(90),0),claw2,"Ring",Vector3.new(5,5,0.1),"Block","FileMesh",false,"http://www.roblox.com/asset/?id=3270017",0.1)
  595. pur.Archivable = false;lastman=nil;
  596. setfoot(true)
  597. origt = t.CFrame;yoplayers={};lines={};
  598. rlw =rlw;llw =llw--no time to explain c:
  599. for i = 0,1,0.05 do
  600. pur.Mesh.Scale = Vector3.new(5+30*i,5+30*i,5+30*i)
  601. pur.Transparency = 0.1+0.8*i
  602. hrpw.C0 = (co-Vector3.new(0,0.5*i,0))*CFrame.Angles(math.rad(25*i),0,0)
  603. rw.C0 = CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(-40*i),math.rad(10*i),math.rad(30*i))
  604. lw.C0 = CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(-40*i),math.rad(-10*i),math.rad(-30*i))
  605. rlw.C0 = CFrame.new(0.5,-1.5+.5*i,0-0.15*i)*CFrame.Angles(math.rad(10*i),0,0)
  606. llw.C0 = CFrame.new(-0.5,-1.5+0.2*i,0+0.1*i)*CFrame.Angles(math.rad(-25*i),0,0)
  607. wait()
  608. end
  609. pur.Parent = nil;clun = darkclone()
  610. eyx = t.Position
  611. ws = humanoid.WalkSpeed
  612. shadowr = true
  613. for i = 1, 7 do
  614. yoto = checkdist(lastman,yoplayers)
  615. if yoto then
  616. humanoid.WalkSpeed = 0
  617. mana = mana-20
  618. updateGui()
  619. yoto.Humanoid.Health = yoto.Humanoid.Health-Damage*0.1
  620. t.CFrame = CFrame.new(t.Position,yoto.Torso.Position)
  621. ey = yoto.Torso.Position+t.CFrame.lookVector*3;concentrate=yoto.Torso.Position+t.CFrame.lookVector*3
  622. t.Anchored = true
  623. wait(0.1)
  624. if znewclon then
  625. znewclon.Parent = nil
  626. end
  627. if i ~= 1 then
  628. znewclon = darkclone()
  629. yop = Add.part(color1,Vector3.new(1,1,1),znewclon.Torso.CFrame,znewclon,"derp",Vector3.new(1,1,1),"Block","Sphere",false,nil,0.2)
  630. coroutine.resume(coroutine.create(function(clone)
  631. for i = 0, 1, 0.25 do
  632. clone.Mesh.Scale = Vector3.new(1+4.3*i,1+6.5*i,1+4.3*i)
  633. clone.Transparency = 0.2+0.25*i
  634. wait()
  635. end
  636. end),yop)
  637. end
  638. humanoid.WalkSpeed = 0
  639. --ey = yoto.Torso.Position-(t.Position-t.CFrame.lookVector*20)/4 --CFrame.new(t.Position,yoto.Torso.Position).lookVector((t.Position-yoto.Torso.Position).magnitude+.5)
  640. line = Add.part(color1,Vector3.new(1,1,1),CFrame.new(t.Position+(Vector3.new(ey.X,yoto.Torso.Position.Y,ey.Z)-t.Position)/2,t.Position),claw1,"Swoosh",Vector3.new(.25,.25,(Vector3.new(ey.X,yoto.Torso.Position.Y,ey.Z)-t.Position).magnitude),"Block","Brick",false,nil,0.25)
  641. line2 = Add.part(mainColor,Vector3.new(1,1,1),CFrame.new(t.Position+(Vector3.new(ey.X,yoto.Torso.Position.Y,ey.Z)-t.Position)/2,t.Position),claw1,"Swoosh",Vector3.new(.3,.3,(Vector3.new(ey.X,yoto.Torso.Position.Y,ey.Z)-t.Position).magnitude),"Block","Brick",false,nil,0.5)
  642. table.insert(lines,line2);table.insert(lines,line)
  643. t.CFrame = CFrame.new(ey.X,yoto.Torso.Position.Y,ey.Z)
  644. eyx = CFrame.new(ey.X,yoto.Torso.Position.Y,ey.Z).p--yoto.Torso.Position.Y
  645. t.Anchored = false
  646. wait(0.1)
  647. lastman=yoto
  648. else
  649. break
  650. end
  651. end
  652. shadowr = false
  653. humanoid.WalkSpeed = ws
  654. wait(0.75)
  655. clun.Parent = nil;t.CFrame=origt;if znewclon and znewclon:findFirstChild("derp") then znewclon.derp.Parent = nil end;
  656. for i = 0,1,0.05 do
  657. hrpw.C0 = (co-Vector3.new(0,0.5-.5*i,0))*CFrame.Angles(math.rad(25-25*i),0,0)
  658. rw.C0 = CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(-40+40*i),math.rad(10-10*i),math.rad(30-30*i))
  659. lw.C0 = CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(-40+40*i),math.rad(-10+10*i),math.rad(-30+30*i))
  660. rlw.C0 = CFrame.new(0.5,-1-.5*i,0-0.15+.15*i)*CFrame.Angles(math.rad(10-10*i),0,0)
  661. llw.C0 = CFrame.new(-0.5,-1.5+0.2*i,0.1-0.1*i)*CFrame.Angles(math.rad(-25+25*i),0,0)
  662. wait()
  663. end
  664. if znewclon then
  665. znewclon.Parent = nil
  666. end
  667. for i, v in pairs(lines) do
  668. v.Parent = nil
  669. end
  670. for i, v in pairs(yoplayers) do
  671. table.remove(yoplayers,i)
  672. end
  673. setfoot(false)
  674. end
  675. updateGui();anim = false
  676. end
  677. end,
  678. function()
  679. --dthrow--
  680. if not anim and ready then
  681. anim = true;
  682. bg = Add.BG(hrp)
  683. for i = 0, 1, 0.2 do
  684. rw.C0 = CFrame.new(1.5,0.5,0)*CFrame.Angles(0,0,math.rad(90*i))
  685. lw.C0 = CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(-35*i),0,math.rad(-20*i))
  686. nw.C0 = CFrame.new(0, 1.5, 0)*CFrame.Angles(0,math.rad(-25*i),0)
  687. stable(rw,lw)
  688. bg.cframe = t.CFrame * CFrame.Angles(0, math.rad(11.25*i), 0)
  689. wait(0.001)
  690. end
  691. for i = 0, 1, 0.2 do
  692. rw.C0 = CFrame.new(1.5-.2*i,0.5,0-.1*i)*CFrame.Angles(0,math.rad(140*i),math.rad(90))
  693. lw.C0 = CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(-35),0,math.rad(-20))
  694. nw.C0 = CFrame.new(0, 1.5, 0)*CFrame.Angles(0,math.rad(-25-25*i),0)
  695. stable(rw,lw)
  696. cf2 = t.CFrame * CFrame.Angles(0, math.rad(11.25+11.25*i), 0)
  697. bg.cframe = cf2
  698. wait(0.001)
  699. end
  700. throwmode = true;
  701. while throwmode do
  702. if not shieldon then
  703. bg.cframe = cf2
  704. else
  705. bg.cframe = cf2--bg.cframe = cf2*CFrame.Angles(0,-45,0)
  706. end
  707. wait()
  708. end
  709. for i = 0, 1, 0.1 do
  710. rw.C0 = CFrame.new(1.3+.2*i,0.5,-0.1+.1*i)*CFrame.Angles(0,math.rad(140-140*i),math.rad(90-90*i))
  711. lw.C0 = CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(-35+35*i),0,math.rad(-20+20*i))
  712. nw.C0 = CFrame.new(0, 1.5, 0)*CFrame.Angles(0,math.rad(-50+50*i),0)
  713. stable(rw,lw)
  714. cf2 = t.CFrame * CFrame.Angles(0, math.rad(-25*i), 0)
  715. bg.cframe = cf2
  716. wait(0.001)
  717. end
  718. anim = false
  719. bg.Parent = nil;
  720. end
  721.  
  722. end,
  723. function()
  724. --shuriken stars
  725. shurikens = {};sweld={};svv={};rshi={};
  726. if ready and mana>=75 and throwing ==false then
  727. throwing = true;mana = mana-75;updateGui();
  728. for i = 1, 5 do
  729. local sstars1 = Add.part(mainColor,Vector3.new(1.66, 0.2, 1.66),t.CFrame,claw1,"stars",Vector3.new(2, 3, 2),"Block","FileMesh",false,"http://www.roblox.com/asset/?id=11376946",0)
  730. sstars1.Mesh.TextureId = "http://www.roblox.com/asset/?id=19393241";sstars1.Anchored = false
  731. local sstars2 = Add.part(mainColor,Vector3.new(0.2, 0.2, 0.2),t.CFrame,claw1,"circle",Vector3.new(0.32, 3, 3),"Block","Cylinder",false,nil,.75)
  732. sstars2.Anchored = false
  733. Darkness = Instance.new("PointLight")
  734. Darkness.Range = 5
  735. Darkness.Enabled = true
  736. Darkness.Brightness = 1
  737. Darkness.Color = Color3.new(99,0,148)
  738. Darkness.Parent = sstars2
  739. local starsound1=Add.ingay("http://www.roblox.com/asset?id=92597369",sstars1,false,false)
  740. starsound1:Play()
  741. local starsound2=Add.ingay("http://www.roblox.com/asset?id=92597369",sstars2,false,false)
  742. starsound2:Play()
  743. sw1=weldIt(ra,sstars1,CFrame.new(0,-1,0.25)*CFrame.Angles(0,0,math.rad(90)),nil)
  744. sw2=weldIt(sstars1,sstars2,CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(90)),nil)
  745. table.insert(shurikens,sstars1)
  746. table.insert(sweld, sw1)
  747. table.insert(rshi, sstars2)
  748. end
  749. for i, v in pairs(sweld) do
  750. v.Parent = nil
  751. end
  752. for i, v in pairs(shurikens) do
  753. v.Touched:connect(function(hit) projectileDamage(hit,v,Damage*0.1) end)
  754. deleteTables("afasfasgasgas2131421512516565616",v,"BoolValue")
  755. sv1 = Add.BV(v,(t.CFrame*CFrame.Angles(0,math.rad(-65-5*i),0)).lookVector*350)
  756. table.insert(svv,sv1)
  757. end
  758.  
  759. for i = 0, 1, 0.25 do
  760. rw.C0 = CFrame.new(1.5,0.5,0)*CFrame.Angles(0,math.rad(140-140*i),math.rad(90))
  761. for _, v in pairs(shurikens) do
  762. v.Mesh.Scale = Vector3.new(2+3*i, 3, 2+3*i)
  763. end
  764. for _, v in pairs(rshi) do
  765. v.Mesh.Scale = Vector3.new(0.32, 3+3.5*i, 3+3.5*i)
  766. v.Transparency = .75-0.25*i
  767. end
  768. stable(rw,lw)
  769. wait(0.001)
  770. end
  771. for _, v in pairs(shurikens) do
  772. v.BodyVelocity.velocity = CFrame.new(v.Position,t.Position).lookVector*175
  773. end
  774. for i = 0, 1, 0.25 do
  775. rw.C0 = CFrame.new(1.5,0.5,0)*CFrame.Angles(0,math.rad(140*i),math.rad(90))
  776. for _, v in pairs(shurikens) do
  777. v.Mesh.Scale = Vector3.new(5-3*i, 3, 5-3*i)
  778. end
  779. for _, v in pairs(rshi) do
  780. v.Mesh.Scale = Vector3.new(0.32, 6.5-3.5*i, 6.5-3.5*i)
  781. v.Transparency = 0.5+0.25*i
  782. end
  783. stable(rw,lw)
  784. wait(0.001)
  785. end
  786. for _, v in pairs(shurikens) do
  787. v.Parent = nil
  788. end
  789. throwing = false
  790. end
  791. end,
  792. function()
  793. --shadowblock--
  794. if not throwing and ready then
  795. throwing = true;shieldon=true
  796. for i = 0, 1, 0.25 do
  797. rw.C0 = CFrame.new(1.5,0.5,0)*CFrame.Angles(0,math.rad(140-140*i),math.rad(90))
  798. stable(rw,lw)
  799. wait(0.001)
  800. end
  801. rh.Parent = nil;lh.Parent = nil;origtf = t.CFrame
  802. rlw = weldIt(t,rl, CFrame.new(0.5,-1.5,0),nil);llw = weldIt(t,ll, CFrame.new(-0.5,-1.5,0),nil);
  803. rlw.C0 = CFrame.new(1,-1.5,0)*CFrame.Angles(math.rad(-30),0,math.rad(25));llw.C0 = CFrame.new(-1,-1.5,0)*CFrame.Angles(math.rad(-30),0,math.rad(-25))
  804. rw.C0 = CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(-45),math.rad(0),math.rad(25))
  805. lw.C0 = CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(-45),math.rad(0),math.rad(-25))
  806. nw.C0 = CFrame.new(0, 1.5, 0)*CFrame.Angles(0,math.rad(0),0)
  807. stable(rw,lw)
  808. local clon1 = darkclone(true)
  809. rh.Parent=t;lh.Parent=t;rlw.Parent = nil;llw.Parent = nil
  810. rw.C0 = CFrame.new(1.5,0.5,0)*CFrame.Angles(0,math.rad(0),math.rad(90))
  811. lw.C0 = CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(-35),0,math.rad(-20))
  812. nw.C0 = CFrame.new(0, 1.5, 0)*CFrame.Angles(math.rad(-20),math.rad(-50),0)
  813. stable(rw,lw)
  814. weldIt(ra,clon1.Torso,CFrame.new(0,-2.3,0)*CFrame.Angles(math.rad(-90),math.rad(0),math.rad(-90)),nil)
  815. t.CFrame = origtf
  816. while shieldon do
  817. wait()
  818. if inf/11 == math.floor(inf/11) then
  819. yos2 = Add.part(color1,Vector3.new(2,2,1),CFrame.new(0,0,0),claw1,"SHIELD",Vector3.new(5,5,5),"Block","FileMesh",false,"http://www.roblox.com/asset/?id=20329976",.3)
  820. yos2.CFrame = t.CFrame*CFrame.Angles(0,0,0)*CFrame.Angles(math.rad(-90),0,math.rad(90))
  821. yos2.Archivable = false
  822. coroutine.resume(coroutine.create(function(pert,fame)
  823. for i = 0,1, 0.025 do
  824. pert.Mesh.Scale = Vector3.new(5-4*i,5-4*i,5-4*i)
  825. pert.CFrame = fame*CFrame.new(0,2-6*i,0)
  826. pert.Transparency = 0.3+.5*i
  827. wait()
  828. end
  829. pert.Parent =nil
  830. end),yos2,yos2.CFrame)
  831. end
  832. if inf/5 == math.floor(inf/5) then
  833. yos = Add.part(color1,Vector3.new(2,2,1),CFrame.new(0,0,0),clon,"SHIELD",Vector3.new(0,0,1),"Block","Sphere",false,nil,0)
  834. weldIt(clon1.Torso,yos,CFrame.new(0,0,1),nil)
  835. yos.Anchored = false
  836. coroutine.resume(coroutine.create(function(part)
  837. for i = 0, 1,0.05 do
  838. part.Mesh.Scale = Vector3.new(5.3*i,5.3*i,1)
  839. part.Transparency = .75*i
  840. wait()
  841. end
  842. if part then
  843. part.Parent = nil
  844. end
  845. end),yos)
  846. end
  847. end
  848. clon.Parent = nil
  849. for i = 0, 1, 0.25 do
  850. rw.C0 = CFrame.new(1.5,0.5,0)*CFrame.Angles(0,math.rad(140*i),math.rad(90))
  851. nw.C0 = CFrame.new(0, 1.5, 0)*CFrame.Angles(math.rad(-20+20*i),math.rad(-50),0)
  852. stable(rw,lw)
  853. wait(0.001)
  854. end
  855. throwing = false
  856. end
  857. end,
  858. --the dead chain--
  859. function(sword,mouse)
  860. swordclones={}
  861. for i, v in pairs(swords) do
  862. if v == sword then
  863. table.remove(swords,i)
  864. end
  865. end
  866. sco = sword.Weld.C0
  867. for i = 0, 1, 0.1 do
  868. wait()
  869. print("dead chain")
  870. sword.Weld.C0= (sco+Vector3.new(10*i,0,0))*CFrame.Angles(math.rad(90),0,0)
  871. end
  872. sword.Weld.Parent = nil
  873. bg = Add.BG(sword)
  874. bg.cframe = CFrame.new(sword.Position,mouse.Hit.p)*CFrame.Angles(math.rad(-90),0,0)
  875. bv = Add.BV(sword,CFrame.new(sword.Position,mouse.Hit.p).lookVector*100)
  876. rol = Add.part(color1,Vector3.new(1,1,1),CFrame.new(sword.Position,mouse.Hit.p),claw1,"Bazinga",Vector3.new(2,2,0.1),"Block","FileMesh",false,"http://www.roblox.com/asset/?id=3270017",0.2)
  877. rol.CFrame = CFrame.new(sword.Position,mouse.Hit.p)*CFrame.Angles(0,math.rad(0),0)
  878. table.insert(swordclones,rol)
  879. coroutine.resume(coroutine.create(function(clone)
  880. for i = 0, 1, 0.1 do
  881. clone.Mesh.Scale = Vector3.new(2+1.2*i,2+1.2*i,0.1)
  882. clone.Transparency = 0.2+0.6*i
  883. wait()
  884. end
  885. clone.Parent = nil
  886. end),rol)
  887. local touch = true
  888. sword.Touched:connect(function(hit)
  889. if touch and hit.Parent ~= char and hit.Parent ~= claw1 and hit.Parent ~= claw2 and hit.Parent.ClassName ~= "Hat" then
  890. touch = false
  891. for i, v in pairs(swordclones) do
  892. if hit == v then
  893. return
  894. end
  895. end
  896. cf2 = CFrame.new(sword.Position.X,sword.Position.Y,sword.Position.Z) --cf2 = CFrame.new(sword.Position.X,hit.Position.Y+hit.Size.Y/2,sword.Position.Z)
  897. p = Add.part(mainColor,Vector3.new(5,5,5),CFrame.new(sword.Position.X,hit.Position.Y,sword.Position.Z),claw1,"Bazinga",Vector3.new(1,1,1),"Block","Brick",false,nil,0.5)
  898. p.CFrame = cf2
  899. p2 = Add.part(color1,Vector3.new(5,5,5),CFrame.new(sword.Position.X,hit.Position.Y,sword.Position.Z),claw1,"Bazinga",Vector3.new(1,1,1),"Block","Brick",false,nil,0.5)
  900. p2.CFrame = cf2
  901. p3 = Add.part(mainColor,Vector3.new(5,5,5),CFrame.new(sword.Position.X,hit.Position.Y,sword.Position.Z),claw1,"Bazinga",Vector3.new(1,1,1),"Ball","Sphere",false,nil,0.5)
  902. p3.CFrame = cf2
  903. ring = Add.part(mainColor,Vector3.new(1,1,1),CFrame.new(sword.Position.X,hit.Position.Y,sword.Position.Z),claw1,"Bazinga",Vector3.new(5,5,0.1),"Block","FileMesh",false,"http://www.roblox.com/asset/?id=3270017",0.5)
  904. ring.CFrame = cf2*CFrame.Angles(math.rad(90),0,math.rad(90))
  905. distanceDamage(p,10,Damage*2.2)
  906. coroutine.resume(coroutine.create(function(item,item2,b1,r)
  907. for i = 0, 1, 0.1 do
  908. item.CFrame = item.CFrame*CFrame.fromEulerAnglesXYZ(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)));item2.CFrame = item.CFrame*CFrame.fromEulerAnglesXYZ(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
  909. b1.Mesh.Scale = Vector3.new(1+.5*i,1+.5*i,1+.5*i);r.Mesh.Scale = Vector3.new(5+4*i,5+4*i,0.1)
  910. wait()
  911. end
  912. item.Parent=nil;item2.Parent=nil;b1.Parent = nil;r.Parent = nil
  913. end),p,p2,p3,ring)
  914. sword.Parent = nil;
  915. end
  916. end)
  917. coroutine.resume(coroutine.create(function(clone)
  918. --derppoint = Vector3.new(clone.CFrame)
  919. while clone do
  920. hey = clone:Clone()
  921. table.insert(swordclones,hey)
  922. hey.BodyGyro.Parent = nil
  923. hey.BodyVelocity.Parent = nil
  924. hey.Anchored = true
  925. hey.Parent = claw1
  926. hey.CFrame = clone.CFrame
  927. coroutine.resume(coroutine.create(function(s)
  928. for i = 0, 1, 0.1 do
  929. s.Transparency = 0.4+0.4*i
  930. wait()
  931. end
  932. s.Parent = nil
  933. end),hey)
  934. wait(0.25)
  935. end
  936. end),hey)
  937. coroutine.resume(coroutine.create(function()
  938. wait(4)
  939. if sword then
  940. sword.Parent = nil
  941. end
  942. end))
  943. end,
  944. --ULTIMATE--
  945. function(tabl)
  946. scos = {}
  947. for i, v in pairs(tabl) do
  948. table.insert(scos,v.Weld.C0)
  949. end
  950. for i = 0, 1, 0.1 do
  951. for x, v in pairs(tabl) do
  952. print("herp")
  953. v.Weld.C0 = (((scos[x]+Vector3.new(20*i,0,0)))+(CFrame.new(0,0,0)*CFrame.Angles(math.rad(360*(x/8)),0,math.rad(90))).lookVector*(10))*CFrame.Angles(math.rad(-45),math.rad(-45),math.rad(45))
  954. v.Mesh.Scale = Vector3.new(0.85+2*i, 0.45+2.4*i, 0.85+2*i)
  955. end
  956. wait()
  957. end
  958. end
  959. }
  960. 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
  961. wait()
  962. end
  963. 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");
  964. while not ls or not rs or not neck or not hrpw do
  965. wait()
  966. end
  967. co = hrpw.C0
  968. ---------------
  969. function weldIt(p1,p2,r1,r2,place)
  970. local w = Instance.new("Weld")
  971. if place then
  972. w.Parent = place
  973. else
  974. w.Parent = p1
  975. end
  976. w.Part0 = p1
  977. w.Part1 = p2
  978. w.C0 = r1
  979. if r2 then
  980. w.C1 = r2
  981. end
  982. return w
  983. end
  984.  
  985. function run(speed)
  986. if rw and lw and not anim and ready then
  987. if speed >0 and (t.Velocity*Vector3.new(1, 0, 1)).magnitude > 2 and not runs then
  988. runs = true;runarmsanim = false;
  989. for i = 0, 1, 0.2 do
  990. if not anim and run and not fall and not jumping then
  991. rw.C0 = CFrame.new(1.5, 0.5, 0)*CFrame.Angles(math.rad(-40*i),0,math.rad(35*i))
  992. if not shadowblade then
  993. lw.C0 = CFrame.new(-1.5+.25*i, 0.5, 0)*CFrame.Angles(math.rad(-40*i),0,math.rad(-35*i))
  994. else
  995. lw.C0 = CFrame.new(-1.5, 0.5, 0)*CFrame.Angles(0,math.rad(-140*i),math.rad(-100*i))
  996. end
  997. nw.C0 = CFrame.new(0, 1.5, 0)*CFrame.Angles(math.rad(15*i),0,0)
  998. hrpw.C0 = co*CFrame.Angles(math.rad(20*i),0,0)
  999. rw.C1 = CFrame.new(0,0.5,0)
  1000. lw.C1 = CFrame.new(0,0.5,0)
  1001. wait(0.001)
  1002. else
  1003. runs = false
  1004. hrpw.C0 = co
  1005. break
  1006. end
  1007. if not anim and run and not jumping then
  1008. runarmsanim = true;
  1009. end
  1010. end
  1011. elseif runs then
  1012. runs = false
  1013. if not anim then
  1014. rh.Parent = t;lh.Parent =t;
  1015. if rlw and llw then
  1016. rlw.Parent = nil;llw.Parent = nil
  1017. end
  1018. end
  1019. for i = 0, 1, 0.2 do
  1020. if not anim and run and not fall and not jumping then
  1021. rw.C0 = CFrame.new(1.5, 0.5, 0)*CFrame.Angles(math.rad(-40+40*i),0,math.rad(35-35*i))
  1022. if not shadowblade then
  1023. lw.C0 = CFrame.new(-1.5, 0.5, 0)*CFrame.Angles(math.rad(-40+40*i),0,math.rad(-35+35*i))
  1024. else
  1025. lw.C0 = CFrame.new(-1.25-.25*i, 0.5, 0)*CFrame.Angles(0,math.rad(-140+140*i),math.rad(-100+100*i))
  1026. end
  1027. nw.C0 = CFrame.new(0, 1.5, 0)*CFrame.Angles(math.rad(15-15*i),0,0)
  1028. hrpw.C0 = co*CFrame.Angles(math.rad(20-20*i),0,0)
  1029. rw.C1 = CFrame.new(0,0.5,0)
  1030. lw.C1 = CFrame.new(0,0.5,0)
  1031. wait(0.001)
  1032. else
  1033. hrpw.C0 = co
  1034. break
  1035. end
  1036. end
  1037. end
  1038. else
  1039. runs = false
  1040. end
  1041. end
  1042.  
  1043. function jump()
  1044. if rw and lw and not anim then
  1045. jumping = true
  1046. for i = 0, 1, 0.2 do
  1047. if not anim and not fall then
  1048. rw.C0 = CFrame.new(1.5, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(-25*i),math.rad(100*i))
  1049. lw.C0 = CFrame.new(-1.5, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(25*i),math.rad(-100*i))
  1050. rw.C1 = CFrame.new(0,0.5,0)
  1051. lw.C1 = CFrame.new(0,0.5,0)
  1052. wait(0.001)
  1053. else
  1054. break
  1055. end
  1056. end
  1057. end
  1058. end
  1059. function fell(hit)
  1060. if rw and lw and not anim and jumping then
  1061. if hit.CanCollide == true and hit.Parent ~= char then
  1062. for i = 0, 1, 0.2 do
  1063. if not anim and not fall then
  1064. rw.C0 = CFrame.new(1.5, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(-25+25*i),math.rad(100-100*i))
  1065. lw.C0 = CFrame.new(-1.5, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(25-25*i),math.rad(-100+100*i))
  1066. rw.C1 = CFrame.new(0,0.5,0)
  1067. lw.C1 = CFrame.new(0,0.5,0)
  1068. wait(0.001)
  1069. else
  1070. break
  1071. end
  1072. end
  1073. jumping = false
  1074. end
  1075. elseif anim and lw and rw and not noimpact then
  1076. if hit.CanCollide == true and hit.Parent ~= char and hit.Name ~= "Blade" and hit.Name ~= "BladeT" then
  1077. noimpact = true
  1078. impact = hit
  1079. end
  1080. end
  1081. end
  1082. function lower(wat,em,wee)
  1083. yos = wat:GetChildren()
  1084. enr = wat.Parent:GetChildren()
  1085. for x = 0, 1, 0.1 do
  1086. for i = 1, #yos do
  1087. if yos[i].Name == "Main" then
  1088. if em == true then
  1089. yos[i].C0 = wee-Vector3.new(0, 0.25*x,0)
  1090. else
  1091. yos[i].C0 = wee+Vector3.new(0, 0.25*x,0)
  1092. end
  1093.  
  1094. end
  1095. end
  1096. for b = 1, #enr do
  1097. if enr[b].Name == "Blade" or enr[b].Name == "BladeT" then
  1098. if em == true then
  1099. enr[b].Transparency = 1*x
  1100. else
  1101. enr[b].Transparency = 1-1*x
  1102. end
  1103. end
  1104. end
  1105. wait(0.001)
  1106. end
  1107. end
  1108.  
  1109. function lowerBlade(em)
  1110. lower(claw1.Handle,em,mainweld1c)
  1111. lower(claw2.Handle,em,mainweld2c)
  1112. end
  1113.  
  1114.  
  1115. function click(mouse)
  1116. if ready then
  1117. if not anim then
  1118. rh.Parent = t;lh.Parent =t;
  1119. if rlw and llw then
  1120. rlw.Parent = nil;llw.Parent = nil
  1121. end
  1122. fixtorso()
  1123. nw.C0 = CFrame.new(0, 1.5, 0)*CFrame.Angles(0,0,0)
  1124. end
  1125. fixtorso()
  1126. if at == 1 and mouse and not anim then
  1127. attacks[1](mouse)
  1128. at = 2
  1129. elseif at == 2 and mouse and not anim then
  1130. attacks[2](mouse)
  1131. at = 3
  1132. elseif at == 3 and mouse and not anim then
  1133. attacks[3](mouse)
  1134. at = 1
  1135. end
  1136. end
  1137. end
  1138. function fixtorso()
  1139. if not anim then
  1140. hrpw.C0 = co
  1141. end
  1142. end
  1143. function checkcombo(combo)
  1144. if string.len(combo) <= 4 then
  1145. if combo == "wadd" and not anim and ready and not shadowblade then
  1146. anim = true;shadowblade=true;
  1147. for i = 0, 1, 0.25 do
  1148. rw.C0 = CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(25*i),math.rad(-140*i),math.rad(-55*i))
  1149. lw.C0 = CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(35*i),math.rad(130*i),math.rad(55*i))
  1150. stable(rw,lw);Adde()
  1151. wait()
  1152. end
  1153. blok = Add.part(color1,Vector3.new(1,1,1),claw2.BladeT.CFrame,claw2,"blok",Vector3.new(1,1,1),"Block","Brick",false,nil,0)
  1154. blok.Anchored = false
  1155. leb = weldIt(claw2.BladeT,blok,CFrame.new(0,-1,0),nil)
  1156. blok3 = Add.part(color1,Vector3.new(1,1,1),claw2.BladeT.CFrame,claw2,"blok",Vector3.new(2,2,2),"Block","Brick",false,nil,0.4)
  1157. blok3.Anchored = false
  1158. leb3 = weldIt(claw2.BladeT,blok3,CFrame.new(0,-1,0),nil)
  1159. blok2 = Add.part(color1,Vector3.new(1,1,1),claw2.BladeT.CFrame,claw2,"ENERGY",Vector3.new(2,3.2,2),"Block","Sphere",false,nil,0.4)
  1160. blok2.Anchored = false
  1161. leb2 = weldIt(claw2.BladeT,blok2,CFrame.new(0,-1,0),nil)
  1162. for i = 1, 255 do
  1163. if i%3 == 0 then
  1164. Adde()
  1165. end
  1166. if i/10 == math.floor(i/10) then
  1167. rando = Add.part(color1,Vector3.new(1,1,1),claw2.BladeT.CFrame,claw2,"ENERGY",Vector3.new(0,0,0),"Block","Sphere",false,nil,0.4)
  1168. hitit =claw2.BladeT.CFrame+Vector3.new(math.random(-100,100)/(35/(1+((1/175)*i))),math.random(-100,100)/(35/(1+((1/175)*i))),math.random(-100,100)/(35/(1+((1/175)*i))))
  1169. cf = CFrame.new(hitit.p,claw2.BladeT.CFrame.p)
  1170. rando.Anchored = false
  1171. ler = weldIt(claw2.BladeT,rando,claw2.BladeT.CFrame:toObjectSpace(cf),nil)
  1172. coroutine.resume(coroutine.create(function(p,w,cf,num)
  1173. for i = 0, 1, 0.1 do
  1174. xf = CFrame.new(cf.p,claw2.BladeT.CFrame.p)
  1175. derp = claw2.BladeT.CFrame.p-xf.p
  1176. p.Mesh.Scale = Vector3.new(.8*i,.8*i,.9+(num/(num/5))*i)
  1177. w.C0 = claw2.BladeT.CFrame:toObjectSpace(xf+derp*i)
  1178. wait()
  1179. end
  1180. p.Parent = nil
  1181. end),rando,ler,hitit,i)
  1182. end
  1183. leb.C0 = CFrame.new(0,0,0)*CFrame.fromEulerAnglesXYZ(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
  1184. leb3.C0 = CFrame.new(0,0,0)*CFrame.fromEulerAnglesXYZ(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
  1185. wait()
  1186. end
  1187. blok.Parent = nil;blok2.Parent = nil;blok3.Parent = nil
  1188. for i = 0,1,0.1 do
  1189. Adde()
  1190. local eyo = claw2:GetChildren()
  1191. for x = 1, #eyo do
  1192. if eyo[x].Name == "SB" then
  1193. eyo[x].Transparency = 0.5*i
  1194. end
  1195. end
  1196. wait()
  1197. end
  1198. for i = 0, 1, 0.25 do
  1199. Adde()
  1200. rw.C0 = CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(25-25*i),math.rad(-140+140*i),math.rad(-55+55*i))
  1201. lw.C0 = CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(35-35*i),math.rad(130-130*i),math.rad(55-55*i))
  1202. stable(rw,lw)
  1203. wait()
  1204. end
  1205. anim = false
  1206. elseif shadowblade and combo == "wadd" and not anim and ready then
  1207. anim = true
  1208. for i = 0,1,0.1 do
  1209. Adde()
  1210. local eyo = claw2:GetChildren()
  1211. for x = 1, #eyo do
  1212. if eyo[x].Name == "SB" then
  1213. eyo[x].Transparency = 0.5+0.5*i
  1214. end
  1215. end
  1216. wait()
  1217. end
  1218. anim = false;shadowblade = false;
  1219. end
  1220. else
  1221. combo = ""
  1222. end
  1223. end
  1224. function keys(key,mouse)
  1225. key = key:lower()
  1226. if key == "f" or key == "z" or key == "x" or key == "g" then
  1227. if not anim then
  1228. rh.Parent = t;lh.Parent =t;
  1229. if rlw and llw then
  1230. rlw.Parent = nil;llw.Parent = nil
  1231. end
  1232. fixtorso()
  1233. nw.C0 = CFrame.new(0, 1.5, 0)*CFrame.Angles(0,0,0)
  1234. end
  1235. end
  1236. if key == "f" and not keyf then
  1237. keyf = true
  1238. charge(mouse)
  1239. elseif key == "t" and keyf then
  1240. tdown = true;
  1241. elseif key == "e" and keyf then
  1242. edown =true;
  1243. elseif key == "q" and keyf then
  1244. qdown = true;
  1245. elseif key == "z" then
  1246. if not throwmode then
  1247. clickagain = true
  1248. skills[1]()
  1249. elseif not throwing then
  1250. skills[4]()
  1251. end
  1252. elseif key == "x" then
  1253. if not throwmode then
  1254. skills[2]()
  1255. elseif not throwing then
  1256. skills[5]()
  1257. end
  1258. elseif key == "g" then
  1259. if not throwmode then
  1260. skills[3]()
  1261. elseif not throwing then
  1262. throwmode = false
  1263. end
  1264. end
  1265. if key == "w" then
  1266. if last == "" then
  1267. combo = combo.."w"
  1268. last = "w"
  1269. else
  1270. last = ""
  1271. combo = ""
  1272. end
  1273. elseif key == "a" then
  1274. if last == "w" then
  1275. combo = combo.."a"
  1276. last = "a"
  1277. else
  1278. last = ""
  1279. combo = ""
  1280. end
  1281. elseif key == "d" then
  1282. if last == "a" or last == "d" then
  1283. combo = combo.."d"
  1284. last = "d"
  1285. else
  1286. last = ""
  1287. combo = ""
  1288. end
  1289. else
  1290. last = ""
  1291. combo = ""
  1292. end
  1293. checkcombo(combo)
  1294. end
  1295. function keyd(key)
  1296. key = key:lower()
  1297. if key == "f" and keyf and not chargeskill then
  1298. keyf= false
  1299. elseif key == "x" and throwmode then
  1300. shieldon = false
  1301. end
  1302. end
  1303. function sel(mouse)
  1304. while equiping or notequi do
  1305. wait()
  1306. end
  1307. if not ready then
  1308. fallit()
  1309. coroutine.resume(coroutine.create(function()
  1310. equiping = true
  1311. lowerBlade(false)
  1312. equiping = false;
  1313. end))
  1314. rs.Parent = nil;ls.Parent = nil;neck.Parent = nil;
  1315. rw = weldIt(t,ra,CFrame.new(1.5, 0, 0))
  1316. lw = weldIt(t,la,CFrame.new(-1.5,0,0))
  1317. nw = weldIt(t,head,CFrame.new(0, 1.5, 0))
  1318. ready = true;
  1319. end
  1320. mouse.Button1Down:connect(function() click(mouse) end)
  1321. mouse.KeyDown:connect(function(k) keys(k,mouse) end)
  1322. mouse.KeyUp:connect(keyd)
  1323. end
  1324.  
  1325. function reset()
  1326. rs.Parent = t
  1327. ls.Parent = t
  1328. neck.Parent = t
  1329. rh.Parent = t
  1330. lh.Parent = t
  1331. if rw then
  1332. rw.Parent = nil
  1333. end
  1334. if lw then
  1335. lw.Parent = nil
  1336. end
  1337. if nw then
  1338. nw.Parent = nil
  1339. end
  1340. if rlw then
  1341. rlw.Parent = nil
  1342. end
  1343. if llw then
  1344. llw.Parent = nil
  1345. end
  1346. hrpw.C0 = co
  1347. end
  1348. function deSel(mouse)
  1349. while equiping or notequi or anim do
  1350. wait()
  1351. end
  1352. if ready then
  1353. notequi = true
  1354. lowerBlade(true)
  1355. notequi = false
  1356. ready = false
  1357. reset()
  1358. end
  1359. end
  1360.  
  1361. function wepcharge()
  1362. num = 8
  1363. swords = {}
  1364. tframelol = nil
  1365. local circle = Add.part(color1,Vector3.new(1, 6, 6),t.CFrame,claw1,"Circle",Vector3.new(1, 1, 1),"Block","Cylinder",false,nil,0.4)
  1366. circle.Anchored = false
  1367. local cweld = weldIt(t,circle,CFrame.new(0,-3,0)*CFrame.Angles(0,0,math.rad(90)),nil,circle)
  1368. tframelol = t.CFrame
  1369. coroutine.resume(coroutine.create(function()
  1370. for i = 0,1,(1/num) do
  1371. if mana<maxmana and keyf and ready and not chargeskill then
  1372. sword = Add.part(mainColor,Vector3.new(1, 2.4, 2),circle.CFrame,claw1,"FlySword",Vector3.new(0.85, 0.45, 0.85),"Block","FileMesh",false,"http://www.roblox.com/asset/?id=94840342",1)
  1373. sword.Anchored = false
  1374. swordWeld = weldIt(circle,sword,(CFrame.new((CFrame.new(0,0,0)*CFrame.Angles(math.rad(360*i),0,math.rad(90))).lookVector*-2.5)*CFrame.Angles(math.rad(360*i)-math.rad(90),0,math.rad(90)))+Vector3.new(1,0,0),nil,sword)
  1375. table.insert(swords,sword)
  1376. coroutine.resume(coroutine.create(function(s)
  1377. for i = 0, 1, 0.1 do
  1378. if s then
  1379. s.Transparency = 1-0.6*i
  1380. wait()
  1381. else
  1382. break
  1383. end;end;end),sword)
  1384. wait(1)
  1385. elseif tplay then
  1386. i = i-(1/num)
  1387. while tplay do
  1388. wait()
  1389. end
  1390. else
  1391. break
  1392. end
  1393. end
  1394. end))
  1395. return circle
  1396. end
  1397.  
  1398. function charge(mouse)
  1399. if mana < maxmana and not anim and ready then
  1400. anim = true
  1401. updateGui()
  1402. if not shadowblade then
  1403. b1 = Add.part(mainColor,Vector3.new(1,1,1),CFrame.new(claw1.BladeT.Position),claw1,"orb",Vector3.new(1,1,1),"Ball","Sphere",false,nil,0.25)
  1404. b2 = b1:Clone();b2.Parent=claw1;b2.CFrame = claw2.BladeT.CFrame;
  1405. b1f = Add.part(color1,Vector3.new(1,1,1),CFrame.new(b1.Position),claw1,"orb",Vector3.new(1.25,1.25,1.25),"Ball","Sphere",false,nil,0.65)
  1406. b2f = b1f:Clone();b2f.Parent=claw1;b2f.CFrame=b2.CFrame;b1f2=b1f:Clone();b1f2.Parent=claw1;b1f2.Mesh.Scale=Vector3.new(1.35,1.35,1.35);b2f2=b2f:Clone();b2f2.Parent=claw1;b2f2.Mesh.Scale=Vector3.new(1.3,1.3,1.3);
  1407. b1w = weldIt(claw1.BladeT,b1,CFrame.new(0,0,0),nil);b2w = weldIt(claw2.BladeT,b2,CFrame.new(0,0,0),nil);
  1408. b1fw = weldIt(b1,b1f,CFrame.new(0,0,0),nil);b2fw=weldIt(b2,b2f,CFrame.new(0,0,0),nil);
  1409. weldIt(b1f,b1f2,CFrame.new(0,0,0),nil);weldIt(b2f,b2f2,CFrame.new(0,0,0),nil)
  1410. b1.Anchored = false;b2.Anchored = false;b1f.Anchored=false;b2f.Anchored = false;b1f2.Anchored=false;b2f2.Anchored=false;
  1411. else
  1412. b1 = Add.part(color1,Vector3.new(1,1,1),t.CFrame,claw2,"DarkMatter",Vector3.new(1,1,1),"Block","Brick",false,nil,0)
  1413. b2 = Add.part(color2,Vector3.new(1,1,1),t.CFrame,claw2,"DarkMatter",Vector3.new(1.6,1.6,1.6),"Block","Brick",false,nil,0.5)
  1414. b1.Anchored = false;b2.Anchored = false;
  1415. b1w = weldIt(claw2.BladeT,b1,CFrame.new(0,1.5,0),nil);b2w=weldIt(b1,b2,CFrame.new(0,0,0),nil);
  1416. end
  1417. for i = 0, 1, 0.1 do
  1418. if not shadowblade then
  1419. rw.C0 = CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(65*i),0,math.rad(25*i))
  1420. lw.C0 = CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(65*i),0,math.rad(-25*i))
  1421. b1.Mesh.Scale=Vector3.new(1*i,1*i,1*i);b2.Mesh.Scale=Vector3.new(1*i,1*i,1*i);b1f.Mesh.Scale=Vector3.new(1.25*i,1.25*i,1.25*i);b2f.Mesh.Scale=Vector3.new(1.25*i,1.25*i,1.25*i);b1f2.Mesh.Scale=Vector3.new(1.3*i,1.3*i,1.3*i);b2f2.Mesh.Scale=Vector3.new(1.3*i,1.3*i,1.3*i)
  1422. Darkness = Instance.new("PointLight")
  1423. Darkness.Range = 10
  1424. Darkness.Enabled = true
  1425. Darkness.Brightness = 1
  1426. Darkness.Color = BrickColor.new(mainColor).Color
  1427. Darkness.Parent = b1
  1428. else
  1429. rw.C0 = CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(-25*i),0,math.rad(-25*i))
  1430. lw.C0 = CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(0),0,math.rad(-90*i))
  1431. nw.C0 = CFrame.new(0,1.5,0)*CFrame.Angles(0,math.rad(70*i),0)
  1432. hrpw.C0 = co*CFrame.Angles(0,0,math.rad(-90*i))
  1433. end
  1434. stable(rw,lw)
  1435. wait()
  1436. end
  1437. humanoid.WalkSpeed = humanoid.WalkSpeed-6
  1438. if not shadowblade then
  1439. chargeso = Add.ingay("http://www.roblox.com/asset?id=153092334",t,false,true)
  1440. chargeso.Looped = true
  1441. chargeso:Play()
  1442. derm = {};derpy=0;moe = false;
  1443. cucle = wepcharge()
  1444. end
  1445. tdown = false
  1446. while mana<maxmana and keyf and ready do
  1447. --skills--
  1448. if tdown and #swords > 0 and not chargeskill then
  1449. chargeskill = true;keyf = true;tdown=false;
  1450. coroutine.resume(coroutine.create(function()
  1451. skills[6](swords[#swords],mouse)
  1452. tdown = false;chargeskill=false
  1453. end))
  1454. end
  1455. if edown and qdown and #swords == 8 and not chargeskill then
  1456. chargeskill = true;keyf = true;edown=false;qdown=false
  1457. coroutine.resume(coroutine.create(function()
  1458. skills[7](swords)
  1459. tdown = false;chargeskill=false
  1460. end))
  1461. end
  1462. --
  1463. anim = true
  1464. updateGui()
  1465. b1w.C0 = b1w.C0*CFrame.fromEulerAnglesXYZ(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)));b2w.C0 = b2w.C0*CFrame.fromEulerAnglesXYZ(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)));
  1466. if not shadowblade then
  1467. b1fw.C0 = b1fw.C0*CFrame.fromEulerAnglesXYZ(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)));b2fw.C0 = b2fw.C0*CFrame.fromEulerAnglesXYZ(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)));
  1468. cucle.Weld.C0 = cucle.Weld.C0*CFrame.Angles(math.rad(2),0,0)
  1469. end
  1470. if (mana)+.75<=maxmana and not chargeskill then
  1471. mana = mana+.75
  1472. elseif (mana)+.75>maxmana and not chargeskill then
  1473. mana = maxmana
  1474. end
  1475. if not shadowblade then
  1476. lp = claw1.BladeT.CFrame.p
  1477. for yos = 1, 3 do
  1478. for i = 0, 5 do
  1479. movesz = claw2.BladeT.Position+((claw1.BladeT.Position-claw2.BladeT.Position)*(i/5))+Vector3.new(math.random(-1,1)/math.random(2,4),math.random(-1,1)/math.random(2,4),0)
  1480. if moe == false then
  1481. if yos < 3 then
  1482. lcolor = "Really black"
  1483. else
  1484. lcolor = "Royal purple"
  1485. end
  1486. lning = createLightning(movesz,lp,lcolor,false,nil)
  1487. lp = movesz
  1488. else
  1489. lning = createLightning(movesz,lp,"Really black",true,derm[derpy])
  1490. derpy = derpy+1
  1491. lp = movesz
  1492. end
  1493. end
  1494. end
  1495. derpy = 1
  1496. moe = true
  1497. else
  1498. if inf/3 == math.floor(inf/3) then
  1499. lepart=Add.part(color1,Vector3.new(1,1,1),claw2.BladeT.CFrame+Vector3.new(math.random(-100,100)/35,math.random(-100,100)/35,math.random(-100,100)/35),claw2,"DarkMatter",Vector3.new(0.5,0.5,0.5),"Block","Brick",false,nil,0)
  1500. coroutine.resume(coroutine.create(function(p1,p2,w)
  1501. for i = 0, 1, 0.025 do
  1502. p1.CFrame = (p1.CFrame+Vector3.new(0,0.05,0))*CFrame.fromEulerAnglesXYZ(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
  1503. wait()
  1504. end
  1505. p1.Parent = nil
  1506. end),lepart)
  1507. end
  1508. end
  1509. wait()
  1510. end
  1511. for _, v in pairs(swords) do
  1512. v.Parent = nil
  1513. end
  1514. if not shadowblade then
  1515. cucle.Parent = nil
  1516. deleteTables("Lightning",claw1)
  1517. deleteTables("Lightning",claw1)
  1518. chargeso:Stop()
  1519. chargeso.Parent = nil
  1520. end
  1521. humanoid.WalkSpeed = humanoid.WalkSpeed+6
  1522. updateGui()
  1523. if shadowblade then
  1524. b1.Parent = nil;b2.Parent = nil;
  1525. end
  1526.  
  1527. for i = 0, 1, 0.1 do
  1528. if not shadowblade then
  1529. b1.Mesh.Scale=Vector3.new(1-1*i,1-1*i,1-1*i);b2.Mesh.Scale=Vector3.new(1-1*i,1-1*i,1-1*i);b1f.Mesh.Scale=Vector3.new(1.25-1.25*i,1.25-1.25*i,1.25-1.25*i);b2f.Mesh.Scale=Vector3.new(1.25-1.25*i,1.25-1.25*i,1.25-1.25*i);b1f2.Mesh.Scale=Vector3.new(1.3-1.3*i,1.3-1.3*i,1.3-1.3*i);b2f2.Mesh.Scale=Vector3.new(1.3-1.3*i,1.3-1.3*i,1.3-1.3*i)
  1530. rw.C0 = CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(65-65*i),0,math.rad(25-25*i))
  1531. lw.C0 = CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(65-65*i),0,math.rad(-25+25*i))
  1532. else
  1533. rw.C0 = CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(-25+25*i),0,math.rad(-25+25*i))
  1534. lw.C0 = CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(0),0,math.rad(-90+90*i))
  1535. nw.C0 = CFrame.new(0,1.5,0)*CFrame.Angles(0,math.rad(70-70*i),0)
  1536. hrpw.C0 = co*CFrame.Angles(0,0,math.rad(-90+90*i))
  1537. end
  1538. stable(rw,lw)
  1539. wait()
  1540. end
  1541. if not shadowblade then
  1542. b1f.Parent = nil;b2f.Parent = nil;b1f2.Parent = nil;b2f2.Parent = nil;b1.Parent = nil;b2.Parent = nil;
  1543. end
  1544. anim = false
  1545. end
  1546. end
  1547. lightnings = {}
  1548. function createLightning(tip,lastpoint,colur,yoyoyo, jim)
  1549. point = tip
  1550. unit = (lastpoint - point).unit
  1551. mag = (lastpoint - point).magnitude
  1552. middle = lastpoint-(unit*(mag/2))
  1553. cf = CFrame.new(middle, point)
  1554. if not yoyoyo and not jim then
  1555. l = Instance.new("Part")
  1556. l.Material = "SmoothPlastic"
  1557. l.Name = "Lightning"
  1558. l.Anchored = true
  1559. l.Transparency = 0.15
  1560. l.CanCollide = false
  1561. l.Size = Vector3.new(1, 1, mag)
  1562. l.BrickColor = BrickColor.new(colur)
  1563. l.TopSurface = "SmoothNoOutlines"
  1564. l.BottomSurface = "SmoothNoOutlines"
  1565. l.RightSurface = "SmoothNoOutlines"
  1566. l.LeftSurface = "SmoothNoOutlines"
  1567. local m = Instance.new("SpecialMesh",l)
  1568. m.Name = "Mesh"
  1569. m.MeshType = "Brick"
  1570. m.Scale = Vector3.new(.135, .135, mag)/l.Size
  1571. l.CFrame = cf
  1572. local w = weldIt(t,l,t.CFrame:toObjectSpace(l.CFrame),nil,l)
  1573. l.Anchored = false
  1574. l.Parent = claw1
  1575. table.insert(derm, l)
  1576. table.insert(lightnings, l)
  1577. return l
  1578. elseif jim then
  1579. jim.Mesh.Scale = Vector3.new(.135, .135, mag)/jim.Size
  1580. if jim:findFirstChild("Weld") then
  1581. jim.Weld.C0 = t.CFrame:toObjectSpace(cf)
  1582. end
  1583. end
  1584. end
  1585. function deleteTables(tabl, tem, clas)
  1586. charstaf = tem:GetChildren()
  1587. for i = 1, #charstaf do
  1588. if charstaf[i].Name == tabl then
  1589. charstaf[i].Parent = nil;
  1590. end
  1591. if clas then
  1592. if charstaf[i].ClassName == clas then
  1593. print("Deleting: "..charstaf[i].Name)
  1594. charstaf[i].Parent = nil;
  1595. end
  1596. end
  1597. end
  1598. end
  1599.  
  1600. function clearTable(tabl)
  1601. for i, v in pairs(tabl) do
  1602. table.remove(tabl,i)
  1603. end
  1604. end
  1605. function lineEffect(tip,lastpoint)
  1606. if tip~= nil then
  1607. off = (tip.Mesh.Scale.z/tip.Size.z)/2
  1608. point = (tip.CFrame*CFrame.new(0, 0, -off)).p
  1609. unit = (lastpoint - point).unit
  1610. mag = (lastpoint - point).magnitude
  1611. if mag>1 then
  1612. middle = lastpoint-(unit*(mag/2))
  1613. cf = CFrame.new(middle, point)
  1614. l = Instance.new("Part")
  1615. l.Material = "SmoothPlastic"
  1616. l.Name = "Wind"
  1617. l.Anchored = true
  1618. l.CanCollide = false
  1619. l.Size = Vector3.new(1, 1, mag)
  1620. l.BrickColor = BrickColor.new("Black")
  1621. l.TopSurface = "SmoothNoOutlines"
  1622. l.BottomSurface = "SmoothNoOutlines"
  1623. l.RightSurface = "SmoothNoOutlines"
  1624. l.LeftSurface = "SmoothNoOutlines"
  1625. local m= Instance.new("SpecialMesh")
  1626. m.Name = "Mesh"
  1627. m.MeshType = "Brick"
  1628. if shadowblades and tip == claw2.BladeT then
  1629. m.Scale = Vector3.new(1, .025, mag)/l.Size
  1630. l.Transparency = 0.8
  1631. else
  1632. m.Scale = Vector3.new(.215, .215, mag)/l.Size
  1633. end
  1634. m.Parent = l
  1635. l.Parent = claw1
  1636. l.CFrame = cf
  1637. if lastpoint == lastpoint1 then
  1638. lastpoint1 = point
  1639. elseif lastpoint == lastpoint2 then
  1640. lastpoint2 = point
  1641. else
  1642. print("Hello")
  1643. end
  1644. coroutine.resume(coroutine.create(function(lo,mog)
  1645. for i = 0 , 1 , 0.1 do
  1646. wait()
  1647. if shadowblades and tip == claw2.BladeT then
  1648. lo.Mesh.Scale = (Vector3.new(1.5/(lo.Size.X+(1.5-.025)), .025/lo.Size.Y, mog/lo.Size.Z))-Vector3.new(0, 0, 0)*i
  1649. else
  1650. lo.Transparency = 1*i
  1651. lo.Mesh.Scale = (Vector3.new(.215, .215, mog)/lo.Size)-Vector3.new(.215, .215, 0)*i
  1652. end
  1653. end
  1654. lo.Parent = nil;
  1655. end),l,mag)
  1656. return l
  1657. end
  1658. end
  1659. end
  1660.  
  1661. function fade()
  1662. for i, v in pairs(effects) do
  1663. if v~= nil then
  1664. mesh = v:findFirstChild("Mesh")
  1665. if mesh then
  1666. if v.Name == "Wind" then
  1667. mesh = v:findFirstChild("Mesh")
  1668. mesh.Scale = mesh.Scale-Vector3.new(0.0125, 0.0125, 0)
  1669. elseif v.Name == "Bul" then
  1670. mesh.Scale = mesh.Scale+Vector3.new(0.15, 0.15, 0.15)
  1671. elseif v.Name == "Shake" then
  1672. mesh.Scale = mesh.Scale+Vector3.new(0.05, 0, 0.05)
  1673. v.Transparency = v.Transparency+.05
  1674. elseif v.Name == "Shake2" then
  1675. mesh.Scale = mesh.Scale+Vector3.new(0.5*3, 0.05*1.5, 0.5*3)
  1676. v.Transparency = v.Transparency+.025
  1677. end
  1678. end
  1679. if v.Name ~= "Shake" and v.Name ~= char.Name then
  1680. v.Transparency = v.Transparency+.04
  1681. end
  1682. if v.Name ~= char.Name and v.Transparency>1 then
  1683. v.Parent = nil
  1684. elseif v.Name == char.Name then
  1685. if v:findFirstChild("ls") then
  1686. if v.ls.Value >= 10 then
  1687. v.Parent = nil
  1688. else
  1689. v.ls.Value = v.ls.Value +1
  1690. end
  1691. else
  1692. v.Parent = nil
  1693. end
  1694. end
  1695. end
  1696. end
  1697. end
  1698.  
  1699. function fallit()
  1700. fall = true
  1701. fall = false
  1702. end
  1703.  
  1704.  
  1705. function damageIt1(hit)
  1706. Ehumanoid = hit.Parent:findFirstChild("Humanoid")
  1707. if Ehumanoid and anim and gotDamage1 and Ehumanoid ~= humanoid then
  1708. Ehumanoid.Health = Ehumanoid.Health-(math.random(Damage-10, Damage+10))
  1709. gotDamage1 = false
  1710. end
  1711. end
  1712. function damageIt2(hit)
  1713. Ehumanoid = hit.Parent:findFirstChild("Humanoid")
  1714. if Ehumanoid and anim and gotDamage2 and Ehumanoid ~= humanoid then
  1715. Ehumanoid.Health = Ehumanoid.Health-(math.random(Damage-10, Damage+10))
  1716. gotDamage2 = false
  1717. end
  1718. end
  1719. function imf(item)
  1720. allStuffs = item:GetChildren()
  1721. for i = 1, #allStuffs do
  1722. if allStuffs[i].Name == "Blade" or allStuffs[i].Name == "BladeT" then
  1723. if item == claw1 then
  1724. allStuffs[i].Touched:connect(damageIt1)
  1725. else
  1726. allStuffs[i].Touched:connect(damageIt2)
  1727. end
  1728. end
  1729. end
  1730. end
  1731. humans = {}
  1732. function findHum(yo)
  1733. clearTable(humans)
  1734. local all = yo:GetChildren()
  1735. if #all > 0 then
  1736. for po = 1, #all do
  1737. if all[po] then
  1738. if all[po]:findFirstChild("Humanoid") then
  1739. player1 = game.Players:GetPlayerFromCharacter(all[po])
  1740. if player1 and player1.Name ~= player.Name then
  1741. table.insert(humans,all[po])
  1742. elseif not player1 then
  1743. table.insert(humans,all[po])
  1744. end
  1745. else
  1746. jerp = all[po]:GetChildren()
  1747. if #jerp >0 then
  1748. findHum(all[po])
  1749. end
  1750. end
  1751. end
  1752. end
  1753. end
  1754. end
  1755. function distanceDamage(item,dist,dmg)
  1756. print("sup")
  1757. --[[findHum(Workspace)
  1758. for i, v in pairs(humans) do
  1759. hea = v:findFirstChild("Head")
  1760. if hea then
  1761. if (hea.Position-item.Position).magnitude <= dist then
  1762. v["Humanoid"]:TakeDamage(dmg)
  1763. end
  1764. end
  1765. end]]
  1766. local c = game.Workspace:GetChildren();
  1767. for i = 1, #c do
  1768. local hum = c[i]:findFirstChild("Humanoid")
  1769. if hum ~= nil and hum.Health ~= 0 then
  1770. local head = c[i]:findFirstChild("Head");
  1771. if head ~= nil then
  1772. local targ = head.Position - item.Position;
  1773. local mag = targ.magnitude;
  1774. if mag <= dist and c[i].Name ~= player.Name then
  1775. hum.Health = hum.Health-(math.random(Damage-10, Damage+10))
  1776. end
  1777. end
  1778. end
  1779. end
  1780. end
  1781.  
  1782. function projectileDamage(hit,s,dmg)
  1783. hum = hit.Parent:findFirstChild("Humanoid")
  1784. if hum and not s:findFirstChild(hit.Parent.Name) and hit.Parent ~= char then
  1785. bval = Instance.new("BoolValue",s);bval.Name = hit.Parent.Name
  1786. hum.Health = hum.Health-(dmg)
  1787. end
  1788. end
  1789. function checkifintable(tabl,yo)
  1790. for i, v in pairs(tabl) do
  1791. if v ==yo then
  1792. return true
  1793. end
  1794. end
  1795. return false
  1796. end
  1797. function checkdist(ge,tebl)
  1798. eym = nil;eym2 = nil
  1799. local c = Workspace:GetChildren()
  1800. for i = 1, #c do
  1801. hum = c[i]:findFirstChild("Humanoid")
  1802. if hum and hum.Health ~= 0 and c[i] ~= char then
  1803. toso = c[i]:findFirstChild("Torso")
  1804. if toso then
  1805. if (toso.Position-t.Position).magnitude <= 20 then
  1806. if checkifintable(tebl,c[i]) == false then
  1807. table.insert(tebl,c[i])
  1808. return c[i]
  1809. else
  1810. if ge == c[i] then
  1811. eym = c[i]
  1812. else
  1813. eym = c[i];eym2=c[i];
  1814. end
  1815. end
  1816. end
  1817. end
  1818. end
  1819. end
  1820. if ge == eym then
  1821. if eym2 ~= nil then
  1822. return eym2
  1823. else
  1824. return eym
  1825. end
  1826. else
  1827. return eym
  1828. end
  1829. end
  1830. main1 = weldIt(ra,claw1["Handle"],CFrame.new(0.5, -0.5, 0)*CFrame.Angles(math.rad(180),math.rad(180),math.rad(0)))
  1831. main2 = weldIt(la,claw2["Handle"],CFrame.new(-0.5, -0.5, 0)*CFrame.Angles(math.rad(180),0,0))
  1832. imf(claw1);imf(claw2);
  1833.  
  1834.  
  1835.  
  1836.  
  1837. ---{GUI}---
  1838. ScreenGui = Instance.new("ScreenGui", player:findFirstChild("PlayerGui"))
  1839. backgroundLabel = Instance.new("TextLabel", ScreenGui)
  1840. backgroundLabel.Text = ""
  1841. backgroundLabel.Position = UDim2.new(0,0,0,150)
  1842. backgroundLabel.Size = UDim2.new(0,275,0,10)
  1843. backgroundLabel.Name = "Background"
  1844. backgroundLabel.BackgroundColor3 = Color3.new(0,0,0)
  1845. EnergyGui = backgroundLabel:Clone()
  1846. EnergyGui.Parent = ScreenGui
  1847. EnergyGui.Size = UDim2.new(0,275*(mana/maxmana),0,10)
  1848. EnergyGui.Name = "Energy"
  1849. EnergyGui.BackgroundColor3 = BrickColor.new(color1).Color
  1850. CGui = EnergyGui:Clone()
  1851. CGui.Parent = ScreenGui
  1852. CGui.Name = "Enough"
  1853. CGui.BackgroundTransparency = 1
  1854. CGui.TextColor3 = EnergyGui.BackgroundColor3
  1855. CGui.Position = UDim2.new(0,0,0,160)
  1856. CGui.Text = "Energy: "..mana.."/"..maxmana
  1857. ------------
  1858. function updateGui()
  1859. EnergyGui.Size = UDim2.new(0,275*(mana/maxmana),0,10)
  1860. CGui.Text = "Energy: "..math.floor(mana).."/"..maxmana
  1861. end
  1862. formerhealth = humanoid.MaxHealth
  1863. function hchange()
  1864. if humanoid.Health ~= formerhealth and shieldon and humanoid.Health < formerhealth then
  1865. humanoid.Health = humanoid.Health+25
  1866. formerhealth = humanoid.Health
  1867. end
  1868. if shadowr then
  1869. humanoid.Jump = false
  1870. end
  1871. end
  1872. lowerBlade(true)
  1873. ready = false
  1874. humanoid.Running:connect(run)
  1875. humanoid.Jumping:connect(jump)
  1876. rl.Touched:connect(fell);ll.Touched:connect(fell);
  1877. humanoid.FreeFalling:connect(fallit)
  1878. humanoid.Changed:connect(hchange)
  1879. hb.Selected:connect(sel)
  1880. hb.Deselected:connect(deSel)
  1881. inf = 0
  1882. coroutine.resume(coroutine.create(function()
  1883. while true do
  1884. for i = 1, 10 do
  1885. if combo == formercombo then
  1886. wait(0.1)
  1887. else
  1888. break
  1889. end
  1890. end
  1891. if combo==formercombo then
  1892. combo = ""
  1893. end
  1894. formercombo = combo
  1895. wait()
  1896. end
  1897. end))
  1898. coroutine.resume(coroutine.create(function()
  1899. while true do
  1900. if shadowblade then
  1901. prt = Add.part(color1,Vector3.new(1,1,1),claw2.BladeT.CFrame,claw2,"shadow",Vector3.new(0.2,1,0),"Block","Sphere",false,nil,0.2)
  1902. prt.Anchored = false
  1903. yoweld = weldIt(claw2.BladeT,prt,CFrame.new(0,0,0),nil)
  1904. coroutine.resume(coroutine.create(function(part)
  1905. for i = 0, 1,0.1 do
  1906. prt.Mesh.Scale = Vector3.new(0.2,1+1.5*i,1.5*i)
  1907. prt.Transparency = 0.2+0.6*i
  1908. wait()
  1909. end
  1910. part.Parent = nil
  1911. end),prt)
  1912. end
  1913. wait(0.5)
  1914. end
  1915. end))
  1916. local partey = {}
  1917. function Adde()
  1918. local p = Instance.new("Part",claw1)
  1919. p.Anchored = true
  1920. p.formFactor = "Custom"
  1921. p.Size = Vector3.new(0.8,0.8,0.8)
  1922. p.TopSurface = 0
  1923. p.BottomSurface = 0
  1924. p.BrickColor = BrickColor.new(color1)
  1925. p.CanCollide = false
  1926. p.CFrame = t.CFrame * CFrame.new(math.random(-30,30)/10,math.random(-10,10)/10,math.random(-30,30)/10)
  1927. coroutine.resume(coroutine.create(function(a,b,c)
  1928. for i = 1, 30 do
  1929. local perc2 = (1-math.cos(math.pi/2*b)) -- cosine going from 0 to 1 depending on percentage
  1930. b = b + 0.03 > 1 and 1 or b + 0.03 -- percentage rising until 1
  1931. a.Size = Vector3.new(0.3 + 0.6*(1-perc2),0.3 + 0.6*(1-perc2),0.3 + 0.6*(1-perc2)) -- size scaling down based on cosine percentage (1 to 0 though)
  1932. a.CFrame = c * CFrame.new(0,5*perc2,0) * CFrame.Angles(math.pi*math.random(0,200)/100,math.pi*math.random(0,200)/100,math.pi*math.random(0,200)/100) -- positioning the part to core position + 5*cosine percentage, then giving random angles
  1933. a.Transparency = perc2 -- setting transparency to fade out based on cosine percentage
  1934. if b >= 1 then
  1935. a.Parent = nil
  1936. end
  1937. wait()
  1938. end
  1939. end),p,0.12,p.CFrame)
  1940. end
  1941.  
  1942. while true do
  1943. if runs and not anim and ready then
  1944. if not rlw or not llw then
  1945. boomchakalaka = false
  1946. inf = 0
  1947. rh.Parent=nil;lh.Parent=nil;rlw = weldIt(t,rl, CFrame.new(0.5,-1.5,0),nil);llw = weldIt(t,ll, CFrame.new(-0.5,-1.5,0),nil);
  1948. elseif rlw.Parent ~= t or rlw.Parent ~= t then
  1949. inf = 0
  1950. rh.Parent=nil;lh.Parent=nil;rlw = weldIt(t,rl, CFrame.new(0.5,-1.5,0),nil);llw = weldIt(t,ll, CFrame.new(-0.5,-1.5,0),nil);
  1951. end
  1952. rlw.C0 = CFrame.new(0.5,-1.7+.35*math.cos(inf/2),0-0.35*math.cos(inf/2))*CFrame.Angles(math.rad(-15),0,0)
  1953. llw.C0 = CFrame.new(-0.5,-1.7-.35*math.cos(inf/2),0+0.35*math.cos(inf/2))*CFrame.Angles(math.rad(-15),0,0)
  1954. if runarmsanim then
  1955. rw.C0 = CFrame.new(1.5, 0.5, 0)*CFrame.Angles(math.rad(-40+10*math.cos(inf/5)),0,math.rad(35))--+5*math.cos(inf/2.5)
  1956. if not shadowblade then
  1957. lw.C0 = CFrame.new(-1.5, 0.5, 0)*CFrame.Angles(math.rad(-40+10*math.cos(inf/5)),0,math.rad(-35))
  1958. end
  1959. end
  1960. elseif not runs and not anim and ready and (t.Velocity*Vector3.new(1, 0, 1)).magnitude <= 2 and (t.Velocity*Vector3.new(0, 1, 0)).magnitude <= 2 and (t.Velocity*Vector3.new(1, 0, 1)).magnitude < 2 then
  1961. if not rlw or not llw or rlw.Parent ~= t then
  1962. inf = 0;
  1963. rh.Parent=nil;lh.Parent=nil;rlw = weldIt(t,rl, CFrame.new(0.5,-1.5,0),nil);llw = weldIt(t,ll, CFrame.new(-0.5,-1.5,0),nil);
  1964. for i = 0, 1, 0.1 do
  1965. if not runs and not anim and ready and (t.Velocity*Vector3.new(1, 0, 1)).magnitude <= 2 and (t.Velocity*Vector3.new(0, 1, 0)).magnitude <= 2 and (t.Velocity*Vector3.new(1, 0, 1)).magnitude < 2 then
  1966. rw.C0 = CFrame.new(1.5,0.5+.25*i,0)*CFrame.Angles(0,math.rad(10*i),math.rad(22*i))
  1967. lw.C0 = CFrame.new(-1.5,0.5+.25*i,0)*CFrame.Angles(0,math.rad(-10*i),math.rad(-22*i))
  1968. rlw.C0 = CFrame.new(0.5+.175*i,-1.5-.3*i,0)*CFrame.Angles(math.rad(0),0,math.rad(17*i))
  1969. llw.C0 = CFrame.new(-0.5-.175*i,-1.5-.3*i,0)*CFrame.Angles(math.rad(0),0,math.rad(-17*i))
  1970. nw.C0 = CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(5*i),math.rad(20*i),0)
  1971. hrpw.C0 = co*CFrame.Angles(0,0,math.rad(-20*i))
  1972. stable(rw,lw)
  1973. wait()
  1974. else
  1975. break
  1976. end
  1977. end
  1978. end
  1979.  
  1980. --rlw.C0 = CFrame.new(0.65,-1.75,0)*CFrame.Angles(math.rad(0),0,math.rad(15+2*math.cos(inf/11)))
  1981. --llw.C0 = CFrame.new(-0.65,-1.75,0)*CFrame.Angles(math.rad(0),0,math.rad(-15-2*math.cos(inf/11)))
  1982. rw.C0 = CFrame.new(1.5,0.65+0.1*math.cos(inf/14),0)*CFrame.Angles(math.rad(0),math.rad(10),math.rad(20+2*math.cos(inf/14)))
  1983. lw.C0 = CFrame.new(-1.5,0.65+0.1*math.cos(inf/14),0)*CFrame.Angles(math.rad(0),math.rad(-10),math.rad(-20-2*math.cos(inf/14)))
  1984. stable(rw,lw)
  1985. nw.C0 = CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(5*math.cos(inf/14)),math.rad(20),0)
  1986. elseif anim then
  1987. boomchakalaka = false
  1988. end
  1989.  
  1990. --lineEffect(claw1.BladeT,lastpoint1)
  1991. --lineEffect(claw2.BladeT,lastpoint2)
  1992. wait(.004)
  1993. fade()
  1994. inf = inf+1
  1995. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement