Drewiscool123

Soul Warden

Jul 27th, 2018
298
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 51.94 KB | None | 0 0
  1.  
  2. Player = game:GetService("Players").LocalPlayer
  3. Character = Player.Character
  4. PlayerGui = Player.PlayerGui
  5. Backpack = Player.Backpack
  6. Torso = Character.Torso
  7. Head = Character.Head
  8. Humanoid = Character.Humanoid
  9. LeftArm = Character["Left Arm"]
  10. LeftLeg = Character["Left Leg"]
  11. RightArm = Character["Right Arm"]
  12. RightLeg = Character["Right Leg"]
  13. LS = Torso["Left Shoulder"]
  14. LH = Torso["Left Hip"]
  15. RS = Torso["Right Shoulder"]
  16. RH = Torso["Right Hip"]
  17. Neck = Torso.Neck
  18. it=Instance.new
  19. vt=Vector3.new
  20. cf=CFrame.new
  21. euler=CFrame.fromEulerAnglesXYZ
  22. angles=CFrame.Angles
  23. necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  24. necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  25. neckoav=cf(0, -2.25, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  26. neckoav2=cf(0, 1.125, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  27. LHC0=cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0)
  28. RHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0)
  29. RootPart=Character.HumanoidRootPart
  30. RootJoint=RootPart.RootJoint
  31. RootCF=euler(-1.57,0,3.14)
  32. attack = false
  33. shadowattack=false
  34. attackdebounce = false
  35. MMouse=nil
  36. combo=0
  37. cancombo=false
  38. combomove=false
  39. combotype="None"
  40. AvatarMode="Follow"
  41. lifestolen=false
  42. LifeStolenTorso=nil
  43. local LastPoint=nil
  44. local LastPoint2=nil
  45. local LastPoint3=nil
  46. local Point=LastPoint
  47. local Point2=LastPoint2
  48. local Point3=LastPoint3
  49. local rLastPoint=nil
  50. local rLastPoint2=nil
  51. local rLastPoint3=nil
  52. local rPoint=rLastPoint
  53. local rPoint2=rLastPoint2
  54. local rPoint3=rLastPoint3
  55. local avLastPoint=nil
  56. local avLastPoint2=nil
  57. local avLastPoint3=nil
  58. local avPoint=avLastPoint
  59. local avPoint2=avLastPoint2
  60. local avPoint3=avLastPoint3
  61. local TargetTorso=nil
  62. local con1=nil
  63. local con2=nil
  64. local shadowcon=nil
  65. --player
  66. player = nil
  67. --save shoulders
  68. RSH, LSH = nil, nil
  69. --welds
  70. RW, LW = Instance.new("Weld"), Instance.new("Weld")
  71. RW.Name="Right Shoulder" LW.Name="Left Shoulder"
  72. LH=Torso["Left Hip"]
  73. RH=Torso["Right Hip"]
  74.  
  75. if Character:findFirstChild("Warden Claws",true) ~= nil then
  76. Character:findFirstChild("Warden Claws",true).Parent = nil
  77. end
  78. if Character:findFirstChild("Avatar",true) ~= nil then
  79. Character:findFirstChild("Avatar",true).Parent = nil
  80. end
  81.  
  82.  
  83. function NoOutline(Part)
  84. Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
  85. end
  86.  
  87. function part(formfactor,parent,reflectance,transparency,brickcolor,name,size)
  88. local fp = it("Part")
  89. fp.formFactor = formfactor
  90. fp.Parent = parent
  91. fp.Reflectance = reflectance
  92. fp.Transparency = transparency
  93. fp.CanCollide = false
  94. fp.Locked=true
  95. fp.BrickColor = brickcolor
  96. fp.Name = name
  97. fp.Size = size
  98. fp.Position = Torso.Position+vt(0,50,0)
  99. NoOutline(fp)
  100. fp.Material="Neon"
  101. fp:BreakJoints()
  102. return fp
  103. end
  104.  
  105. function mesh(Mesh,part,meshtype,meshid,offset,scale)
  106. local mesh = it(Mesh)
  107. mesh.Parent = part
  108. if Mesh=="SpecialMesh" then
  109. mesh.MeshType = meshtype
  110. mesh.MeshId = meshid
  111. end
  112. mesh.Offset=offset
  113. mesh.Scale=scale
  114. return mesh
  115. end
  116.  
  117. function weld(parent,part0,part1,c0)
  118. local weld = it("Weld")
  119. weld.Parent = parent
  120. weld.Part0 = part0
  121. weld.Part1 = part1
  122. weld.C0 = c0
  123. return weld
  124. end
  125.  
  126. local modelzorz = Instance.new("Model")
  127. modelzorz.Parent = Character
  128. modelzorz.Name = "Warden Claws"
  129.  
  130. local prt1=part(1,modelzorz,0,0,BrickColor.new("Black"),"Part1",vt(1,1,1))
  131. local prt2=part(1,modelzorz,0,0,BrickColor.new("Really black"),"Part2",vt(1,1,1))
  132. local prt3=part(1,modelzorz,0,0,BrickColor.new("Black"),"Part3",vt(1,1,1))
  133. local prt4=part(1,modelzorz,0,0,BrickColor.new("Really black"),"Part4",vt(1,1,1))
  134. local prt5=part(1,modelzorz,0,0,BrickColor.new("Black"),"Part5",vt(1,1,1))
  135. local prt6=part(1,modelzorz,0,0,BrickColor.new("Really black"),"Part6",vt(1,1,1))
  136. local prt7=part(1,modelzorz,0,0,BrickColor.new("Black"),"Part7",vt(1,1,1))
  137. local prt8=part(1,modelzorz,0,0,BrickColor.new("Really black"),"Part8",vt(1,1,1))
  138. local prt9=part(1,modelzorz,0,0,BrickColor.new("Black"),"Part9",vt(1,1,1))
  139. local prt10=part(1,modelzorz,0,0,BrickColor.new("Really black"),"Part10",vt(1,1,1))
  140. local prt11=part(1,modelzorz,0,0,BrickColor.new("Black"),"Part11",vt(1,1,1))
  141. local prt12=part(1,modelzorz,0,0,BrickColor.new("Really black"),"Part12",vt(1,1,1))
  142.  
  143. local msh1=mesh("BlockMesh",prt1,"","",vt(0,0,0),vt(0.2,1,0.1))
  144. local msh2=mesh("SpecialMesh",prt2,"Wedge","",vt(0,0,0),vt(0.1,0.2,0.2))
  145. local msh3=mesh("BlockMesh",prt3,"","",vt(0,0,0),vt(0.2,1,0.1))
  146. local msh4=mesh("SpecialMesh",prt4,"Wedge","",vt(0,0,0),vt(0.1,0.2,0.2))
  147. local msh5=mesh("BlockMesh",prt5,"","",vt(0,0,0),vt(0.2,1,0.1))
  148. local msh6=mesh("SpecialMesh",prt6,"Wedge","",vt(0,0,0),vt(0.1,0.2,0.2))
  149. local msh7=mesh("BlockMesh",prt7,"","",vt(0,0,0),vt(0.2,1,0.1))
  150. local msh8=mesh("SpecialMesh",prt8,"Wedge","",vt(0,0,0),vt(0.1,0.2,0.2))
  151. local msh9=mesh("BlockMesh",prt9,"","",vt(0,0,0),vt(0.2,1,0.1))
  152. local msh10=mesh("SpecialMesh",prt10,"Wedge","",vt(0,0,0),vt(0.1,0.2,0.2))
  153. local msh11=mesh("BlockMesh",prt11,"","",vt(0,0,0),vt(0.2,1,0.1))
  154. local msh12=mesh("SpecialMesh",prt12,"Wedge","",vt(0,0,0),vt(0.1,0.2,0.2))
  155.  
  156. local wld1=weld(prt1,prt1,LeftArm,euler(0,0,0)*cf(0.41,1,0.4))
  157. local wld2=weld(prt2,prt2,prt1,euler(0,1.57,3.14)*cf(0,0.715,0))
  158. local wld3=weld(prt3,prt3,LeftArm,euler(0,0,0)*cf(0.41,1,0))
  159. local wld4=weld(prt4,prt4,prt3,euler(0,1.57,3.14)*cf(0,0.715,0))
  160. local wld5=weld(prt5,prt5,LeftArm,euler(0,0,0)*cf(0.41,1,-0.4))
  161. local wld6=weld(prt6,prt6,prt5,euler(0,1.57,3.14)*cf(0,0.715,0))
  162. local wld7=weld(prt7,prt7,RightArm,euler(0,0,0)*cf(-0.41,1,0.4))
  163. local wld8=weld(prt8,prt8,prt7,euler(0,-1.57,3.14)*cf(0,0.715,0))
  164. local wld9=weld(prt9,prt9,RightArm,euler(0,0,0)*cf(-0.41,1,0))
  165. local wld10=weld(prt10,prt10,prt9,euler(0,-1.57,3.14)*cf(0,0.715,0))
  166. local wld11=weld(prt11,prt11,RightArm,euler(0,0,0)*cf(-0.41,1,-0.4))
  167. local wld12=weld(prt12,prt12,prt11,euler(0,-1.57,3.14)*cf(0,0.715,0))
  168.  
  169. local Avatar=Instance.new("Model")
  170. Avatar.Parent=modelzorz
  171. Avatar.Name="Shadow"
  172.  
  173. local aroot=part(1,Avatar,0,1,BrickColor.new("Black"),"RootPart2",vt(1,1,1))
  174. local aprt1=part(1,Avatar,0,1,BrickColor.new("Black"),"Torso",vt(1,1,1))
  175. local aprt2=part(1,Avatar,0,0.5,BrickColor.new("Black"),"Head",vt(1,1,1))
  176. local aprt3=part(1,Avatar,0,0.5,BrickColor.new("Black"),"Left Arm",vt(1,1,1))
  177. local aprt4=part(1,Avatar,0,1,BrickColor.new("Black"),"Right Arm",vt(1,1,1))
  178. local aprt5=part(1,Avatar,0,0.5,BrickColor.new("Black"),"Claw1",vt(1,1,1))
  179. local aprt6=part(1,Avatar,0,0.5,BrickColor.new("Black"),"Claw1.1",vt(1,1,1))
  180. local aprt7=part(1,Avatar,0,0.5,BrickColor.new("Black"),"Claw2",vt(1,1,1))
  181. local aprt8=part(1,Avatar,0,0.5,BrickColor.new("Black"),"Claw2.1",vt(1,1,1))
  182. local aprt9=part(1,Avatar,0,0.5,BrickColor.new("Black"),"Claw3",vt(1,1,1))
  183. local aprt10=part(1,Avatar,0,0.5,BrickColor.new("Black"),"Claw3.1",vt(1,1,1))
  184. local aprt11=part(1,Avatar,0,1,BrickColor.new("Black"),"Left Arm Hit",vt(1,1,1))
  185.  
  186. local arootmsh=mesh("BlockMesh",aroot,"","",vt(0,0,0),vt(2,2,1))
  187. local amsh1=mesh("BlockMesh",aprt1,"","",vt(0,0,0),vt(4,4,2))
  188. local amsh2=mesh("SpecialMesh",aprt2,"Head","",vt(0,0,0),vt(2.5,2,2.5))
  189. local amsh3=mesh("BlockMesh",aprt3,"","",vt(0,0,0),vt(2,4,2))
  190. local amsh4=mesh("BlockMesh",aprt4,"","",vt(0,0,0),vt(2,4,2))
  191. local amsh5=mesh("BlockMesh",aprt5,"","",vt(0,0,0),vt(0.3,1.5,0.1))
  192. local amsh6=mesh("SpecialMesh",aprt6,"Wedge","",vt(0,0,0),vt(0.1,0.3,0.3))
  193. local amsh7=mesh("BlockMesh",aprt7,"","",vt(0,0,0),vt(0.3,1.5,0.1))
  194. local amsh8=mesh("SpecialMesh",aprt8,"Wedge","",vt(0,0,0),vt(0.1,0.3,0.3))
  195. local amsh9=mesh("BlockMesh",aprt9,"","",vt(0,0,0),vt(0.3,1.5,0.1))
  196. local amsh10=mesh("SpecialMesh",aprt10,"Wedge","",vt(0,0,0),vt(0.1,0.3,0.3))
  197. local amsh11=mesh("BlockMesh",aprt11,"","",vt(0,0,0),vt(1,1,1))
  198. Avatar:BreakJoints()
  199.  
  200. local arwld=weld(aroot,aroot,RootPart,euler(0,0,0)*cf(0,0,0))
  201. local awld1=weld(aprt1,aprt1,aroot,euler(0,0,0)*cf(0,-3,-2))
  202. local awld2=weld(aprt2,aprt2,aprt1,neckoav)
  203. awld2.C1=neckoav2
  204. local awld3=weld(aprt3,aprt1,aprt3,cf(3,1,0)*euler(0,0,0))
  205. awld3.C1=cf(0,1,0)
  206. local awld4=weld(aprt4,aprt1,aprt4,cf(-3,1,0)*euler(0,0,0))
  207. awld4.C1=cf(0,1,0)
  208. local awld5=weld(aprt5,aprt5,aprt3,euler(0,0,0)*cf(-0.8,2.5,-0.6))
  209. local awld6=weld(aprt6,aprt6,aprt5,euler(0,-1.57,3.14)*cf(0,1.05,0))
  210. local awld7=weld(aprt7,aprt7,aprt3,euler(0,0,0)*cf(-0.8,2.5,0))
  211. local awld8=weld(aprt8,aprt8,aprt7,euler(0,-1.57,3.14)*cf(0,1.05,0))
  212. local awld9=weld(aprt9,aprt9,aprt3,euler(0,0,0)*cf(-0.8,2.5,0.6))
  213. local awld10=weld(aprt10,aprt10,aprt9,euler(0,-1.57,3.14)*cf(0,1.05,0))
  214. local awld11=weld(aprt11,aprt11,aprt4,euler(1.57,0,0)*cf(0,2,0))
  215.  
  216. numb=-1.8
  217. numb2=0.8
  218. for i=1,5 do
  219. local aprt12=part(1,Avatar,0,numb2,BrickColor.new("Black"),"Left Arm Fade",vt(1,1,1))
  220. local amsh12=mesh("BlockMesh",aprt12,"","",vt(0,0,0),vt(2,1,2))
  221. local awld12=weld(aprt12,aprt12,aprt4,cf(0,numb,0))
  222. numb=numb+1.2
  223. numb2=numb2+0.05
  224. end
  225.  
  226. local aprt14=part(1,Avatar,0,0.5,BrickColor.new("Black"),"Torso Fade1",vt(1,1,1))
  227. local amsh14=mesh("BlockMesh",aprt14,"","",vt(0,0,0),vt(4,2,2))
  228. local awld14=weld(aprt14,aprt14,aprt1,cf(0,-1.2,0))
  229. numb=0.2
  230. numb2=0.8
  231. for i=1,5 do
  232. local aprt13=part(1,Avatar,0,numb2,BrickColor.new("Black"),"Torso Fade2",vt(1,1,1))
  233. local amsh13=mesh("BlockMesh",aprt13,"","",vt(0,0,0),vt(4,0.5,2))
  234. local awld13=weld(aprt13,aprt13,aprt1,cf(0,numb,0))
  235. numb=numb+0.5
  236. numb2=numb2+0.05
  237. end
  238.  
  239. coroutine.resume(coroutine.create(function()
  240. wait(1)
  241. for i=0,1,0.1 do
  242. wait()
  243. awld2.C0=neckoav*euler(-0.5*i,0,0)
  244. awld3.C0=cf(3,1,0)*euler(-0.5*i,0,0)
  245. awld3.C1=cf(0,1,0)*euler(0,0,-0.7*i)
  246. awld4.C0=cf(-3,1,0)*euler(-0.5*i,0,0)
  247. awld4.C1=cf(0,1,0)*euler(0,0,0.7*i)
  248. end
  249. end))
  250.  
  251. shadowfollowing=false
  252. shadowgyro="TrueAim"
  253. aroot.CFrame=Torso.CFrame
  254. BodPos=Instance.new("BodyPosition")
  255. BodPos.P=50000
  256. BodPos.D=1000
  257. BodPos.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  258. BodPos.position=Torso.Position
  259. BodPos.Parent=aroot
  260. BodPos.Parent=nil
  261. BodGy = it("BodyGyro")
  262. BodGy.maxTorque = vt(math.huge,math.huge,math.huge)
  263. BodGy.P = 20e+003
  264. BodGy.Parent=aroot
  265. BodGy.cframe=Torso.CFrame
  266. BodGy.Parent=nil
  267. coroutine.resume(coroutine.create(function(BodyyPosition,BodyGyro)
  268. while true do
  269. wait()
  270. Avatar.Parent=modelzorz
  271. --awld1.C0=euler(0,0,0)*cf(0,-3,-2)
  272. if AvatarMode=="Follow" then
  273. BodyyPosition.P=50000
  274. BodyyPosition.D=1000
  275. BodyyPosition.position=RootPart.Position
  276. BodyGyro.cframe=Torso.CFrame
  277. --[[elseif AvatarMode=="Aim" then
  278. BodPos.P=1000
  279. BodPos.D=100
  280. coroutine.resume(coroutine.create(function(Gairo)
  281. while AvatarMode=="Aim" do
  282. wait()
  283. if TargetTorso.Parent==nil then
  284. AvatarMode="Follow"
  285. end
  286. if shadowgyro=="TrueAim" then
  287. Gairo.cframe=cf(aroot.Position,TargetTorso.Position)
  288. elseif shadowgyro=="YAim" then
  289. Gairo.cframe=cf(aroot.Position,TargetTorso.Position)
  290. end
  291. end
  292. end),BodyGyro)
  293. shadowdebounce=false
  294. if math.random(1,2)==1 then
  295. shadowfollowing=true
  296. BodyPosition.position=TargetTorso.Position
  297. shadowgyro="TrueAim"
  298. shadowcon=aroot.Touched:connect(function(hit)
  299. shadowattack=true
  300. if hit==TargetTorso then
  301. if shadowdebounce==false then
  302. shadowdebounce=true
  303. shadowgyro="YAim"
  304. shadowfollowing=false
  305. so("http://www.roblox.com/asset/?id=28144425",aprt3,1,1)
  306. avLastPoint=aprt6.CFrame*CFrame.new(0,aprt6.Size.Y/7,0)
  307. avLastPoint2=aprt8.CFrame*CFrame.new(0,aprt8.Size.Y/7,0)
  308. avLastPoint3=aprt10.CFrame*CFrame.new(0,aprt10.Size.Y/7,0)
  309. avcon1=aprt6.Touched:connect(function(hit) Damagefunc(hit,20,40,math.random(50,80),"Knockdown",aprt1) end)
  310. avcon2=aprt8.Touched:connect(function(hit) Damagefunc(hit,20,40,math.random(50,80),"Knockdown",aprt1) end)
  311. avcon3=aprt10.Touched:connect(function(hit) Damagefunc(hit,20,40,math.random(50,80),"Knockdown",aprt1) end)
  312. for i=0,1,0.1 do
  313. wait()
  314. awld1.C0=euler(0,-1*i,0)*cf(0,-3,-2)
  315. awld3.C0=cf(3-2*i,1,-0.5*i)*euler(-0.5+2.5*i,0,0)
  316. awld3.C1=cf(0,1,0)*euler(0,1*i,-0.7+1.4*i)
  317. AvatarClawEffect()
  318. end
  319. avcon1:disconnect()
  320. avcon2:disconnect()
  321. avcon3:disconnect()
  322. wait(0.5)
  323. for i=0,1,0.1 do
  324. wait()
  325. awld1.C0=euler(0,-1+1*i,0)*cf(0,-3,-2)
  326. awld3.C0=cf(1+2*i,1,-0.5+0.5*i)*euler(2-2.5*i,0,0)
  327. awld3.C1=cf(0,1,0)*euler(0,1-1*i,0.7-1.4*i)
  328. end
  329. end
  330. end
  331. shadowattack=false
  332. end)
  333. coroutine.resume(coroutine.create(function(Connect)
  334. while shadowgyro=="TrueAim" do
  335. wait()
  336. end
  337. print("DISCONNECT")
  338. Connect:disconnect()
  339. end),shadowcon)
  340. coroutine.resume(coroutine.create(function()
  341. wait(5)
  342. aroot.CFrame=TargetTorso.CFrame
  343. end))
  344. while shadowfollowing==true do
  345. wait()
  346. BodyPosition.position=TargetTorso.Position
  347. end
  348. else
  349. shadowgyro="TrueAim"
  350. shadowattack=true
  351. for i=0,1,0.1 do
  352. wait()
  353. local pos5 = Vector3.new(TargetTorso.Position.X,aprt11.Position.Y,TargetTorso.Position.Z)
  354. offset=(aprt11.Position.y-TargetTorso.Position.Y)/60
  355. mag=(aprt11.Position-TargetTorso.Position).magnitude/80
  356. offset=offset/mag
  357. print(offset)
  358. awld1.C0=euler(0,1.57*i,0)*cf(0,-3,-2)
  359. awld4.C0=cf(-3,1,0)*euler(-0.5+0.5*i,0,(-1.57+offset)*i)
  360. awld4.C1=cf(0,1,0)*euler(0,0,0.7-0.7*i)
  361. end
  362. wait(0.3)
  363. shoottrail(aprt11,0)
  364. for i=1,6 do
  365. wait(0.1)
  366. shoottrail(aprt11,10)
  367. end
  368. for i=0,1,0.1 do
  369. wait()
  370. awld1.C0=euler(0,1.57-1.57*i,0)*cf(0,-3,-2)
  371. awld4.C0=cf(-3,1,0)*euler(-0.5*i,0,(-1.57+offset)+(1.57-offset)*i)
  372. awld4.C1=cf(0,1,0)*euler(0,0,0.7*i)
  373. end
  374. shadowattack=false
  375. end
  376. wait(2)]]
  377. else
  378. BodyyPosition.P=50000
  379. BodyyPosition.D=1000
  380. end
  381. end
  382. end),BodPos,BodGy)
  383.  
  384. if (script.Parent.className ~= "HopperBin") then
  385. Tool = Instance.new("HopperBin")
  386. Tool.Parent = Backpack
  387. Tool.Name = "Warden Claws"
  388. script.Parent = Tool
  389. end
  390. Bin = script.Parent
  391.  
  392. local Bg = it("BodyGyro")
  393. Bg.maxTorque = Vector3.new(4e+005,4e+005,4e+005)*math.huge
  394. Bg.P = 20e+003
  395. Bg.Parent = nil
  396.  
  397. so = function(id,par,vol,pit)
  398. coroutine.resume(coroutine.create(function()
  399. local sou = Instance.new("Sound",par or workspace)
  400. sou.Volume=vol
  401. sou.Pitch=pit or 1
  402. sou.SoundId=id
  403. wait()
  404. sou:play()
  405. wait(6)
  406. sou:Remove()
  407. end))
  408. end
  409.  
  410. function hideanim()
  411. equipped=false
  412. Torso.Neck.C0=necko
  413. RootJoint.C0=RootCF
  414. end
  415.  
  416. function equipanim()
  417. equipped=true
  418. Torso.Neck.C0=necko*euler(0.2,0,0)
  419. LW.C0=cf(-1.5,0.5,0)*euler(0,1.57,-0.2)
  420. LW.C1=cf(0,0.5,0)*euler(-0.2,0,0)
  421. RW.C0=cf(1.5,0.5,0)*euler(0,-1.57,0.2)
  422. RW.C1=cf(0,0.5,0)*euler(-0.2,0,0)
  423. end
  424.  
  425. function attackone()
  426. attack=true
  427. for i=0,1,0.1 do
  428. wait()
  429. RootJoint.C0=RootCF*euler(0,0,0.8*i)
  430. Torso.Neck.C0=necko*euler(0.2,0,-0.8*i)
  431. LW.C0=cf(-1.5,0.5,0)*euler(0,1.57,-0.2+0.2*i)
  432. LW.C1=cf(0,0.5,0)*euler(-0.2-1.37*i,0,0)
  433. RW.C0=cf(1.5,0.5,0)*euler(0,-1.57,0.2-0.2*i)
  434. RW.C1=cf(0,0.5,0)*euler(-0.2-0.2*i,0,0)
  435. end
  436. LastPoint=prt2.CFrame*CFrame.new(0,prt2.Size.Y/7,0)
  437. LastPoint2=prt4.CFrame*CFrame.new(0,prt4.Size.Y/7,0)
  438. LastPoint3=prt6.CFrame*CFrame.new(0,prt6.Size.Y/7,0)
  439. --so("http://www.roblox.com/asset/?id=28144425",prt4,1,1.5)
  440. con1=prt4.Touched:connect(function(hit) Damagefunc(hit,10,20,nil,"Snare") end)
  441. so("http://www.roblox.com/Asset?ID=92597369",prt4,1,1)
  442. for i=0,1,0.2 do
  443. wait()
  444. RootJoint.C0=RootCF*euler(0,0,0.8-2*i)
  445. Torso.Neck.C0=necko*euler(0.2,0,-0.8+2*i)
  446. LW.C0=cf(-1.5,0.5,0)*euler(0,1.57-0.2*i,0)
  447. LW.C1=cf(0,0.5,0)*euler(-1.57,0,0)
  448. RW.C0=cf(1.5,0.5,0)*euler(0,-1.57,0)
  449. RW.C1=cf(0,0.5,0)*euler(-0.4,0,0)
  450. LeftClawEffect()
  451. end
  452. for i=0,1,0.2 do
  453. wait()
  454. RootJoint.C0=RootCF*euler(0,0,-1.2-0.3*i)
  455. Torso.Neck.C0=necko*euler(0.2,0,1.2+0.3*i)
  456. LW.C0=cf(-1.5,0.5,0)*euler(0,1.37-0.17*i,0)
  457. LW.C1=cf(0,0.5,0)*euler(-1.57,0,0)
  458. RW.C0=cf(1.5,0.5,0)*euler(0,-1.57,0)
  459. RW.C1=cf(0,0.5,0)*euler(-0.4,0,0)
  460. LeftClawEffect()
  461. end
  462. con1:disconnect()
  463. attack=false
  464. end
  465.  
  466. function attacktwo()
  467. attack=true
  468. rLastPoint=prt8.CFrame*CFrame.new(0,prt8.Size.Y/7,0)
  469. rLastPoint2=prt10.CFrame*CFrame.new(0,prt10.Size.Y/7,0)
  470. rLastPoint3=prt12.CFrame*CFrame.new(0,prt12.Size.Y/7,0)
  471. con1=prt10.Touched:connect(function(hit) Damagefunc(hit,5,30,nil,"Snare") end)
  472. so("http://www.roblox.com/Asset?ID=92597369",prt10,1,0.8)
  473. for i=0,1,0.2 do
  474. wait()
  475. RootJoint.C0=RootCF*euler(0,0,-1.5+2*i)
  476. Torso.Neck.C0=necko*euler(0.2,0,1.5-2*i)
  477. LW.C0=cf(-1.5,0.5,0)*euler(0,1.2,0)
  478. LW.C1=cf(0,0.5,0)*euler(-1.57,0,0)
  479. RW.C0=cf(1.5-0.5*i,0.5,-0.5*i)*euler(0,-1.57-1*i,-2*i)
  480. RW.C1=cf(0,0.5,0)*euler(-0.4+1*i,0,0)
  481. RightClawEffect()
  482. end
  483. con1:disconnect()
  484. attack=false
  485. end
  486.  
  487. function attackthree()
  488. attack=true
  489. for i=0,1,0.2 do
  490. wait()
  491. RootJoint.C0=RootCF*euler(0,0,0.5-0.5*i)
  492. Torso.Neck.C0=necko*euler(0.2,0,-0.5+0.5*i)
  493. LW.C0=cf(-1.5,0.5,0)*euler(0,1.2+0.37*i,0)
  494. LW.C1=cf(0,0.5,0)*euler(-1.57,0,0)
  495. RW.C0=cf(1+0.5*i,0.5,-0.5+0.5*i)*euler(0,-2.57+1*i,-2+2*i)
  496. RW.C1=cf(0,0.5,0)*euler(0.6-2.17*i,0,3.14*i)
  497. end
  498. LastPoint=prt2.CFrame*CFrame.new(0,prt2.Size.Y/7,0)
  499. LastPoint2=prt4.CFrame*CFrame.new(0,prt4.Size.Y/7,0)
  500. LastPoint3=prt6.CFrame*CFrame.new(0,prt6.Size.Y/7,0)
  501. rLastPoint=prt8.CFrame*CFrame.new(0,prt8.Size.Y/7,0)
  502. rLastPoint2=prt10.CFrame*CFrame.new(0,prt10.Size.Y/7,0)
  503. rLastPoint3=prt12.CFrame*CFrame.new(0,prt12.Size.Y/7,0)
  504. con1=prt4.Touched:connect(function(hit) Damagefunc(hit,5,10,nil,"Snare") end)
  505. con2=prt10.Touched:connect(function(hit) Damagefunc(hit,5,10,nil,"Snare") end)
  506. for i=1,2 do
  507. so("http://www.roblox.com/Asset?ID=92597369",Torso,1,1.1)
  508. for i=0,1,0.3 do
  509. wait()
  510. RootJoint.C0=RootCF*euler(0,0,-3.14*i)
  511. LeftClawEffect()
  512. RightClawEffect()
  513. end
  514. so("http://www.roblox.com/Asset?ID=92597369",Torso,1,1.2)
  515. for i=0,1,0.3 do
  516. wait()
  517. RootJoint.C0=RootCF*euler(0,0,-3.14-3.14*i)
  518. LeftClawEffect()
  519. RightClawEffect()
  520. end
  521. end
  522. con1:disconnect()
  523. con2:disconnect()
  524. RootJoint.C0=RootCF*euler(0,0,0)
  525. attack=false
  526. end
  527.  
  528. function LifeSteal()
  529. attack=true
  530. lifestolen=false
  531. for i=0,1,0.1 do
  532. wait()
  533. RootJoint.C0=RootCF*euler(0,0,1*i)
  534. Torso.Neck.C0=necko*euler(0.2,0,-1*i)
  535. LW.C0=cf(-1.5+0.5*i,0.5,-0.5*i)*euler(0,1.57-3.14*i,-0.2+0.2*i)
  536. LW.C1=cf(0,0.5,0)*euler(-0.2-1*i,0,0.2*i)
  537. RW.C0=cf(1.5,0.5,0)*euler(0,-1.57,0.2)
  538. RW.C1=cf(0,0.5,0)*euler(-0.2-1*i,0,0)
  539. end
  540. wait(0.1)
  541. con1=prt4.Touched:connect(function(hit) Damagefunc(hit,20,30,0,"LifeSteal",nil) end)
  542. LastPoint=prt2.CFrame*CFrame.new(0,prt2.Size.Y/7,0)
  543. LastPoint2=prt4.CFrame*CFrame.new(0,prt4.Size.Y/7,0)
  544. LastPoint3=prt6.CFrame*CFrame.new(0,prt6.Size.Y/7,0)
  545. so("http://www.roblox.com/Asset?ID=92597369",prt4,1,1.2)
  546. for i=0,1,0.2 do
  547. wait()
  548. RootJoint.C0=RootCF*cf(0,-5*i,0)*euler(0,0,1-2.57*i)
  549. Torso.Neck.C0=necko*euler(0.2,0,-1+2.57*i)
  550. LW.C0=cf(-1-0.5*i,0.5,-0.5+0.5*i)*euler(0,-1.57,0)
  551. LW.C1=cf(0,0.5,0)*euler(-1.2-0.37*i,-3.14*i,0.2-0.2*i)
  552. RW.C0=cf(1.5,0.5,0)*euler(0,-1.57,0.2)
  553. RW.C1=cf(0,0.5,0)*euler(-1.2,0,0)
  554. LeftClawEffect()
  555. end
  556. con1:disconnect()
  557. for i=1,5 do
  558. if combomove==false then
  559. wait(0.1)
  560. end
  561. end
  562. if lifestolen==false then
  563. cancombo=false
  564. for i=0,1,0.1 do
  565. wait()
  566. RootJoint.C0=RootCF*cf(0,-5+5*i,0)*euler(0,0,-1.57+1.57*i)
  567. Torso.Neck.C0=necko*euler(0.2,0,1.57-1.57*i)
  568. LW.C0=cf(-1.5,0.5,0)*euler(0,-1.57+3.14*i,-0.2*i)
  569. LW.C1=cf(0,0.5,0)*euler(-1.57+1.37*i,-3.14+3.14*i,0)
  570. RW.C0=cf(1.5,0.5,0)*euler(0,-1.57,0.2)
  571. RW.C1=cf(0,0.5,0)*euler(-1.2+1*i,0,0)
  572. end
  573. attack=false
  574. else
  575. cancombo=false
  576. if combomove==false then
  577. for i=0,1,0.2 do
  578. wait()
  579. RootJoint.C0=RootCF*cf(0,-5+5*i,0)*euler(0,0,-1.57+2.57*i)
  580. Torso.Neck.C0=necko*euler(0.2,0,1.57-2.57*i)
  581. LW.C0=cf(-1.5+0.5*i,0.5,-0.5*i)*euler(0,-1.57,0)
  582. LW.C1=cf(0,0.5,0)*euler(-1.57,-3.14+2.57*i,0)
  583. RW.C0=cf(1.5,0.5,0)*euler(0,-1.57,0.2)
  584. RW.C1=cf(0,0.5,0)*euler(-1.2,0,0)
  585. LeftClawEffectRed()
  586. end
  587. wait(0.5)
  588. for i=0,1,0.1 do
  589. wait()
  590. RootJoint.C0=RootCF*euler(0,0,1-1*i)
  591. Torso.Neck.C0=necko*euler(0.2,0,-1+1*i)
  592. LW.C0=cf(-1-0.5*i,0.5,-0.5+0.5*i)*euler(0,-1.57+3.14*i,-0.2*i)
  593. LW.C1=cf(0,0.5,0)*euler(-1.2+1*i,-0.57+0.57*i,0.2-0.2*i)
  594. RW.C0=cf(1.5,0.5,0)*euler(0,-1.57,0.2)
  595. RW.C1=cf(0,0.5,0)*euler(-1.2+1*i,0,0)
  596. end
  597. end
  598. attack=false
  599. end
  600. end
  601.  
  602. function LifeStealCombo()
  603. attack=true
  604. con2=prt10.Touched:connect(function(hit) Damagefunc(hit,10,20,60,"Knockdown",Torso) end)
  605. rLastPoint=prt8.CFrame*CFrame.new(0,prt8.Size.Y/7,0)
  606. rLastPoint2=prt10.CFrame*CFrame.new(0,prt10.Size.Y/7,0)
  607. rLastPoint3=prt12.CFrame*CFrame.new(0,prt12.Size.Y/7,0)
  608. so("http://www.roblox.com/Asset?ID=92597369",prt10,1,1.4)
  609. for i=0,1,0.2 do
  610. wait()
  611. attack=true
  612. RootJoint.C0=RootCF*cf(0,-5,0)*euler(0,0,-1.57+3.14*i)
  613. Torso.Neck.C0=necko*euler(0.2,0,1.57)
  614. LW.C0=cf(-1.5,0.5,0)*euler(0,-1.57,0)
  615. LW.C1=cf(0,0.5,0)*euler(-1.57+1.37*i,-3.14,0)
  616. RW.C0=cf(1.5,0.5,0)*euler(0,-1.57,0.2-0.2*i)
  617. RW.C1=cf(0,0.5,0)*euler(-1.2-0.37*i,0,0)
  618. RightClawEffect()
  619. end
  620. for i=0,1,0.2 do
  621. wait()
  622. attack=true
  623. RootJoint.C0=RootCF*cf(0,-5+2*i,0)*euler(0,0,1.57+1.57*i)
  624. Torso.Neck.C0=necko*euler(0.2,0,1.57-1.57*i)
  625. LW.C0=cf(-1.5,0.5,0)*euler(0,-1.57,0)
  626. LW.C1=cf(0,0.5,0)*euler(-0.2,-3.14,0)
  627. RW.C0=cf(1.5,0.5,0)*euler(0,-1.57,0)
  628. RW.C1=cf(0,0.5,0)*euler(-1.57,0,0)
  629. RightClawEffect()
  630. end
  631. con2:disconnect()
  632. for i=0,1,0.1 do
  633. wait()
  634. RootJoint.C0=RootCF*cf(0,-3+3*i,0)*euler(0,0,3.14+3.14*i)
  635. Torso.Neck.C0=necko*euler(0.2,0,0)
  636. LW.C0=cf(-1.5,0.5,0)*euler(0,-1.57,0)
  637. LW.C1=cf(0,0.5,0)*euler(-0.2,-3.14,0)
  638. RW.C0=cf(1.5,0.5,0)*euler(0,-1.57,0)
  639. RW.C1=cf(0,0.5,0)*euler(-1.57+1.37*i,0,0)
  640. end
  641. wait(0.5)
  642. combomove=false
  643. attack=false
  644. end
  645.  
  646. function Raise()
  647. attack=true
  648. for i=0,1,0.1 do
  649. wait()
  650. RootJoint.C0=RootCF
  651. Torso.Neck.C0=necko*euler(0.2+0.1*i,0,0)
  652. LW.C0=cf(-1.5,0.5,0)*euler(0,1.57,-0.2-0.1*i)
  653. LW.C1=cf(0,0.5,0)*euler(-0.2+0.1*i,0,0)
  654. RW.C0=cf(1.5,0.5,0)*euler(0,-1.57,0.2+0.1*i)
  655. RW.C1=cf(0,0.5,0)*euler(-0.2+0.1*i,0,0)
  656. end
  657. LastPoint=prt2.CFrame*CFrame.new(0,prt2.Size.Y/7,0)
  658. LastPoint2=prt4.CFrame*CFrame.new(0,prt4.Size.Y/7,0)
  659. LastPoint3=prt6.CFrame*CFrame.new(0,prt6.Size.Y/7,0)
  660. rLastPoint=prt8.CFrame*CFrame.new(0,prt8.Size.Y/7,0)
  661. rLastPoint2=prt10.CFrame*CFrame.new(0,prt10.Size.Y/7,0)
  662. rLastPoint3=prt12.CFrame*CFrame.new(0,prt12.Size.Y/7,0)
  663. con1=prt4.Touched:connect(function(hit) Damagefunc(hit,5,10,0,"Up",Torso) end)
  664. con2=prt10.Touched:connect(function(hit) Damagefunc(hit,5,10,0,"Up",Torso) end)
  665. so("http://www.roblox.com/Asset?ID=92597369",Torso,1,0.9)
  666. for i=0,1,0.2 do
  667. wait()
  668. RootJoint.C0=RootCF
  669. Torso.Neck.C0=necko*euler(0.3-0.6*i,0,0)
  670. LW.C0=cf(-1.5,0.5,0)*euler(0,1.57,-0.3+2.8*i)
  671. LW.C1=cf(0,0.5,0)*euler(-0.1+0.1*i,0,0)
  672. RW.C0=cf(1.5,0.5,0)*euler(0,-1.57,0.3-2.8*i)
  673. RW.C1=cf(0,0.5,0)*euler(-0.1+0.1*i,0,0)
  674. LeftClawEffect()
  675. RightClawEffect()
  676. end
  677. con1:disconnect()
  678. con2:disconnect()
  679. for i=0,1,0.2 do
  680. wait()
  681. Torso.Neck.C0=necko*euler(-0.3-0.1*i,0,0)
  682. LW.C0=cf(-1.5,0.5,0)*euler(0,1.57,2.5+0.1*i)
  683. LW.C1=cf(0,0.5,0)*euler(0,0,0)
  684. RW.C0=cf(1.5,0.5,0)*euler(0,-1.57,-2.5-0.1*i)
  685. RW.C1=cf(0,0.5,0)*euler(0,0,0)
  686. LeftClawEffect()
  687. RightClawEffect()
  688. end
  689. cancombo=true
  690. for i=1,2 do
  691. if combomove==false then
  692. wait(0.1)
  693. end
  694. end
  695. if combomove==false then
  696. for i=0,1,0.1 do
  697. wait()
  698. Torso.Neck.C0=necko*euler(-0.4+0.6*i,0,0)
  699. LW.C0=cf(-1.5,0.5,0)*euler(0,1.57,2.6-2.8*i)
  700. LW.C1=cf(0,0.5,0)*euler(-0.2*i,0,0)
  701. RW.C0=cf(1.5,0.5,0)*euler(0,-1.57,-2.6+2.8*i)
  702. RW.C1=cf(0,0.5,0)*euler(-0.2*i,0,0)
  703. end
  704. attack=false
  705. cancombo=false
  706. end
  707. end
  708.  
  709. function RaiseCombo()
  710. attack=true
  711. bp2=Instance.new("BodyPosition")
  712. bp2.P=2000
  713. bp2.D=100
  714. bp2.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  715. bp2.position=Torso.Position+vt(0,20,0)
  716. bp2.Parent=Torso
  717. for i=0,1,0.2 do
  718. wait()
  719. attack=true
  720. Torso.Neck.C0=necko*euler(-0.4,0,0)
  721. LW.C0=cf(-1.5,0.5,0)*euler(0,1.57-3.14*i,2.6)
  722. LW.C1=cf(0,0.5,0)*euler(0,0,0)
  723. RW.C0=cf(1.5,0.5,0)*euler(0,-1.57+3.14*i,-2.6)
  724. RW.C1=cf(0,0.5,0)*euler(0,0,0)
  725. end
  726. bp2.Parent=nil
  727. LastPoint=prt2.CFrame*CFrame.new(0,prt2.Size.Y/7,0)
  728. LastPoint2=prt4.CFrame*CFrame.new(0,prt4.Size.Y/7,0)
  729. LastPoint3=prt6.CFrame*CFrame.new(0,prt6.Size.Y/7,0)
  730. rLastPoint=prt8.CFrame*CFrame.new(0,prt8.Size.Y/7,0)
  731. rLastPoint2=prt10.CFrame*CFrame.new(0,prt10.Size.Y/7,0)
  732. rLastPoint3=prt12.CFrame*CFrame.new(0,prt12.Size.Y/7,0)
  733. con1=prt4.Touched:connect(function(hit) Damagefunc(hit,10,15,50,"Knockdown",Torso) end)
  734. con2=prt10.Touched:connect(function(hit) Damagefunc(hit,10,15,50,"Knockdown",Torso) end)
  735. so("http://www.roblox.com/Asset?ID=92597369",Torso,1,0.7)
  736. for i=0,1,0.1 do
  737. wait()
  738. attack=true
  739. Torso.Neck.C0=necko*euler(-0.4+0.6*i,0,0)
  740. LW.C0=cf(-1.5,0.5,0)*euler(0,-1.57,2.6+4*i)
  741. LW.C1=cf(0,0.5,0)*euler(0,0,0)
  742. RW.C0=cf(1.5,0.5,0)*euler(0,1.57,-2.6-4*i)
  743. RW.C1=cf(0,0.5,0)*euler(0,0,0)
  744. LeftClawEffect()
  745. RightClawEffect()
  746. end
  747. con1:disconnect()
  748. con2:disconnect()
  749. for i=0,1,0.1 do
  750. wait()
  751. attack=true
  752. Torso.Neck.C0=necko*euler(0.2,0,0)
  753. LW.C0=cf(-1.5,0.5,0)*euler(0,-1.57+3.14*i,0.1-0.3*i)
  754. LW.C1=cf(0,0.5,0)*euler(-0.2*i,0,0)
  755. RW.C0=cf(1.5,0.5,0)*euler(0,1.57-3.14*i,-0.1+0.3*i)
  756. RW.C1=cf(0,0.5,0)*euler(-0.2*i,0,0)
  757. end
  758. wait(0.5)
  759. combomove=false
  760. attack=false
  761. end
  762.  
  763. function ChangeAvatarMode(Mode)
  764. attack=true
  765. for i=0,1,0.1 do
  766. wait()
  767. Torso.Neck.C0=necko*euler(0.2-0.8*i,0,0)
  768. LW.C0=cf(-1.5+0.5*i,0.5,-0.5*i)*euler(3*i,1.57-1.57*i,-0.2+0.8*i)
  769. LW.C1=cf(0,0.5,0)*euler(-0.2+0.2*i,0,0)
  770. RW.C0=cf(1.5-0.5*i,0.5,-0.5*i)*euler(3*i,-1.57+1.57*i,0.2-0.8*i)
  771. RW.C1=cf(0,0.5,0)*euler(-0.2+0.2*i,0,0)
  772. end
  773. MagicCircle(BrickColor.new("Black"),prt4.CFrame,1,1,1,0.5,0.5,0.5,0.05)
  774. MagicCircle(BrickColor.new("Black"),prt10.CFrame,1,1,1,0.5,0.5,0.5,0.05)
  775. AvatarMode=Mode
  776. wait(0.5)
  777. for i=0,1,0.1 do
  778. wait()
  779. Torso.Neck.C0=necko*euler(-0.6+0.8*i,0,0)
  780. LW.C0=cf(-1-0.5*i,0.5,-0.5+0.5*i)*euler(3-3*i,1.57*i,0.6-0.8*i)
  781. LW.C1=cf(0,0.5,0)*euler(-0.2*i,0,0)
  782. RW.C0=cf(1+0.5*i,0.5,-0.5+0.5*i)*euler(3-3*i,-1.57*i,-0.6+0.8*i)
  783. RW.C1=cf(0,0.5,0)*euler(-0.2*i,0,0)
  784. end
  785. attack=false
  786. end
  787.  
  788. function ShadowSlash()
  789. shadowattack=true
  790. so("http://www.roblox.com/asset/?id=28144425",aprt3,1,1)
  791. avLastPoint=aprt6.CFrame*CFrame.new(0,aprt6.Size.Y/7,0)
  792. avLastPoint2=aprt8.CFrame*CFrame.new(0,aprt8.Size.Y/7,0)
  793. avLastPoint3=aprt10.CFrame*CFrame.new(0,aprt10.Size.Y/7,0)
  794. avcon1=aprt6.Touched:connect(function(hit) Damagefunc(hit,20,40,math.random(50,80),"Knockdown",aprt1) end)
  795. avcon2=aprt8.Touched:connect(function(hit) Damagefunc(hit,20,40,math.random(50,80),"Knockdown",aprt1) end)
  796. avcon3=aprt10.Touched:connect(function(hit) Damagefunc(hit,20,40,math.random(50,80),"Knockdown",aprt1) end)
  797. for i=0,1,0.1 do
  798. wait()
  799. awld1.C0=euler(0,-1*i,0)*cf(0,-3,-2)
  800. awld3.C0=cf(3-2*i,1,-0.5*i)*euler(-0.5+2.5*i,0,0)
  801. awld3.C1=cf(0,1,0)*euler(0,1*i,-0.7+1.4*i)
  802. AvatarClawEffect()
  803. end
  804. avcon1:disconnect()
  805. avcon2:disconnect()
  806. avcon3:disconnect()
  807. wait(0.5)
  808. for i=0,1,0.1 do
  809. wait()
  810. awld1.C0=euler(0,-1+1*i,0)*cf(0,-3,-2)
  811. awld3.C0=cf(1+2*i,1,-0.5+0.5*i)*euler(2-2.5*i,0,0)
  812. awld3.C1=cf(0,1,0)*euler(0,1-1*i,0.7-1.4*i)
  813. end
  814. shadowattack=false
  815. end
  816.  
  817. function ShadowDash()
  818. shadowattack=true
  819. for i=0,1,0.1 do
  820. wait()
  821. awld1.C0=euler(0,-1*i,0)*cf(0,-3,-2)
  822. awld3.C0=cf(3,1,0)*euler(-0.5+0.5*i,0,0)
  823. awld3.C1=cf(0,1,0)*euler(0,2.5*i,-0.7+0.5*i)
  824. end
  825. so("http://www.roblox.com/asset/?id=28144425",aprt3,1,0.9)
  826. avLastPoint=aprt6.CFrame*CFrame.new(0,aprt6.Size.Y/7,0)
  827. avLastPoint2=aprt8.CFrame*CFrame.new(0,aprt8.Size.Y/7,0)
  828. avLastPoint3=aprt10.CFrame*CFrame.new(0,aprt10.Size.Y/7,0)
  829. avcon1=aprt6.Touched:connect(function(hit) Damagefunc(hit,20,30,math.random(50,80),"Snare",aprt1) end)
  830. avcon2=aprt8.Touched:connect(function(hit) Damagefunc(hit,20,30,math.random(50,80),"Snare",aprt1) end)
  831. avcon3=aprt10.Touched:connect(function(hit) Damagefunc(hit,20,30,math.random(50,80),"Snare",aprt1) end)
  832. for i=0,1,0.1 do
  833. wait()
  834. awld1.C0=euler(0,-1-0.6*i,0)*cf(0,-3+1*i,-2+6*i)
  835. awld3.C0=cf(3,1,0)*euler(0,0,0)
  836. awld3.C1=cf(0,1,0)*euler(0.5*i,2.5+0.5*i,-0.2-1.5*i)
  837. AvatarClawEffect()
  838. end
  839. avcon1:disconnect()
  840. avcon2:disconnect()
  841. avcon3:disconnect()
  842. wait(0.2)
  843. for i=0,1,0.1 do
  844. wait()
  845. awld1.C0=euler(0,-1.6+1.6*i,0)*cf(0,-2-1*i,-2+6-6*i)
  846. awld3.C0=cf(3,1,0)*euler(-0.5*i,0,0)
  847. awld3.C1=cf(0,1,0)*euler(0.5-0.5*i,3-3*i,-1.7+1*i)
  848. end
  849. shadowattack=false
  850. end
  851.  
  852. function ShadowExplode()
  853. shadowattack=true
  854. for i=0,1,0.1 do
  855. wait()
  856. awld3.C0=cf(3,1,-0.5*i)*euler(-0.5+1.7*i,0,0)
  857. awld3.C1=cf(0,1,0)*euler(0,0,-0.7+1.4*i)
  858. awld4.C0=cf(-3,1,-0.5*i)*euler(-0.5+1.7*i,0,0)
  859. awld4.C1=cf(0,1,0)*euler(0,0,0.7-1.4*i)
  860. end
  861. local boom=part(3,workspace,0,0,BrickColor.new("Black"),"Effect",vt(0.5,0.5,0.5))
  862. boom.Anchored=true
  863. boom.CFrame=aprt1.CFrame*cf(0,0,-4)
  864. so("http://roblox.com/asset/?id=10209624",boom,0.1,.75)
  865. so("http://www.roblox.com/asset/?id=2101137",boom,1,0.3)
  866. --s.SoundId="http://www.roblox.com/asset/?id=3264793"
  867. game:GetService("Debris"):AddItem(boom,10)
  868. coroutine.resume(coroutine.create(function()
  869. for i=0,1,0.01 do
  870. wait()
  871. awld3.C0=cf(3,1+0.5*i,-0.5+0.5*i)*euler(1.5,0,0)
  872. awld3.C1=cf(0,1,0)*euler(0,0,0.7-2.27*i)
  873. awld4.C0=cf(-3,1+0.5*i,-0.5+0.5*i)*euler(1.5,0,0)
  874. awld4.C1=cf(0,1,0)*euler(0,0,-0.7+2.27*i)
  875. end
  876. end))
  877. numb=0.01
  878. for i=1,100 do
  879. wait()
  880. MagicCircle(BrickColor.new("Black"),boom.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))*cf(0,5,0),1,1,1,0.02,0.5,0.02,0.05)
  881. MagicBlock(BrickColor.new("Black"),boom.CFrame,1,1,1,numb,numb,numb)
  882. numb=numb+0.01
  883. end
  884. so("http://www.roblox.com/asset/?id=3264793",boom,0.5,0.5)
  885. so("http://roblox.com/asset/?id=144844438",boom,1,1)
  886. so("http://www.roblox.com/asset/?id=2974249",boom,1,0.7)
  887. shadowattack=false
  888. end
  889.  
  890. function ShadowShoot()
  891. shadowattack=true
  892. for i=0,1,0.1 do
  893. wait()
  894. local pos5 = Vector3.new(MMouse.Hit.p.x,aroot.Position.Y,MMouse.Hit.p.z)
  895. offset=(aroot.Position.y-MMouse.Hit.p.y)/60
  896. mag=(aroot.Position-MMouse.Hit.p).magnitude/80
  897. offset=offset/mag
  898. awld1.C0=euler(0,1.57*i,0)*cf(0,-3,-2)
  899. awld4.C0=cf(-3,1,0)*euler(-0.5+0.5*i,0,(-1.57+offset)*i)
  900. awld4.C1=cf(0,1,0)*euler(0,0,0.7-0.7*i)
  901. end
  902. wait(0.1)
  903. shoottrail(aprt11,0)
  904. for i=0,1,0.1 do
  905. wait()
  906. awld1.C0=euler(0,1.57-1.57*i,0)*cf(0,-3,-2)
  907. awld4.C0=cf(-3,1,0)*euler(-0.5*i,0,(-1.57+offset)+(1.57-offset)*i)
  908. awld4.C1=cf(0,1,0)*euler(0,0,0.7*i)
  909. end
  910. shadowattack=false
  911. end
  912.  
  913. function ShadowWave()
  914. shadowattack=true
  915. for i=0,1,0.1 do
  916. wait()
  917. awld1.C0=euler(0,1.57*i,0)*cf(0,-3,-2)
  918. awld4.C0=cf(-3,1,0)*euler(-0.5+0.5*i,0,-1*i)
  919. awld4.C1=cf(0,1,0)*euler(0,0,0.7-0.7*i)
  920. end
  921. local bprt=part(3,workspace,0,1,BrickColor.new("Black"),"Effect",vt(0.5,0.5,0.5))
  922. bprt.Anchored=true
  923. bprt.CFrame=Torso.CFrame*cf(0,-2.7,-5)
  924. local bmsh=mesh("CylinderMesh",bprt,"","",vt(0,0,0),vt(5,1,5))
  925. coroutine.resume(coroutine.create(function(Part,Mesh)
  926. for i=1,0.5,-0.1 do
  927. wait()
  928. Part.Transparency=i
  929. end
  930. end),bprt)
  931. game:GetService("Debris"):AddItem(bprt,5)
  932. for i=0,1,0.05 do
  933. wait()
  934. awld1.C0=euler(0,1.57,0)*cf(0,-3,-2)
  935. awld4.C0=cf(-3,1+1*i,0)*euler(0,0,-1-1*i)
  936. awld4.C1=cf(0,1,0)*euler(0,0,0)
  937. end
  938. shadowattack=false
  939. end
  940.  
  941. function rayCast(Pos, Dir, Max, Ignore) -- Origin Position , Direction, MaxDistance , IgnoreDescendants
  942. return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  943. end
  944.  
  945. function effect(Color,Ref,LP,P1,returnn)
  946. local effectsmsh = Instance.new("BlockMesh")
  947. effectsmsh.Scale = Vector3.new(0.2,1,0.2)
  948. effectsmsh.Name = "Mesh"
  949. local effectsg = Instance.new("Part")
  950. effectsg.formFactor = 3
  951. effectsg.CanCollide = false
  952. effectsg.Name = "Eff"
  953. effectsg.Locked = true
  954. effectsg.Anchored = true
  955. effectsg.Size = Vector3.new(0.5,1,0.5)
  956. effectsg.Parent = workspace
  957. effectsmsh.Parent = effectsg
  958. effectsg.BrickColor = BrickColor.new(Color)
  959. effectsg.Reflectance = Ref
  960. local point1 = P1
  961. local mg = (LP.p - point1.p).magnitude
  962. effectsg.Size = Vector3.new(0.5,mg,0.5)
  963. effectsg.CFrame = CFrame.new((LP.p+point1.p)/2,point1.p) * CFrame.Angles(math.rad(90),0,0)
  964. effectsmsh.Scale = Vector3.new(0.2,1,0.2)
  965. game:GetService("Debris"):AddItem(effectsg,2)
  966. if returnn then return effectsg end
  967. coroutine.resume(coroutine.create(function(Part,Mesh)
  968. if not returnn then
  969. for i = 0 , 1 , 0.1 do
  970. wait()
  971. Part.Transparency = 1*i
  972. Mesh.Scale = Vector3.new(0.2-0.2*i,1,0.2-0.2*i)
  973. end
  974. wait()
  975. Part.Parent = nil
  976. end
  977. end),effectsg,effectsmsh)
  978. end
  979.  
  980. function LeftClawEffect()
  981. local Point=prt2.CFrame*CFrame.new(0,prt2.Size.Y/7,0)
  982. effect("Black",0.5,LastPoint,Point)
  983. LastPoint=Point
  984. local Point2=prt4.CFrame*CFrame.new(0,prt4.Size.Y/7,0)
  985. effect("Black",0.5,LastPoint2,Point2)
  986. LastPoint2=Point2
  987. local Point3=prt6.CFrame*CFrame.new(0,prt6.Size.Y/7,0)
  988. effect("Black",0.5,LastPoint3,Point3)
  989. LastPoint3=Point3
  990. end
  991.  
  992. function LeftClawEffectRed()
  993. local Point=prt2.CFrame*CFrame.new(0,prt2.Size.Y/7,0)
  994. effect("Bright red",0.5,LastPoint,Point)
  995. LastPoint=Point
  996. local Point2=prt4.CFrame*CFrame.new(0,prt4.Size.Y/7,0)
  997. effect("Bright red",0.5,LastPoint2,Point2)
  998. LastPoint2=Point2
  999. local Point3=prt6.CFrame*CFrame.new(0,prt6.Size.Y/7,0)
  1000. effect("Bright red",0.5,LastPoint3,Point3)
  1001. LastPoint3=Point3
  1002. end
  1003.  
  1004. function RightClawEffect()
  1005. local rPoint=prt8.CFrame*CFrame.new(0,prt8.Size.Y/7,0)
  1006. effect("Black",0.5,rLastPoint,rPoint)
  1007. rLastPoint=rPoint
  1008. local rPoint2=prt10.CFrame*CFrame.new(0,prt10.Size.Y/7,0)
  1009. effect("Black",0.5,rLastPoint2,rPoint2)
  1010. rLastPoint2=rPoint2
  1011. local rPoint3=prt12.CFrame*CFrame.new(0,prt12.Size.Y/7,0)
  1012. effect("Black",0.5,rLastPoint3,rPoint3)
  1013. rLastPoint3=rPoint3
  1014. end
  1015.  
  1016. function AvatarClawEffect()
  1017. local avPoint=aprt6.CFrame*CFrame.new(0,aprt6.Size.Y/7,0)
  1018. effect("Black",0.5,avLastPoint,avPoint)
  1019. avLastPoint=avPoint
  1020. local avPoint2=aprt8.CFrame*CFrame.new(0,aprt8.Size.Y/7,0)
  1021. effect("Black",0.5,avLastPoint2,avPoint2)
  1022. avLastPoint2=avPoint2
  1023. local avPoint3=aprt10.CFrame*CFrame.new(0,aprt10.Size.Y/7,0)
  1024. effect("Black",0.5,avLastPoint3,avPoint3)
  1025. avLastPoint3=avPoint3
  1026. MagicBlock(BrickColor.new("Black"),aprt6.CFrame,3,3,3,-0.5,-0.5,-0.5)
  1027. MagicBlock(BrickColor.new("Black"),aprt8.CFrame,3,3,3,-0.5,-0.5,-0.5)
  1028. MagicBlock(BrickColor.new("Black"),aprt10.CFrame,3,3,3,-0.5,-0.5,-0.5)
  1029. end
  1030.  
  1031. function ElecEffect(cff,x,y,z)
  1032. local prt=part(3,workspace,0,0,BrickColor.new("White"),"Part",vt(1,1,1))
  1033. prt.Anchored=true
  1034. xval=math.random()
  1035. yval=math.random()
  1036. zval=math.random()
  1037. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(xval,yval,zval))
  1038. coroutine.resume(coroutine.create(function(Part,Mesh,Frame,xvaal,yvaal,zvaal)
  1039. Part.CFrame=Frame*cf(math.random(-x,x),math.random(-y,y),math.random(-z,z))
  1040. for i=1,8 do
  1041. wait()
  1042. xvaal=xvaal-0.1
  1043. yvaal=yvaal-0.1
  1044. zvaal=zvaal-0.1
  1045. Mesh.Scale=vt(xvaal,yvaal,zvaal)
  1046. Part.Transparency=Part.Transparency+0.09
  1047. end
  1048. Part.Parent=nil
  1049. end),prt,msh,cff,xval,yval,zval)
  1050. end
  1051.  
  1052. function MagicBlock(brickcolor,cframe,x1,y1,z1,x3,y3,z3)
  1053. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1054. prt.Anchored=true
  1055. prt.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1056. local msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  1057. game:GetService("Debris"):AddItem(prt,2)
  1058. coroutine.resume(coroutine.create(function(Part,Mesh)
  1059. for i=0,1,0.1 do
  1060. wait()
  1061. Part.CFrame=Part.CFrame
  1062. Part.Transparency=i
  1063. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1064. end
  1065. Part.Parent=nil
  1066. end),prt,msh)
  1067. end
  1068.  
  1069. function MagicBlock2(brickcolor,cframe,x1,y1,z1,x3,y3,z3)
  1070. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1071. prt.Anchored=true
  1072. prt.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1073. local msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  1074. game:GetService("Debris"):AddItem(prt,2)
  1075. CF=prt.CFrame
  1076. num=math.random(5,20)
  1077. coroutine.resume(coroutine.create(function(Part,Mesh,CF2,Num)
  1078. for i=0,1.05,0.05 do
  1079. wait()
  1080. Part.CFrame=CF2*cf(0,i*Num,0)*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1081. Part.Transparency=i
  1082. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1083. end
  1084. Part.Parent=nil
  1085. end),prt,msh,CF,num)
  1086. end
  1087.  
  1088. function MagicCircle(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  1089. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1090. prt.Anchored=true
  1091. prt.CFrame=cframe
  1092. local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  1093. game:GetService("Debris"):AddItem(prt,2)
  1094. coroutine.resume(coroutine.create(function(Part,Mesh)
  1095. for i=0,1,delay do
  1096. wait()
  1097. Part.CFrame=Part.CFrame
  1098. Part.Transparency=i
  1099. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1100. end
  1101. Part.Parent=nil
  1102. end),prt,msh)
  1103. end
  1104.  
  1105. function MagicRing(brickcolor,cframe,x1,y1,z1,x2,y2,z2,x3,y3,z3)
  1106. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1107. prt.Anchored=true
  1108. prt.CFrame=cframe*euler(x2,y2,z2)
  1109. local msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=3270017",vt(0,0,0),vt(x1,y1,z1))
  1110. game:GetService("Debris"):AddItem(prt,2)
  1111. coroutine.resume(coroutine.create(function(Part,Mesh)
  1112. for i=0,1,0.03 do
  1113. wait()
  1114. Part.CFrame=Part.CFrame
  1115. Part.Transparency=i
  1116. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1117. end
  1118. Part.Parent=nil
  1119. end),prt,msh)
  1120. end
  1121.  
  1122. function BreakEffect(brickcolor,cframe,x1,y1,z1)
  1123. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1124. prt.Anchored=true
  1125. prt.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1126. local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  1127. game:GetService("Debris"):AddItem(prt,2)
  1128. coroutine.resume(coroutine.create(function(Part,CF,Numbb,randnumb)
  1129. CF=Part.CFrame
  1130. Numbb=0
  1131. randnumb=math.random()-math.random()
  1132. rand1=math.random()/5
  1133. for i=0,1,rand1 do
  1134. wait()
  1135. CF=CF*cf(0,1,0)
  1136. --Part.CFrame=Part.CFrame*euler(0.5,0,0)*cf(0,1,0)
  1137. Part.CFrame=CF*euler(Numbb,0,0)
  1138. Part.Transparency=i
  1139. Numbb=Numbb+randnumb
  1140. end
  1141. Part.Parent=nil
  1142. end),prt,CF,Numbb,randnumb)
  1143. end
  1144.  
  1145. function MagicFreeze(brickcolor,cframe,x1,y1,z1,x3,y3,z3)
  1146. local prt=part(3,workspace,0.4,0.3,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1147. prt.Anchored=true
  1148. prt.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1149. local msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=1778999",vt(0,0,0),vt(x1,y1,z1))
  1150. game:GetService("Debris"):AddItem(prt,2)
  1151. coroutine.resume(coroutine.create(function(Part,Mesh)
  1152. for i=0,1,0.1 do
  1153. Part.CFrame=Part.CFrame*cf(0,0.3,0)
  1154. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1155. end
  1156. wait(5)
  1157. Part.Parent=nil
  1158. end),prt,msh)
  1159. end
  1160.  
  1161. function MagicFire(brickcolor,cframe,x1,y1,z1)
  1162. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1163. prt.Anchored=true
  1164. prt.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1165. local msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  1166. game:GetService("Debris"):AddItem(prt,2)
  1167. coroutine.resume(coroutine.create(function(Part,Mesh)
  1168. for i=0,1,0.1 do
  1169. wait()
  1170. Part.CFrame=cf(Part.Position+vt(0,0.5,0))*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1171. Part.Transparency=i
  1172. Mesh.Scale=Mesh.Scale+vt(0.1,0.1,0.1)
  1173. end
  1174. Part.Parent=nil
  1175. end),prt,msh)
  1176. end
  1177.  
  1178. function LifeStealEffect(brickcolor,cframe,x1,y1,z1)
  1179. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1180. prt.Anchored=false
  1181. prt.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1182. game:GetService("Debris"):AddItem(prt,4)
  1183. local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  1184. bp=Instance.new("BodyPosition")
  1185. bp.P=2000
  1186. bp.D=100
  1187. bp.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  1188. bp.position=prt.Position+vt(math.random(-5,5),math.random(0,5),math.random(-5,5))
  1189. bp.Parent=prt
  1190. coroutine.resume(coroutine.create(function(Part)
  1191. wait(1.5)
  1192. MagicCircle(BrickColor.new("Bright red"),Part.CFrame,2,2,2,0.2,0.2,0.2,0.05)
  1193. Part.Transparency=1
  1194. local pprt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1195. local mmsh=mesh("SpecialMesh",pprt,"Sphere","",vt(0,0,0),vt(1,1,1))
  1196. pprt.Anchored=true
  1197. cnM = ((Torso.Position + Part.Position) / 2).Magnitude
  1198. pprt.Size=Vector3.new(1,1,cnM)
  1199. pprt.CFrame=cf(Torso.Position,Part.Position)*cf(0,0,-cnM/2)
  1200. game:GetService("Debris"):AddItem(pprt,2)
  1201. coroutine.resume(coroutine.create(function(Part,Mesh)
  1202. for i=0,1,0.05 do
  1203. wait()
  1204. Part.Transparency=1*i
  1205. Mesh.Scale=vt(0.5-0.5*i,0.5-0.5*i,1)
  1206. end
  1207. Part.Parent=nil
  1208. end),pprt,mmsh)
  1209. end),prt)
  1210. --[[coroutine.resume(coroutine.create(function(Part,Mesh)
  1211. for i=0,1,0.1 do
  1212. wait()
  1213. Part.CFrame=Part.CFrame
  1214. Part.Transparency=i
  1215. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1216. end
  1217. Part.Parent=nil
  1218. end),prt,msh)]]
  1219. end
  1220.  
  1221. range=300
  1222. rangepower=5
  1223. function shoottrail(baseprt,spread)
  1224. so("http://www.roblox.com/asset/?id=2767090",baseprt,2,1)
  1225. coroutine.resume(coroutine.create(function(v)
  1226. local spreadvector = (vt(math.random(-spread,spread),math.random(-spread,spread),math.random(-spread,spread)) / 100) * (baseprt.Position).magnitude/100
  1227. local dir = aprt11.CFrame.lookVector+spreadvector
  1228. local hit,pos = rayCast(baseprt.Position,dir,10,workspace)
  1229. local rangepos = range
  1230. local function drawtrail(From,To)
  1231. local effectsmsh = Instance.new("CylinderMesh")
  1232. effectsmsh.Scale = Vector3.new(1,1,1)
  1233. effectsmsh.Name = "Mesh"
  1234. local effectsg = Instance.new("Part")
  1235. effectsg.Transparency = 1
  1236. effectsg.formFactor = 3
  1237. effectsg.CanCollide = false
  1238. effectsg.Name = "Eff"
  1239. effectsg.Locked = true
  1240. effectsg.Anchored = true
  1241. effectsg.Size = Vector3.new(0.2,0.2,0.2)
  1242. effectsg.Parent = Avatar
  1243. effectsmsh.Parent = effectsg
  1244. game:GetService("Debris"):AddItem(effectsg,0.2)
  1245. local LP = From
  1246. local point1 = To
  1247. local mg = (LP - point1).magnitude
  1248. effectsg.CFrame = CFrame.new((LP+point1)/2,point1) * CFrame.Angles(math.rad(90),0,0)
  1249. local prt=part(3,Avatar,0,0,BrickColor.new("Black"),"Effect",vt(0.5,0.5,0.5))
  1250. prt.Anchored=true
  1251. prt.CFrame=effectsg.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1252. local msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(2,2,2))
  1253. game:GetService("Debris"):AddItem(prt,2)
  1254. coroutine.resume(coroutine.create(function(Part,Mesh)
  1255. for i=0,1,0.1 do
  1256. wait()
  1257. Part.CFrame=Part.CFrame
  1258. Part.Transparency=i
  1259. Mesh.Scale=Mesh.Scale+vt(-0.5,-0.5,-0.5)
  1260. end
  1261. Part.Parent=nil
  1262. end),prt,msh)
  1263. end
  1264. local newpos = baseprt.Position
  1265. local inc = rangepower
  1266. repeat
  1267. wait() wait()
  1268. rangepos = rangepos - 10
  1269. dir = dir
  1270. hit,pos = rayCast(newpos,dir,inc,Avatar)
  1271. drawtrail(newpos,pos)
  1272. newpos = newpos + (dir * inc)
  1273. if inc >= 20 then
  1274. inc = inc - 10
  1275. end
  1276. if hit ~= nil then
  1277. rangepos = 0
  1278. end
  1279. until rangepos <= 0
  1280. if hit ~= nil then
  1281. MagicCircle(BrickColor.new("Black"),CFrame.new(pos),1,1,1,0.5,0.5,0.5,0.05)
  1282. if hit.Parent:FindFirstChild("Humanoid") ~= nil then
  1283. hum = hit.Parent.Humanoid
  1284. tTorso=hit.Parent.Torso
  1285. Damagefunc(hit,10,20,math.random(50,80),"Snare",aprt1)
  1286. so("http://www.roblox.com/asset/?id=4678959",hit.Parent.Torso,2,1)
  1287. --ADmg(hum,hit)
  1288. elseif hit.Parent.Parent ~= nil and hit.Parent.Parent:FindFirstChild("Humanoid") ~= nil then
  1289. hum = hit.Parent.Parent.Humanoid
  1290. tTorso=hit.Parent.Parent.Torso
  1291. Damagefunc(hit.Parent,10,20,math.random(50,80),"Snare",aprt1)
  1292. so("http://www.roblox.com/asset/?id=4678959",hit.Parent.Parent.Torso,2,1)
  1293. --ADmg(hum,hit)
  1294. end
  1295. end
  1296. end))
  1297. end
  1298.  
  1299. so = function(id,par,vol,pit)
  1300. coroutine.resume(coroutine.create(function()
  1301. local sou = Instance.new("Sound",par or workspace)
  1302. sou.Volume=vol
  1303. sou.Pitch=pit or 1
  1304. sou.SoundId=id
  1305. wait()
  1306. sou:play()
  1307. game:GetService("Debris"):AddItem(sou,6)
  1308. end))
  1309. end
  1310.  
  1311. function findNearestTorso(pos)
  1312. local list = game:service("Workspace"):children()
  1313. local torso = nil
  1314. local dist = 50
  1315. local temp = nil
  1316. local human = nil
  1317. local temp2 = nil
  1318. for x = 1, #list do
  1319. temp2 = list[x]
  1320. if (temp2.className == "Model") and (temp2 ~= Character) and (temp2.Name ~= "Fenrier") then
  1321. temp = temp2:findFirstChild("Torso")
  1322. human = temp2:findFirstChild("Humanoid")
  1323. if (temp ~= nil) and (human ~= nil) and (human.Health > 0) then
  1324. if (temp.Position - pos).magnitude < dist then
  1325. torso = temp
  1326. dist = (temp.Position - pos).magnitude
  1327. end
  1328. end
  1329. end
  1330. end
  1331. return torso
  1332. end
  1333.  
  1334. Damagefunc=function(hit,minim,maxim,knockback,Type,Property)
  1335. if hit.Parent==nil then
  1336. return
  1337. end
  1338. CPlayer=Bin
  1339. h=hit.Parent:FindFirstChild("Humanoid")
  1340. for _,v in pairs(hit.Parent:children()) do
  1341. if v:IsA("Humanoid") then
  1342. h=v
  1343. end
  1344. end
  1345. if h~=nil and hit.Parent.Name~=Character.Name and hit.Parent:FindFirstChild("Torso")~=nil then
  1346. if attackdebounce == false then
  1347. attackdebounce = true
  1348. coroutine.resume(coroutine.create(function()
  1349. wait(0.2)
  1350. attackdebounce = false
  1351. end))
  1352. --[[ if game.Players:GetPlayerFromCharacter(hit.Parent)~=nil then
  1353. return
  1354. end]]
  1355. -- hs(hit,1.2)
  1356. c=Instance.new("ObjectValue")
  1357. c.Name="creator"
  1358. c.Value=game:service("Players").LocalPlayer
  1359. c.Parent=h
  1360. game:GetService("Debris"):AddItem(c,.5)
  1361. Damage=math.random(minim,maxim)
  1362. -- h:TakeDamage(Damage)
  1363. blocked=false
  1364. block=hit.Parent:findFirstChild("Block")
  1365. if block~=nil then
  1366. print("herp")
  1367. if block.Value>0 then
  1368. blocked=true
  1369. block.Value=block.Value-1
  1370. print(block.Value)
  1371. end
  1372. end
  1373. if blocked==false then
  1374. -- h:TakeDamage(Damage)
  1375. h.Health=h.Health-Damage
  1376. showDamage(hit.Parent,Damage,.5,BrickColor:Red())
  1377. else
  1378. h.Health=h.Health-(Damage/2)
  1379. showDamage(hit.Parent,Damage/2,.5,BrickColor.new("Bright blue"))
  1380. end
  1381. if Type=="Knockdown" then
  1382. hum=hit.Parent.Humanoid
  1383. hum.PlatformStand=true
  1384. coroutine.resume(coroutine.create(function(HHumanoid)
  1385. wait(1)
  1386. HHumanoid.PlatformStand=false
  1387. end),hum)
  1388. local angle=(hit.Position-(Property.Position+Vector3.new(0,0,0))).unit
  1389. print(angle)
  1390. --hit.CFrame=CFrame.new(hit.Position,Vector3.new(angle.x,hit.Position.y,angle.z))*CFrame.fromEulerAnglesXYZ(math.pi/4,0,0)
  1391. local bodvol=Instance.new("BodyVelocity")
  1392. bodvol.velocity=angle*knockback
  1393. bodvol.P=5000
  1394. bodvol.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
  1395. bodvol.Parent=hit
  1396. rl=Instance.new("BodyAngularVelocity")
  1397. rl.P=3000
  1398. rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000
  1399. rl.angularvelocity=Vector3.new(math.random(-10,10),math.random(-10,10),math.random(-10,10))
  1400. rl.Parent=hit
  1401. game:GetService("Debris"):AddItem(bodvol,.5)
  1402. game:GetService("Debris"):AddItem(rl,.5)
  1403. elseif Type=="Normal" then
  1404. vp=Instance.new("BodyVelocity")
  1405. vp.P=500
  1406. vp.maxForce=Vector3.new(math.huge,0,math.huge)
  1407. -- vp.velocity=Character.Torso.CFrame.lookVector*Knockback
  1408. vp.velocity=RootPart.CFrame.lookVector*knockback+RootPart.Velocity/1.05
  1409. if knockback>0 then
  1410. vp.Parent=hit.Parent.Torso
  1411. end
  1412. game:GetService("Debris"):AddItem(vp,.5)
  1413. elseif Type=="Up" then
  1414. local bodyVelocity=Instance.new("BodyVelocity")
  1415. bodyVelocity.velocity=vt(0,40,0)
  1416. bodyVelocity.P=5000
  1417. bodyVelocity.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
  1418. bodyVelocity.Parent=hit
  1419. game:GetService("Debris"):AddItem(bodyVelocity,.5)
  1420. coroutine.resume(coroutine.create(function(HitPers)
  1421. wait(0.2)
  1422. rl=Instance.new("BodyAngularVelocity")
  1423. rl.P=3000
  1424. rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000
  1425. rl.angularvelocity=Vector3.new(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1426. rl.Parent=HitPers
  1427. game:GetService("Debris"):AddItem(rl,.5)
  1428. end),hit)
  1429. elseif Type=="Snare" then
  1430. bp=Instance.new("BodyPosition")
  1431. bp.P=2000
  1432. bp.D=100
  1433. bp.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  1434. bp.position=hit.Parent.Torso.Position
  1435. bp.Parent=hit.Parent.Torso
  1436. coroutine.resume(coroutine.create(function(Part,BodPoss)
  1437. while BodPoss.Parent~=nil do
  1438. wait(0.1)
  1439. MagicBlock(BrickColor.new("Black"),Part.CFrame,3,3,3,-0.2,-0.2,-0.2)
  1440. end
  1441. end),hit.Parent.Torso,bp)
  1442. game:GetService("Debris"):AddItem(bp,2)
  1443. elseif Type=="LifeSteal" then
  1444. cancombo=true
  1445. if lifestolen==false then
  1446. lifestolen=true
  1447. LifeStolenTorso=hit.Parent.Torso
  1448. for i=1,5 do
  1449. LifeStealEffect(BrickColor.new("Bright red"),hit.Parent.Torso.CFrame,1,1,1)
  1450. end
  1451. coroutine.resume(coroutine.create(function(Dam)
  1452. wait(1.5)
  1453. Heal=Dam
  1454. Humanoid.Health=Humanoid.Health+Heal
  1455. showDamage(Torso.Parent,Heal,.5,BrickColor.new("Medium green"))
  1456. end),Damage)
  1457. end
  1458. end
  1459. c=Instance.new("ObjectValue")
  1460. c.Name="creator"
  1461. c.Value=Player
  1462. c.Parent=h
  1463. game:GetService("Debris"):AddItem(c,.5)
  1464. CRIT=false
  1465. hitDeb=true
  1466. AttackPos=6
  1467. end
  1468. end
  1469. end
  1470.  
  1471. showDamage=function(Char,Dealt,du,Color)
  1472. m=Instance.new("Model")
  1473. m.Name=tostring(Dealt)
  1474. h=Instance.new("Humanoid")
  1475. h.Health=0
  1476. h.MaxHealth=0
  1477. h.Parent=m
  1478. c=Instance.new("Part")
  1479. c.Transparency=0
  1480. c.BrickColor=Color
  1481. c.Name="Head"
  1482. c.TopSurface=0
  1483. c.BottomSurface=0
  1484. c.formFactor="Plate"
  1485. c.Size=Vector3.new(1,.4,1)
  1486. ms=Instance.new("CylinderMesh")
  1487. ms.Scale=Vector3.new(.8,.8,.8)
  1488. if CRIT==true then
  1489. ms.Scale=Vector3.new(1,1.25,1)
  1490. end
  1491. ms.Parent=c
  1492. c.Reflectance=0
  1493. Instance.new("BodyGyro").Parent=c
  1494. c.Parent=m
  1495. c.CFrame=CFrame.new(Char["Head"].CFrame.p+Vector3.new(0,1.5,0))
  1496. f=Instance.new("BodyPosition")
  1497. f.P=2000
  1498. f.D=100
  1499. f.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  1500. f.position=c.Position+Vector3.new(0,3,0)
  1501. f.Parent=c
  1502. game:GetService("Debris"):AddItem(m,.5+du)
  1503. c.CanCollide=false
  1504. m.Parent=workspace
  1505. c.CanCollide=false
  1506. end
  1507.  
  1508. combo=0
  1509. eul=0
  1510. game:GetService("RunService").Stepped:connect(function()
  1511.  
  1512. function ob1d(mouse)
  1513. if cancombo==true then
  1514. cancombo=false
  1515. combomove=true
  1516. if combotype=="LifeSteal" then
  1517. LifeStealCombo()
  1518. elseif combotype=="Raise" then
  1519. RaiseCombo()
  1520. end
  1521. return end
  1522. if attack==true then return end
  1523. hold=true
  1524. if combo==0 then
  1525. combo=1
  1526. attackone()
  1527. elseif combo==1 then
  1528. combo=2
  1529. attacktwo()
  1530. elseif combo==2 then
  1531. combo=3
  1532. attackthree()
  1533. elseif combo==3 then
  1534. combo=0
  1535. end
  1536. coroutine.resume(coroutine.create(function()
  1537. wait(1)
  1538. if attack==false then
  1539. combo=0
  1540. RootJoint.C0=RootCF
  1541. Torso.Neck.C0=necko*euler(0.2,0,0)
  1542. LW.C0=cf(-1.5,0.5,0)*euler(0,1.57,-0.2)
  1543. LW.C1=cf(0,0.5,0)*euler(-0.2,0,0)
  1544. RW.C0=cf(1.5,0.5,0)*euler(0,-1.57,0.2)
  1545. RW.C1=cf(0,0.5,0)*euler(-0.2,0,0)
  1546. end
  1547. end))
  1548. end
  1549.  
  1550. function ob1u(mouse)
  1551. hold = false
  1552. end
  1553.  
  1554. buttonhold = false
  1555.  
  1556. function key(key)
  1557. if shadowattack==false then
  1558. if key=="z" then
  1559. ShadowSlash()
  1560. end
  1561. if key=="x" then
  1562. ShadowShoot()
  1563. end
  1564. if key=="c" then
  1565. ShadowDash()
  1566. end
  1567. if key=="v" then
  1568. ShadowExplode()
  1569. --ShadowWave()
  1570. end
  1571. end
  1572. if attack==true then return end
  1573. if key=="g" then
  1574. combotype="LifeSteal"
  1575. LifeSteal()
  1576. combotype="None"
  1577. end
  1578. if key=="h" then
  1579. combotype="Raise"
  1580. Raise()
  1581. combotype="None"
  1582. end
  1583. --[[if key=="q" then
  1584. ChangeAvatarMode("Follow")
  1585. end
  1586. if key=="e" then
  1587. ChangeAvatarMode("Stay")
  1588. end
  1589. if key=="r" then
  1590. if MMouse.Target~=nil and MMouse.Target.Parent:findFirstChild("Humanoid")~=nil and MMouse.Target.Parent:findFirstChild("Torso")~=nil then
  1591. TargetTorso=MMouse.Target.Parent.Torso
  1592. ChangeAvatarMode("Aim")
  1593. end
  1594. end]]
  1595. end
  1596. end)
  1597.  
  1598. function key2(key)
  1599.  
  1600. end
  1601.  
  1602. function s(mouse)
  1603. mouse.Button1Down:connect(function() ob1d(mouse) end)
  1604. mouse.Button1Up:connect(function() ob1u(mouse) end)
  1605. mouse.KeyDown:connect(key)
  1606. mouse.KeyUp:connect(key2)
  1607. unsheathed = true
  1608. player = Player
  1609. ch = Character
  1610. MMouse = mouse
  1611. RSH = ch.Torso["Right Shoulder"]
  1612. LSH = ch.Torso["Left Shoulder"]
  1613. --
  1614. RSH.Parent = nil
  1615. LSH.Parent = nil
  1616. --
  1617. RW.Part0 = ch.Torso
  1618. RW.C0 = CFrame.new(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5)
  1619. RW.C1 = CFrame.new(0, 0.5, 0)
  1620. RW.Part1 = ch["Right Arm"]
  1621. RW.Parent = ch.Torso
  1622. --_G.R = RW
  1623. --
  1624. LW.Part0 = ch.Torso
  1625. LW.C0 = CFrame.new(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8)
  1626. LW.C1 = CFrame.new(0, 0.5, 0)
  1627. LW.Part1 = ch["Left Arm"]
  1628. LW.Parent = ch.Torso
  1629. --_G.L = LW
  1630. --
  1631. equipanim()
  1632. end
  1633.  
  1634. function ds(mouse)
  1635. hideanim()
  1636. wait(0)
  1637. RW.Parent = nil
  1638. LW.Parent = nil
  1639. RSH.Parent = player.Character.Torso
  1640. LSH.Parent = player.Character.Torso
  1641. end
  1642.  
  1643. Bin.Selected:connect(s)
  1644. Bin.Deselected:connect(ds)
  1645. print("Warden Claws loaded.")
  1646.  
  1647. --[[
  1648. Copyrighted (C) Fenrier 2014
  1649. ]]
Add Comment
Please, Sign In to add comment