Advertisement
GojiGaming1337

Untitled

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