Advertisement
mathmasterphil

Berzerk Claws

Feb 22nd, 2015
277
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 73.93 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 = 15
  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.9
  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>=25 and throwing ==false then
  727. throwing = true;mana = mana-25;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.6) 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. sword.Weld.C0= (sco+Vector3.new(10*i,0,0))*CFrame.Angles(math.rad(90),0,0)
  870. end
  871. sword.Weld.Parent = nil
  872. bg = Add.BG(sword)
  873. bg.cframe = CFrame.new(sword.Position,mouse.Hit.p)*CFrame.Angles(math.rad(-90),0,0)
  874. bv = Add.BV(sword,CFrame.new(sword.Position,mouse.Hit.p).lookVector*100)
  875. 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)
  876. rol.CFrame = CFrame.new(sword.Position,mouse.Hit.p)*CFrame.Angles(0,math.rad(0),0)
  877. table.insert(swordclones,rol)
  878. coroutine.resume(coroutine.create(function(clone)
  879. for i = 0, 1, 0.1 do
  880. clone.Mesh.Scale = Vector3.new(2+1.2*i,2+1.2*i,0.1)
  881. clone.Transparency = 0.2+0.6*i
  882. wait()
  883. end
  884. clone.Parent = nil
  885. end),rol)
  886. local touch = true
  887. sword.Touched:connect(function(hit)
  888. if touch and hit.Parent ~= char and hit.Parent ~= claw1 and hit.Parent ~= claw2 and hit.Parent.ClassName ~= "Hat" then
  889. touch = false
  890. for i, v in pairs(swordclones) do
  891. if hit == v then
  892. return
  893. end
  894. end
  895. 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)
  896. 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)
  897. p.CFrame = cf2
  898. 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)
  899. p2.CFrame = cf2
  900. 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)
  901. p3.CFrame = cf2
  902. 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)
  903. ring.CFrame = cf2*CFrame.Angles(math.rad(90),0,math.rad(90))
  904. distanceDamage(p,10,Damage*2.2)
  905. coroutine.resume(coroutine.create(function(item,item2,b1,r)
  906. for i = 0, 1, 0.1 do
  907. 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)))
  908. 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)
  909. wait()
  910. end
  911. item.Parent=nil;item2.Parent=nil;b1.Parent = nil;r.Parent = nil
  912. end),p,p2,p3,ring)
  913. sword.Parent = nil;
  914. end
  915. end)
  916. coroutine.resume(coroutine.create(function(clone)
  917. --derppoint = Vector3.new(clone.CFrame)
  918. while clone do
  919. hey = clone:Clone()
  920. table.insert(swordclones,hey)
  921. hey.BodyGyro.Parent = nil
  922. hey.BodyVelocity.Parent = nil
  923. hey.Anchored = true
  924. hey.Parent = claw1
  925. hey.CFrame = clone.CFrame
  926. coroutine.resume(coroutine.create(function(s)
  927. for i = 0, 1, 0.1 do
  928. s.Transparency = 0.4+0.4*i
  929. wait()
  930. end
  931. s.Parent = nil
  932. end),hey)
  933. wait(0.25)
  934. end
  935. end),hey)
  936. coroutine.resume(coroutine.create(function()
  937. wait(4)
  938. if sword then
  939. sword.Parent = nil
  940. end
  941. end))
  942. end,
  943. --ULTIMATE--
  944. function(tabl)
  945. scos = {}
  946. for i, v in pairs(tabl) do
  947. table.insert(scos,v.Weld.C0)
  948. end
  949. for i = 0, 1, 0.1 do
  950. for x, v in pairs(tabl) do
  951. 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))
  952. v.Mesh.Scale = Vector3.new(0.85+2*i, 0.45+2.4*i, 0.85+2*i)
  953. end
  954. wait()
  955. end
  956. end
  957. }
  958. 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
  959. wait()
  960. end
  961. 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");
  962. while not ls or not rs or not neck or not hrpw do
  963. wait()
  964. end
  965. co = hrpw.C0
  966. ---------------
  967. function weldIt(p1,p2,r1,r2,place)
  968. local w = Instance.new("Weld")
  969. if place then
  970. w.Parent = place
  971. else
  972. w.Parent = p1
  973. end
  974. w.Part0 = p1
  975. w.Part1 = p2
  976. w.C0 = r1
  977. if r2 then
  978. w.C1 = r2
  979. end
  980. return w
  981. end
  982.  
  983. function run(speed)
  984. if rw and lw and not anim and ready then
  985. if speed >0 and (t.Velocity*Vector3.new(1, 0, 1)).magnitude > 2 and not runs then
  986. runs = true;runarmsanim = false;
  987. for i = 0, 1, 0.2 do
  988. if not anim and run and not fall and not jumping then
  989. rw.C0 = CFrame.new(1.5, 0.5, 0)*CFrame.Angles(math.rad(-40*i),0,math.rad(35*i))
  990. if not shadowblade then
  991. lw.C0 = CFrame.new(-1.5+.25*i, 0.5, 0)*CFrame.Angles(math.rad(-40*i),0,math.rad(-35*i))
  992. else
  993. lw.C0 = CFrame.new(-1.5, 0.5, 0)*CFrame.Angles(0,math.rad(-140*i),math.rad(-100*i))
  994. end
  995. nw.C0 = CFrame.new(0, 1.5, 0)*CFrame.Angles(math.rad(15*i),0,0)
  996. hrpw.C0 = co*CFrame.Angles(math.rad(20*i),0,0)
  997. rw.C1 = CFrame.new(0,0.5,0)
  998. lw.C1 = CFrame.new(0,0.5,0)
  999. wait(0.001)
  1000. else
  1001. runs = false
  1002. hrpw.C0 = co
  1003. break
  1004. end
  1005. if not anim and run and not jumping then
  1006. runarmsanim = true;
  1007. end
  1008. end
  1009. elseif runs then
  1010. runs = false
  1011. if not anim then
  1012. rh.Parent = t;lh.Parent =t;
  1013. if rlw and llw then
  1014. rlw.Parent = nil;llw.Parent = nil
  1015. end
  1016. end
  1017. for i = 0, 1, 0.2 do
  1018. if not anim and run and not fall and not jumping then
  1019. rw.C0 = CFrame.new(1.5, 0.5, 0)*CFrame.Angles(math.rad(-40+40*i),0,math.rad(35-35*i))
  1020. if not shadowblade then
  1021. lw.C0 = CFrame.new(-1.5, 0.5, 0)*CFrame.Angles(math.rad(-40+40*i),0,math.rad(-35+35*i))
  1022. else
  1023. lw.C0 = CFrame.new(-1.25-.25*i, 0.5, 0)*CFrame.Angles(0,math.rad(-140+140*i),math.rad(-100+100*i))
  1024. end
  1025. nw.C0 = CFrame.new(0, 1.5, 0)*CFrame.Angles(math.rad(15-15*i),0,0)
  1026. hrpw.C0 = co*CFrame.Angles(math.rad(20-20*i),0,0)
  1027. rw.C1 = CFrame.new(0,0.5,0)
  1028. lw.C1 = CFrame.new(0,0.5,0)
  1029. wait(0.001)
  1030. else
  1031. hrpw.C0 = co
  1032. break
  1033. end
  1034. end
  1035. end
  1036. else
  1037. runs = false
  1038. end
  1039. end
  1040.  
  1041. function jump()
  1042. if rw and lw and not anim then
  1043. jumping = true
  1044. for i = 0, 1, 0.2 do
  1045. if not anim and not fall then
  1046. rw.C0 = CFrame.new(1.5, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(-25*i),math.rad(100*i))
  1047. lw.C0 = CFrame.new(-1.5, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(25*i),math.rad(-100*i))
  1048. rw.C1 = CFrame.new(0,0.5,0)
  1049. lw.C1 = CFrame.new(0,0.5,0)
  1050. wait(0.001)
  1051. else
  1052. break
  1053. end
  1054. end
  1055. end
  1056. end
  1057. function fell(hit)
  1058. if rw and lw and not anim and jumping then
  1059. if hit.CanCollide == true and hit.Parent ~= char then
  1060. for i = 0, 1, 0.2 do
  1061. if not anim and not fall then
  1062. rw.C0 = CFrame.new(1.5, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(-25+25*i),math.rad(100-100*i))
  1063. lw.C0 = CFrame.new(-1.5, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(25-25*i),math.rad(-100+100*i))
  1064. rw.C1 = CFrame.new(0,0.5,0)
  1065. lw.C1 = CFrame.new(0,0.5,0)
  1066. wait(0.001)
  1067. else
  1068. break
  1069. end
  1070. end
  1071. jumping = false
  1072. end
  1073. elseif anim and lw and rw and not noimpact then
  1074. if hit.CanCollide == true and hit.Parent ~= char and hit.Name ~= "Blade" and hit.Name ~= "BladeT" then
  1075. noimpact = true
  1076. impact = hit
  1077. end
  1078. end
  1079. end
  1080. function lower(wat,em,wee)
  1081. yos = wat:GetChildren()
  1082. enr = wat.Parent:GetChildren()
  1083. for x = 0, 1, 0.1 do
  1084. for i = 1, #yos do
  1085. if yos[i].Name == "Main" then
  1086. if em == true then
  1087. yos[i].C0 = wee-Vector3.new(0, 0.25*x,0)
  1088. else
  1089. yos[i].C0 = wee+Vector3.new(0, 0.25*x,0)
  1090. end
  1091.  
  1092. end
  1093. end
  1094. for b = 1, #enr do
  1095. if enr[b].Name == "Blade" or enr[b].Name == "BladeT" then
  1096. if em == true then
  1097. enr[b].Transparency = 1*x
  1098. else
  1099. enr[b].Transparency = 1-1*x
  1100. end
  1101. end
  1102. end
  1103. wait(0.001)
  1104. end
  1105. end
  1106.  
  1107. function lowerBlade(em)
  1108. lower(claw1.Handle,em,mainweld1c)
  1109. lower(claw2.Handle,em,mainweld2c)
  1110. end
  1111.  
  1112.  
  1113. function click(mouse)
  1114. if ready then
  1115. if not anim then
  1116. rh.Parent = t;lh.Parent =t;
  1117. if rlw and llw then
  1118. rlw.Parent = nil;llw.Parent = nil
  1119. end
  1120. fixtorso()
  1121. nw.C0 = CFrame.new(0, 1.5, 0)*CFrame.Angles(0,0,0)
  1122. end
  1123. fixtorso()
  1124. if at == 1 and mouse and not anim then
  1125. attacks[1](mouse)
  1126. at = 2
  1127. elseif at == 2 and mouse and not anim then
  1128. attacks[2](mouse)
  1129. at = 3
  1130. elseif at == 3 and mouse and not anim then
  1131. attacks[3](mouse)
  1132. at = 1
  1133. end
  1134. end
  1135. end
  1136. function fixtorso()
  1137. if not anim then
  1138. hrpw.C0 = co
  1139. end
  1140. end
  1141. function checkcombo(combo)
  1142. if string.len(combo) <= 4 then
  1143. if combo == "wadd" and not anim and ready and not shadowblade then
  1144. anim = true;shadowblade=true;
  1145. for i = 0, 1, 0.25 do
  1146. rw.C0 = CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(25*i),math.rad(-140*i),math.rad(-55*i))
  1147. lw.C0 = CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(35*i),math.rad(130*i),math.rad(55*i))
  1148. stable(rw,lw);Adde()
  1149. wait()
  1150. end
  1151. blok = Add.part(color1,Vector3.new(1,1,1),claw2.BladeT.CFrame,claw2,"blok",Vector3.new(1,1,1),"Block","Brick",false,nil,0)
  1152. blok.Anchored = false
  1153. leb = weldIt(claw2.BladeT,blok,CFrame.new(0,-1,0),nil)
  1154. 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)
  1155. blok3.Anchored = false
  1156. leb3 = weldIt(claw2.BladeT,blok3,CFrame.new(0,-1,0),nil)
  1157. 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)
  1158. blok2.Anchored = false
  1159. leb2 = weldIt(claw2.BladeT,blok2,CFrame.new(0,-1,0),nil)
  1160. for i = 1, 255 do
  1161. if i%3 == 0 then
  1162. Adde()
  1163. end
  1164. if i/10 == math.floor(i/10) then
  1165. 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)
  1166. 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))))
  1167. cf = CFrame.new(hitit.p,claw2.BladeT.CFrame.p)
  1168. rando.Anchored = false
  1169. ler = weldIt(claw2.BladeT,rando,claw2.BladeT.CFrame:toObjectSpace(cf),nil)
  1170. coroutine.resume(coroutine.create(function(p,w,cf,num)
  1171. for i = 0, 1, 0.1 do
  1172. xf = CFrame.new(cf.p,claw2.BladeT.CFrame.p)
  1173. derp = claw2.BladeT.CFrame.p-xf.p
  1174. p.Mesh.Scale = Vector3.new(.8*i,.8*i,.9+(num/(num/5))*i)
  1175. w.C0 = claw2.BladeT.CFrame:toObjectSpace(xf+derp*i)
  1176. wait()
  1177. end
  1178. p.Parent = nil
  1179. end),rando,ler,hitit,i)
  1180. end
  1181. 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)))
  1182. 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)))
  1183. wait()
  1184. end
  1185. blok.Parent = nil;blok2.Parent = nil;blok3.Parent = nil
  1186. for i = 0,1,0.1 do
  1187. Adde()
  1188. local eyo = claw2:GetChildren()
  1189. for x = 1, #eyo do
  1190. if eyo[x].Name == "SB" then
  1191. eyo[x].Transparency = 0.5*i
  1192. end
  1193. end
  1194. wait()
  1195. end
  1196. for i = 0, 1, 0.25 do
  1197. Adde()
  1198. 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))
  1199. 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))
  1200. stable(rw,lw)
  1201. wait()
  1202. end
  1203. anim = false
  1204. elseif shadowblade and combo == "wadd" and not anim and ready then
  1205. anim = true
  1206. for i = 0,1,0.1 do
  1207. Adde()
  1208. local eyo = claw2:GetChildren()
  1209. for x = 1, #eyo do
  1210. if eyo[x].Name == "SB" then
  1211. eyo[x].Transparency = 0.5+0.5*i
  1212. end
  1213. end
  1214. wait()
  1215. end
  1216. anim = false;shadowblade = false;
  1217. end
  1218. else
  1219. combo = ""
  1220. end
  1221. end
  1222. function keys(key,mouse)
  1223. key = key:lower()
  1224. if key == "f" or key == "z" or key == "x" or key == "g" then
  1225. if not anim then
  1226. rh.Parent = t;lh.Parent =t;
  1227. if rlw and llw then
  1228. rlw.Parent = nil;llw.Parent = nil
  1229. end
  1230. fixtorso()
  1231. nw.C0 = CFrame.new(0, 1.5, 0)*CFrame.Angles(0,0,0)
  1232. end
  1233. end
  1234. if key == "f" and not keyf then
  1235. keyf = true
  1236. charge(mouse)
  1237. elseif key == "t" and keyf then
  1238. tdown = true;
  1239. elseif key == "e" and keyf then
  1240. edown =true;
  1241. elseif key == "q" and keyf then
  1242. qdown = true;
  1243. elseif key == "z" then
  1244. if not throwmode then
  1245. clickagain = true
  1246. skills[1]()
  1247. elseif not throwing then
  1248. skills[4]()
  1249. end
  1250. elseif key == "x" then
  1251. if not throwmode then
  1252. skills[2]()
  1253. elseif not throwing then
  1254. skills[5]()
  1255. end
  1256. elseif key == "g" then
  1257. if not throwmode then
  1258. skills[3]()
  1259. elseif not throwing then
  1260. throwmode = false
  1261. end
  1262. end
  1263. if key == "w" then
  1264. if last == "" then
  1265. combo = combo.."w"
  1266. last = "w"
  1267. else
  1268. last = ""
  1269. combo = ""
  1270. end
  1271. elseif key == "a" then
  1272. if last == "w" then
  1273. combo = combo.."a"
  1274. last = "a"
  1275. else
  1276. last = ""
  1277. combo = ""
  1278. end
  1279. elseif key == "d" then
  1280. if last == "a" or last == "d" then
  1281. combo = combo.."d"
  1282. last = "d"
  1283. else
  1284. last = ""
  1285. combo = ""
  1286. end
  1287. else
  1288. last = ""
  1289. combo = ""
  1290. end
  1291. checkcombo(combo)
  1292. end
  1293. function keyd(key)
  1294. key = key:lower()
  1295. if key == "f" and keyf and not chargeskill then
  1296. keyf= false
  1297. elseif key == "x" and throwmode then
  1298. shieldon = false
  1299. end
  1300. end
  1301. function sel(mouse)
  1302. while equiping or notequi do
  1303. wait()
  1304. end
  1305. if not ready then
  1306. fallit()
  1307. coroutine.resume(coroutine.create(function()
  1308. equiping = true
  1309. lowerBlade(false)
  1310. equiping = false;
  1311. end))
  1312. rs.Parent = nil;ls.Parent = nil;neck.Parent = nil;
  1313. rw = weldIt(t,ra,CFrame.new(1.5, 0, 0))
  1314. lw = weldIt(t,la,CFrame.new(-1.5,0,0))
  1315. nw = weldIt(t,head,CFrame.new(0, 1.5, 0))
  1316. ready = true;
  1317. end
  1318. mouse.Button1Down:connect(function() click(mouse) end)
  1319. mouse.KeyDown:connect(function(k) keys(k,mouse) end)
  1320. mouse.KeyUp:connect(keyd)
  1321. end
  1322.  
  1323. function reset()
  1324. rs.Parent = t
  1325. ls.Parent = t
  1326. neck.Parent = t
  1327. rh.Parent = t
  1328. lh.Parent = t
  1329. if rw then
  1330. rw.Parent = nil
  1331. end
  1332. if lw then
  1333. lw.Parent = nil
  1334. end
  1335. if nw then
  1336. nw.Parent = nil
  1337. end
  1338. if rlw then
  1339. rlw.Parent = nil
  1340. end
  1341. if llw then
  1342. llw.Parent = nil
  1343. end
  1344. hrpw.C0 = co
  1345. end
  1346. function deSel(mouse)
  1347. while equiping or notequi or anim do
  1348. wait()
  1349. end
  1350. if ready then
  1351. notequi = true
  1352. lowerBlade(true)
  1353. notequi = false
  1354. ready = false
  1355. reset()
  1356. end
  1357. end
  1358.  
  1359. function wepcharge()
  1360. num = 8
  1361. swords = {}
  1362. tframelol = nil
  1363. 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)
  1364. circle.Anchored = false
  1365. local cweld = weldIt(t,circle,CFrame.new(0,-3,0)*CFrame.Angles(0,0,math.rad(90)),nil,circle)
  1366. tframelol = t.CFrame
  1367. coroutine.resume(coroutine.create(function()
  1368. for i = 0,1,(1/num) do
  1369. if mana<maxmana and keyf and ready and not chargeskill then
  1370. 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)
  1371. sword.Anchored = false
  1372. 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)
  1373. table.insert(swords,sword)
  1374. coroutine.resume(coroutine.create(function(s)
  1375. for i = 0, 1, 0.1 do
  1376. if s then
  1377. s.Transparency = 1-0.6*i
  1378. wait()
  1379. else
  1380. break
  1381. end;end;end),sword)
  1382. wait(1)
  1383. elseif tplay then
  1384. i = i-(1/num)
  1385. while tplay do
  1386. wait()
  1387. end
  1388. else
  1389. break
  1390. end
  1391. end
  1392. end))
  1393. return circle
  1394. end
  1395.  
  1396. function charge(mouse)
  1397. if mana < maxmana and not anim and ready then
  1398. anim = true
  1399. updateGui()
  1400. if not shadowblade then
  1401. 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)
  1402. b2 = b1:Clone();b2.Parent=claw1;b2.CFrame = claw2.BladeT.CFrame;
  1403. 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)
  1404. 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);
  1405. b1w = weldIt(claw1.BladeT,b1,CFrame.new(0,0,0),nil);b2w = weldIt(claw2.BladeT,b2,CFrame.new(0,0,0),nil);
  1406. b1fw = weldIt(b1,b1f,CFrame.new(0,0,0),nil);b2fw=weldIt(b2,b2f,CFrame.new(0,0,0),nil);
  1407. weldIt(b1f,b1f2,CFrame.new(0,0,0),nil);weldIt(b2f,b2f2,CFrame.new(0,0,0),nil)
  1408. b1.Anchored = false;b2.Anchored = false;b1f.Anchored=false;b2f.Anchored = false;b1f2.Anchored=false;b2f2.Anchored=false;
  1409. else
  1410. b1 = Add.part(color1,Vector3.new(1,1,1),t.CFrame,claw2,"DarkMatter",Vector3.new(1,1,1),"Block","Brick",false,nil,0)
  1411. 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)
  1412. b1.Anchored = false;b2.Anchored = false;
  1413. b1w = weldIt(claw2.BladeT,b1,CFrame.new(0,1.5,0),nil);b2w=weldIt(b1,b2,CFrame.new(0,0,0),nil);
  1414. end
  1415. for i = 0, 1, 0.1 do
  1416. if not shadowblade then
  1417. rw.C0 = CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(65*i),0,math.rad(25*i))
  1418. lw.C0 = CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(65*i),0,math.rad(-25*i))
  1419. 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)
  1420. Darkness = Instance.new("PointLight")
  1421. Darkness.Range = 10
  1422. Darkness.Enabled = true
  1423. Darkness.Brightness = 1
  1424. Darkness.Color = BrickColor.new(mainColor).Color
  1425. Darkness.Parent = b1
  1426. else
  1427. rw.C0 = CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(-25*i),0,math.rad(-25*i))
  1428. lw.C0 = CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(0),0,math.rad(-90*i))
  1429. nw.C0 = CFrame.new(0,1.5,0)*CFrame.Angles(0,math.rad(70*i),0)
  1430. hrpw.C0 = co*CFrame.Angles(0,0,math.rad(-90*i))
  1431. end
  1432. stable(rw,lw)
  1433. wait()
  1434. end
  1435. humanoid.WalkSpeed = humanoid.WalkSpeed-6
  1436. if not shadowblade then
  1437. chargeso = Add.ingay("http://www.roblox.com/asset?id=153092334",t,false,true)
  1438. chargeso.Looped = true
  1439. chargeso:Play()
  1440. derm = {};derpy=0;moe = false;
  1441. cucle = wepcharge()
  1442. end
  1443. tdown = false
  1444. while mana<maxmana and keyf and ready do
  1445. --skills--
  1446. if tdown and #swords > 0 and not chargeskill then
  1447. chargeskill = true;keyf = true;tdown=false;
  1448. coroutine.resume(coroutine.create(function()
  1449. skills[6](swords[#swords],mouse)
  1450. tdown = false;chargeskill=false
  1451. end))
  1452. end
  1453. if edown and qdown and #swords == 8 and not chargeskill then
  1454. chargeskill = true;keyf = true;edown=false;qdown=false
  1455. coroutine.resume(coroutine.create(function()
  1456. skills[7](swords)
  1457. tdown = false;chargeskill=false
  1458. end))
  1459. end
  1460. --
  1461. anim = true
  1462. updateGui()
  1463. 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)));
  1464. if not shadowblade then
  1465. 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)));
  1466. cucle.Weld.C0 = cucle.Weld.C0*CFrame.Angles(math.rad(2),0,0)
  1467. end
  1468. if (mana)+.75<=maxmana and not chargeskill then
  1469. mana = mana+.75
  1470. elseif (mana)+.75>maxmana and not chargeskill then
  1471. mana = maxmana
  1472. end
  1473. if not shadowblade then
  1474. lp = claw1.BladeT.CFrame.p
  1475. for yos = 1, 3 do
  1476. for i = 0, 5 do
  1477. 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)
  1478. if moe == false then
  1479. if yos < 3 then
  1480. lcolor = "Really black"
  1481. else
  1482. lcolor = "Royal purple"
  1483. end
  1484. lning = createLightning(movesz,lp,lcolor,false,nil)
  1485. lp = movesz
  1486. else
  1487. lning = createLightning(movesz,lp,"Really black",true,derm[derpy])
  1488. derpy = derpy+1
  1489. lp = movesz
  1490. end
  1491. end
  1492. end
  1493. derpy = 1
  1494. moe = true
  1495. else
  1496. if inf/3 == math.floor(inf/3) then
  1497. 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)
  1498. coroutine.resume(coroutine.create(function(p1,p2,w)
  1499. for i = 0, 1, 0.025 do
  1500. 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)))
  1501. wait()
  1502. end
  1503. p1.Parent = nil
  1504. end),lepart)
  1505. end
  1506. end
  1507. wait()
  1508. end
  1509. for _, v in pairs(swords) do
  1510. v.Parent = nil
  1511. end
  1512. if not shadowblade then
  1513. cucle.Parent = nil
  1514. deleteTables("Lightning",claw1)
  1515. deleteTables("Lightning",claw1)
  1516. chargeso:Stop()
  1517. chargeso.Parent = nil
  1518. end
  1519. humanoid.WalkSpeed = humanoid.WalkSpeed+6
  1520. updateGui()
  1521. if shadowblade then
  1522. b1.Parent = nil;b2.Parent = nil;
  1523. end
  1524.  
  1525. for i = 0, 1, 0.1 do
  1526. if not shadowblade then
  1527. 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)
  1528. rw.C0 = CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(65-65*i),0,math.rad(25-25*i))
  1529. lw.C0 = CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(65-65*i),0,math.rad(-25+25*i))
  1530. else
  1531. rw.C0 = CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(-25+25*i),0,math.rad(-25+25*i))
  1532. lw.C0 = CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(0),0,math.rad(-90+90*i))
  1533. nw.C0 = CFrame.new(0,1.5,0)*CFrame.Angles(0,math.rad(70-70*i),0)
  1534. hrpw.C0 = co*CFrame.Angles(0,0,math.rad(-90+90*i))
  1535. end
  1536. stable(rw,lw)
  1537. wait()
  1538. end
  1539. if not shadowblade then
  1540. b1f.Parent = nil;b2f.Parent = nil;b1f2.Parent = nil;b2f2.Parent = nil;b1.Parent = nil;b2.Parent = nil;
  1541. end
  1542. anim = false
  1543. end
  1544. end
  1545. lightnings = {}
  1546. function createLightning(tip,lastpoint,colur,yoyoyo, jim)
  1547. point = tip
  1548. unit = (lastpoint - point).unit
  1549. mag = (lastpoint - point).magnitude
  1550. middle = lastpoint-(unit*(mag/2))
  1551. cf = CFrame.new(middle, point)
  1552. if not yoyoyo and not jim then
  1553. l = Instance.new("Part")
  1554. l.Material = "SmoothPlastic"
  1555. l.Name = "Lightning"
  1556. l.Anchored = true
  1557. l.Transparency = 0.15
  1558. l.CanCollide = false
  1559. l.Size = Vector3.new(1, 1, mag)
  1560. l.BrickColor = BrickColor.new(colur)
  1561. l.TopSurface = "SmoothNoOutlines"
  1562. l.BottomSurface = "SmoothNoOutlines"
  1563. l.RightSurface = "SmoothNoOutlines"
  1564. l.LeftSurface = "SmoothNoOutlines"
  1565. local m = Instance.new("SpecialMesh",l)
  1566. m.Name = "Mesh"
  1567. m.MeshType = "Brick"
  1568. m.Scale = Vector3.new(.135, .135, mag)/l.Size
  1569. l.CFrame = cf
  1570. local w = weldIt(t,l,t.CFrame:toObjectSpace(l.CFrame),nil,l)
  1571. l.Anchored = false
  1572. l.Parent = claw1
  1573. table.insert(derm, l)
  1574. table.insert(lightnings, l)
  1575. return l
  1576. elseif jim then
  1577. jim.Mesh.Scale = Vector3.new(.135, .135, mag)/jim.Size
  1578. if jim:findFirstChild("Weld") then
  1579. jim.Weld.C0 = t.CFrame:toObjectSpace(cf)
  1580. end
  1581. end
  1582. end
  1583. function deleteTables(tabl, tem, clas)
  1584. charstaf = tem:GetChildren()
  1585. for i = 1, #charstaf do
  1586. if charstaf[i].Name == tabl then
  1587. charstaf[i].Parent = nil;
  1588. end
  1589. if clas then
  1590. if charstaf[i].ClassName == clas then
  1591. print("Deleting: "..charstaf[i].Name)
  1592. charstaf[i].Parent = nil;
  1593. end
  1594. end
  1595. end
  1596. end
  1597.  
  1598. function clearTable(tabl)
  1599. for i, v in pairs(tabl) do
  1600. table.remove(tabl,i)
  1601. end
  1602. end
  1603. function lineEffect(tip,lastpoint)
  1604. if tip~= nil then
  1605. off = (tip.Mesh.Scale.z/tip.Size.z)/2
  1606. point = (tip.CFrame*CFrame.new(0, 0, -off)).p
  1607. unit = (lastpoint - point).unit
  1608. mag = (lastpoint - point).magnitude
  1609. if mag>1 then
  1610. middle = lastpoint-(unit*(mag/2))
  1611. cf = CFrame.new(middle, point)
  1612. l = Instance.new("Part")
  1613. l.Material = "SmoothPlastic"
  1614. l.Name = "Wind"
  1615. l.Anchored = true
  1616. l.CanCollide = false
  1617. l.Size = Vector3.new(1, 1, mag)
  1618. l.BrickColor = BrickColor.new("Black")
  1619. l.TopSurface = "SmoothNoOutlines"
  1620. l.BottomSurface = "SmoothNoOutlines"
  1621. l.RightSurface = "SmoothNoOutlines"
  1622. l.LeftSurface = "SmoothNoOutlines"
  1623. local m= Instance.new("SpecialMesh")
  1624. m.Name = "Mesh"
  1625. m.MeshType = "Brick"
  1626. if shadowblades and tip == claw2.BladeT then
  1627. m.Scale = Vector3.new(1, .025, mag)/l.Size
  1628. l.Transparency = 0.8
  1629. else
  1630. m.Scale = Vector3.new(.215, .215, mag)/l.Size
  1631. end
  1632. m.Parent = l
  1633. l.Parent = claw1
  1634. l.CFrame = cf
  1635. if lastpoint == lastpoint1 then
  1636. lastpoint1 = point
  1637. elseif lastpoint == lastpoint2 then
  1638. lastpoint2 = point
  1639. else
  1640. print("Hello")
  1641. end
  1642. coroutine.resume(coroutine.create(function(lo,mog)
  1643. for i = 0 , 1 , 0.1 do
  1644. wait()
  1645. if shadowblades and tip == claw2.BladeT then
  1646. 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
  1647. else
  1648. lo.Transparency = 1*i
  1649. lo.Mesh.Scale = (Vector3.new(.215, .215, mog)/lo.Size)-Vector3.new(.215, .215, 0)*i
  1650. end
  1651. end
  1652. lo.Parent = nil;
  1653. end),l,mag)
  1654. return l
  1655. end
  1656. end
  1657. end
  1658.  
  1659. function fade()
  1660. for i, v in pairs(effects) do
  1661. if v~= nil then
  1662. mesh = v:findFirstChild("Mesh")
  1663. if mesh then
  1664. if v.Name == "Wind" then
  1665. mesh = v:findFirstChild("Mesh")
  1666. mesh.Scale = mesh.Scale-Vector3.new(0.0125, 0.0125, 0)
  1667. elseif v.Name == "Bul" then
  1668. mesh.Scale = mesh.Scale+Vector3.new(0.15, 0.15, 0.15)
  1669. elseif v.Name == "Shake" then
  1670. mesh.Scale = mesh.Scale+Vector3.new(0.05, 0, 0.05)
  1671. v.Transparency = v.Transparency+.05
  1672. elseif v.Name == "Shake2" then
  1673. mesh.Scale = mesh.Scale+Vector3.new(0.5*3, 0.05*1.5, 0.5*3)
  1674. v.Transparency = v.Transparency+.025
  1675. end
  1676. end
  1677. if v.Name ~= "Shake" and v.Name ~= char.Name then
  1678. v.Transparency = v.Transparency+.04
  1679. end
  1680. if v.Name ~= char.Name and v.Transparency>1 then
  1681. v.Parent = nil
  1682. elseif v.Name == char.Name then
  1683. if v:findFirstChild("ls") then
  1684. if v.ls.Value >= 10 then
  1685. v.Parent = nil
  1686. else
  1687. v.ls.Value = v.ls.Value +1
  1688. end
  1689. else
  1690. v.Parent = nil
  1691. end
  1692. end
  1693. end
  1694. end
  1695. end
  1696.  
  1697. function fallit()
  1698. fall = true
  1699. fall = false
  1700. end
  1701.  
  1702.  
  1703. function damageIt1(hit)
  1704. Ehumanoid = hit.Parent:findFirstChild("Humanoid")
  1705. if Ehumanoid and anim and gotDamage1 and Ehumanoid ~= humanoid then
  1706. Ehumanoid.Health = Ehumanoid.Health-(math.random(Damage-10, Damage+10))
  1707. gotDamage1 = false
  1708. end
  1709. end
  1710. function damageIt2(hit)
  1711. Ehumanoid = hit.Parent:findFirstChild("Humanoid")
  1712. if Ehumanoid and anim and gotDamage2 and Ehumanoid ~= humanoid then
  1713. Ehumanoid.Health = Ehumanoid.Health-(math.random(Damage-10, Damage+10))
  1714. gotDamage2 = false
  1715. end
  1716. end
  1717. function imf(item)
  1718. allStuffs = item:GetChildren()
  1719. for i = 1, #allStuffs do
  1720. if allStuffs[i].Name == "Blade" or allStuffs[i].Name == "BladeT" then
  1721. if item == claw1 then
  1722. allStuffs[i].Touched:connect(damageIt1)
  1723. else
  1724. allStuffs[i].Touched:connect(damageIt2)
  1725. end
  1726. end
  1727. end
  1728. end
  1729. humans = {}
  1730. function findHum(yo)
  1731. clearTable(humans)
  1732. local all = yo:GetChildren()
  1733. if #all > 0 then
  1734. for po = 1, #all do
  1735. if all[po] then
  1736. if all[po]:findFirstChild("Humanoid") then
  1737. player1 = game.Players:GetPlayerFromCharacter(all[po])
  1738. if player1 and player1.Name ~= player.Name then
  1739. table.insert(humans,all[po])
  1740. elseif not player1 then
  1741. table.insert(humans,all[po])
  1742. end
  1743. else
  1744. jerp = all[po]:GetChildren()
  1745. if #jerp >0 then
  1746. findHum(all[po])
  1747. end
  1748. end
  1749. end
  1750. end
  1751. end
  1752. end
  1753. function distanceDamage(item,dist,dmg)
  1754. print("sup")
  1755. --[[findHum(Workspace)
  1756. for i, v in pairs(humans) do
  1757. hea = v:findFirstChild("Head")
  1758. if hea then
  1759. if (hea.Position-item.Position).magnitude <= dist then
  1760. v["Humanoid"]:TakeDamage(dmg)
  1761. end
  1762. end
  1763. end]]
  1764. local c = game.Workspace:GetChildren();
  1765. for i = 1, #c do
  1766. local hum = c[i]:findFirstChild("Humanoid")
  1767. if hum ~= nil and hum.Health ~= 0 then
  1768. local head = c[i]:findFirstChild("Head");
  1769. if head ~= nil then
  1770. local targ = head.Position - item.Position;
  1771. local mag = targ.magnitude;
  1772. if mag <= dist and c[i].Name ~= player.Name then
  1773. hum.Health = hum.Health-(math.random(Damage-10, Damage+10))
  1774. end
  1775. end
  1776. end
  1777. end
  1778. end
  1779.  
  1780. function projectileDamage(hit,s,dmg)
  1781. hum = hit.Parent:findFirstChild("Humanoid")
  1782. if hum and not s:findFirstChild(hit.Parent.Name) and hit.Parent ~= char then
  1783. bval = Instance.new("BoolValue",s);bval.Name = hit.Parent.Name
  1784. hum.Health = hum.Health-(dmg)
  1785. end
  1786. end
  1787. function checkifintable(tabl,yo)
  1788. for i, v in pairs(tabl) do
  1789. if v ==yo then
  1790. return true
  1791. end
  1792. end
  1793. return false
  1794. end
  1795. function checkdist(ge,tebl)
  1796. eym = nil;eym2 = nil
  1797. local c = Workspace:GetChildren()
  1798. for i = 1, #c do
  1799. hum = c[i]:findFirstChild("Humanoid")
  1800. if hum and hum.Health ~= 0 and c[i] ~= char then
  1801. toso = c[i]:findFirstChild("Torso")
  1802. if toso then
  1803. if (toso.Position-t.Position).magnitude <= 20 then
  1804. if checkifintable(tebl,c[i]) == false then
  1805. table.insert(tebl,c[i])
  1806. return c[i]
  1807. else
  1808. if ge == c[i] then
  1809. eym = c[i]
  1810. else
  1811. eym = c[i];eym2=c[i];
  1812. end
  1813. end
  1814. end
  1815. end
  1816. end
  1817. end
  1818. if ge == eym then
  1819. if eym2 ~= nil then
  1820. return eym2
  1821. else
  1822. return eym
  1823. end
  1824. else
  1825. return eym
  1826. end
  1827. end
  1828. main1 = weldIt(ra,claw1["Handle"],CFrame.new(0.5, -0.5, 0)*CFrame.Angles(math.rad(180),math.rad(180),math.rad(0)))
  1829. main2 = weldIt(la,claw2["Handle"],CFrame.new(-0.5, -0.5, 0)*CFrame.Angles(math.rad(180),0,0))
  1830. imf(claw1);imf(claw2);
  1831.  
  1832.  
  1833.  
  1834.  
  1835. ---{GUI}---
  1836. ScreenGui = Instance.new("ScreenGui", player:findFirstChild("PlayerGui"))
  1837. backgroundLabel = Instance.new("TextLabel", ScreenGui)
  1838. backgroundLabel.Text = ""
  1839. backgroundLabel.Position = UDim2.new(0,0,0,150)
  1840. backgroundLabel.Size = UDim2.new(0,275,0,10)
  1841. backgroundLabel.Name = "Background"
  1842. backgroundLabel.BackgroundColor3 = Color3.new(0,0,0)
  1843. EnergyGui = backgroundLabel:Clone()
  1844. EnergyGui.Parent = ScreenGui
  1845. EnergyGui.Size = UDim2.new(0,275*(mana/maxmana),0,10)
  1846. EnergyGui.Name = "Energy"
  1847. EnergyGui.BackgroundColor3 = BrickColor.new(color1).Color
  1848. CGui = EnergyGui:Clone()
  1849. CGui.Parent = ScreenGui
  1850. CGui.Name = "Enough"
  1851. CGui.BackgroundTransparency = 1
  1852. CGui.TextColor3 = EnergyGui.BackgroundColor3
  1853. CGui.Position = UDim2.new(0,0,0,160)
  1854. CGui.Text = "Energy: "..mana.."/"..maxmana
  1855. ------------
  1856. function updateGui()
  1857. EnergyGui.Size = UDim2.new(0,275*(mana/maxmana),0,10)
  1858. CGui.Text = "Energy: "..math.floor(mana).."/"..maxmana
  1859. end
  1860. formerhealth = humanoid.MaxHealth
  1861. function hchange()
  1862. if humanoid.Health ~= formerhealth and shieldon and humanoid.Health < formerhealth then
  1863. humanoid.Health = humanoid.Health+25
  1864. formerhealth = humanoid.Health
  1865. end
  1866. if shadowr then
  1867. humanoid.Jump = false
  1868. end
  1869. end
  1870. lowerBlade(true)
  1871. ready = false
  1872. humanoid.Running:connect(run)
  1873. humanoid.Jumping:connect(jump)
  1874. rl.Touched:connect(fell);ll.Touched:connect(fell);
  1875. humanoid.FreeFalling:connect(fallit)
  1876. humanoid.Changed:connect(hchange)
  1877. hb.Selected:connect(sel)
  1878. hb.Deselected:connect(deSel)
  1879. inf = 0
  1880. coroutine.resume(coroutine.create(function()
  1881. while true do
  1882. for i = 1, 10 do
  1883. if combo == formercombo then
  1884. wait(0.1)
  1885. else
  1886. break
  1887. end
  1888. end
  1889. if combo==formercombo then
  1890. combo = ""
  1891. end
  1892. formercombo = combo
  1893. wait()
  1894. end
  1895. end))
  1896. coroutine.resume(coroutine.create(function()
  1897. while true do
  1898. if shadowblade then
  1899. 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)
  1900. prt.Anchored = false
  1901. yoweld = weldIt(claw2.BladeT,prt,CFrame.new(0,0,0),nil)
  1902. coroutine.resume(coroutine.create(function(part)
  1903. for i = 0, 1,0.1 do
  1904. prt.Mesh.Scale = Vector3.new(0.2,1+1.5*i,1.5*i)
  1905. prt.Transparency = 0.2+0.6*i
  1906. wait()
  1907. end
  1908. part.Parent = nil
  1909. end),prt)
  1910. end
  1911. wait(0.5)
  1912. end
  1913. end))
  1914. local partey = {}
  1915. function Adde()
  1916. local p = Instance.new("Part",claw1)
  1917. p.Anchored = true
  1918. p.formFactor = "Custom"
  1919. p.Size = Vector3.new(0.8,0.8,0.8)
  1920. p.TopSurface = 0
  1921. p.BottomSurface = 0
  1922. p.BrickColor = BrickColor.new(color1)
  1923. p.CanCollide = false
  1924. p.CFrame = t.CFrame * CFrame.new(math.random(-30,30)/10,math.random(-10,10)/10,math.random(-30,30)/10)
  1925. coroutine.resume(coroutine.create(function(a,b,c)
  1926. for i = 1, 30 do
  1927. local perc2 = (1-math.cos(math.pi/2*b)) -- cosine going from 0 to 1 depending on percentage
  1928. b = b + 0.03 > 1 and 1 or b + 0.03 -- percentage rising until 1
  1929. 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)
  1930. 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
  1931. a.Transparency = perc2 -- setting transparency to fade out based on cosine percentage
  1932. if b >= 1 then
  1933. a.Parent = nil
  1934. end
  1935. wait()
  1936. end
  1937. end),p,0.12,p.CFrame)
  1938. end
  1939.  
  1940. while true do
  1941. if runs and not anim and ready then
  1942. if not rlw or not llw then
  1943. boomchakalaka = false
  1944. inf = 0
  1945. 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);
  1946. elseif rlw.Parent ~= t or rlw.Parent ~= t then
  1947. inf = 0
  1948. 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);
  1949. end
  1950. 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)
  1951. 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)
  1952. if runarmsanim then
  1953. 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)
  1954. if not shadowblade then
  1955. lw.C0 = CFrame.new(-1.5, 0.5, 0)*CFrame.Angles(math.rad(-40+10*math.cos(inf/5)),0,math.rad(-35))
  1956. end
  1957. end
  1958. 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
  1959. if not rlw or not llw or rlw.Parent ~= t then
  1960. inf = 0;
  1961. 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);
  1962. for i = 0, 1, 0.1 do
  1963. 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
  1964. rw.C0 = CFrame.new(1.5,0.5+.25*i,0)*CFrame.Angles(0,math.rad(10*i),math.rad(22*i))
  1965. lw.C0 = CFrame.new(-1.5,0.5+.25*i,0)*CFrame.Angles(0,math.rad(-10*i),math.rad(-22*i))
  1966. rlw.C0 = CFrame.new(0.5+.175*i,-1.5-.3*i,0)*CFrame.Angles(math.rad(0),0,math.rad(17*i))
  1967. llw.C0 = CFrame.new(-0.5-.175*i,-1.5-.3*i,0)*CFrame.Angles(math.rad(0),0,math.rad(-17*i))
  1968. nw.C0 = CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(5*i),math.rad(20*i),0)
  1969. hrpw.C0 = co*CFrame.Angles(0,0,math.rad(-20*i))
  1970. stable(rw,lw)
  1971. wait()
  1972. else
  1973. break
  1974. end
  1975. end
  1976. end
  1977.  
  1978. --rlw.C0 = CFrame.new(0.65,-1.75,0)*CFrame.Angles(math.rad(0),0,math.rad(15+2*math.cos(inf/11)))
  1979. --llw.C0 = CFrame.new(-0.65,-1.75,0)*CFrame.Angles(math.rad(0),0,math.rad(-15-2*math.cos(inf/11)))
  1980. 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)))
  1981. 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)))
  1982. stable(rw,lw)
  1983. nw.C0 = CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(5*math.cos(inf/14)),math.rad(20),0)
  1984. elseif anim then
  1985. boomchakalaka = false
  1986. end
  1987.  
  1988. --lineEffect(claw1.BladeT,lastpoint1)
  1989. --lineEffect(claw2.BladeT,lastpoint2)
  1990. wait(.004)
  1991. fade()
  1992. inf = inf+1
  1993. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement