Advertisement
memberhero

Soul Warden Script

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