Advertisement
naser2345

Demon Claw

May 3rd, 2017
354
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 97.53 KB | None | 0 0
  1. Player=game:GetService("Players").LocalPlayer
  2. Character=Player.Character
  3. PlayerGui=Player.PlayerGui
  4. Backpack=Player.Backpack
  5. Torso=Character.Torso
  6. Head=Character.Head
  7. Humanoid=Character.Humanoid
  8. m=Instance.new('Model',Character)
  9. LeftArm=Character["Left Arm"]
  10. LeftLeg=Character["Left Leg"]
  11. RightArm=Character["Right Arm"]
  12. RightLeg=Character["Right Leg"]
  13. LS=Torso["Left Shoulder"]
  14. LH=Torso["Left Hip"]
  15. RS=Torso["Right Shoulder"]
  16. RH=Torso["Right Hip"]
  17. Face = Head.face
  18. Neck=Torso.Neck
  19. it=Instance.new
  20. attacktype=1
  21. vt=Vector3.new
  22. cf=CFrame.new
  23. euler=CFrame.fromEulerAnglesXYZ
  24. angles=CFrame.Angles
  25. cloaked=false
  26. necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  27. necko2=cf(0, -0.5, 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. LHC1=cf(-0.5,1,0,-0,-0,-1,0,1,0,1,0,0)
  30. RHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0)
  31. RHC1=cf(0.5,1,0,0,0,1,0,1,0,-1,-0,-0)
  32. RootPart=Character.HumanoidRootPart
  33. RootJoint=RootPart.RootJoint
  34. RootCF=euler(-1.57,0,3.14)
  35. attack = false
  36. attackdebounce = false
  37. deb=false
  38. equipped=true
  39. hand=false
  40. MMouse=nil
  41. combo=0
  42. mana=0
  43. trispeed=1
  44. pathtrans=.7
  45. attackmode='none'
  46. local idle=0
  47. local Anim="Idle"
  48. local Effects={}
  49. local gun=false
  50. local shoot=false
  51. player=nil
  52. cloak=false
  53. lightcolor='Bright blue'
  54.  
  55. mouse=Player:GetMouse()
  56. --save shoulders
  57. RSH, LSH=nil, nil
  58. --welds
  59. RW, LW=Instance.new("Weld"), Instance.new("Weld")
  60. RW.Name="Right Shoulder" LW.Name="Left Shoulder"
  61. LH=Torso["Left Hip"]
  62. RH=Torso["Right Hip"]
  63. TorsoColor=Torso.BrickColor
  64. function NoOutline(Part)
  65. Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
  66. end
  67. player=Player
  68. ch=Character
  69. RSH=ch.Torso["Right Shoulder"]
  70. LSH=ch.Torso["Left Shoulder"]
  71. --
  72. RSH.Parent=nil
  73. LSH.Parent=nil
  74. --
  75. RW.Name="Right Shoulder"
  76. RW.Part0=ch.Torso
  77. RW.C0=cf(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5)
  78. RW.C1=cf(0, 0.5, 0)
  79. RW.Part1=ch["Right Arm"]
  80. RW.Parent=ch.Torso
  81. --
  82. LW.Name="Left Shoulder"
  83. LW.Part0=ch.Torso
  84. LW.C0=cf(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8)
  85. LW.C1=cf(0, 0.5, 0)
  86. LW.Part1=ch["Left Arm"]
  87. LW.Parent=ch.Torso
  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
  101. NoOutline(fp)
  102. fp.Material="SmoothPlastic"
  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. if meshid~="nil" then
  113. mesh.MeshId="http://www.roblox.com/asset/?id="..meshid
  114. end
  115. end
  116. mesh.Offset=offset
  117. mesh.Scale=scale
  118. return mesh
  119. end
  120.  
  121. function weld(parent,part0,part1,c0)
  122. local weld=it("Weld")
  123. weld.Parent=parent
  124. weld.Part0=part0
  125. weld.Part1=part1
  126. weld.C0=c0
  127. return weld
  128. end
  129.  
  130. local Color1=Torso.BrickColor
  131.  
  132. local bodvel=Instance.new("BodyVelocity")
  133. local bg=Instance.new("BodyGyro")
  134.  
  135. function swait(num)
  136. if num==0 or num==nil then
  137. game:service'RunService'.Stepped:wait(0)
  138. else
  139. for i=0,num do
  140. game:service'RunService'.Stepped:wait(0)
  141. end
  142. end
  143. end
  144.  
  145.  
  146. so = function(id,par,vol,pit)
  147. coroutine.resume(coroutine.create(function()
  148. local sou = Instance.new("Sound",par or workspace)
  149. sou.Volume=vol
  150. sou.Pitch=pit or 1
  151. sou.SoundId=id
  152. swait()
  153. sou:play()
  154. game:GetService("Debris"):AddItem(sou,6)
  155. end))
  156. end
  157.  
  158. function clerp(a,b,t)
  159. local qa = {QuaternionFromCFrame(a)}
  160. local qb = {QuaternionFromCFrame(b)}
  161. local ax, ay, az = a.x, a.y, a.z
  162. local bx, by, bz = b.x, b.y, b.z
  163. local _t = 1-t
  164. return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t))
  165. end
  166.  
  167. function QuaternionFromCFrame(cf)
  168. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  169. local trace = m00 + m11 + m22
  170. if trace > 0 then
  171. local s = math.sqrt(1 + trace)
  172. local recip = 0.5/s
  173. return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5
  174. else
  175. local i = 0
  176. if m11 > m00 then
  177. i = 1
  178. end
  179. if m22 > (i == 0 and m00 or m11) then
  180. i = 2
  181. end
  182. if i == 0 then
  183. local s = math.sqrt(m00-m11-m22+1)
  184. local recip = 0.5/s
  185. return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip
  186. elseif i == 1 then
  187. local s = math.sqrt(m11-m22-m00+1)
  188. local recip = 0.5/s
  189. return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip
  190. elseif i == 2 then
  191. local s = math.sqrt(m22-m00-m11+1)
  192. local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip
  193. end
  194. end
  195. end
  196.  
  197. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  198. local xs, ys, zs = x + x, y + y, z + z
  199. local wx, wy, wz = w*xs, w*ys, w*zs
  200. local xx = x*xs
  201. local xy = x*ys
  202. local xz = x*zs
  203. local yy = y*ys
  204. local yz = y*zs
  205. local zz = z*zs
  206. return CFrame.new(px, py, pz,1-(yy+zz), xy - wz, xz + wy,xy + wz, 1-(xx+zz), yz - wx, xz - wy, yz + wx, 1-(xx+yy))
  207. end
  208.  
  209. function QuaternionSlerp(a, b, t)
  210. local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4]
  211. local startInterp, finishInterp;
  212. if cosTheta >= 0.0001 then
  213. if (1 - cosTheta) > 0.0001 then
  214. local theta = math.acos(cosTheta)
  215. local invSinTheta = 1/math.sin(theta)
  216. startInterp = math.sin((1-t)*theta)*invSinTheta
  217. finishInterp = math.sin(t*theta)*invSinTheta
  218. else
  219. startInterp = 1-t
  220. finishInterp = t
  221. end
  222. else
  223. if (1+cosTheta) > 0.0001 then
  224. local theta = math.acos(-cosTheta)
  225. local invSinTheta = 1/math.sin(theta)
  226. startInterp = math.sin((t-1)*theta)*invSinTheta
  227. finishInterp = math.sin(t*theta)*invSinTheta
  228. else
  229. startInterp = t-1
  230. finishInterp = t
  231. end
  232. end
  233. return a[1]*startInterp + b[1]*finishInterp, a[2]*startInterp + b[2]*finishInterp, a[3]*startInterp + b[3]*finishInterp, a[4]*startInterp + b[4]*finishInterp
  234. end
  235.  
  236. function rayCast(Pos, Dir, Max, Ignore) -- Origin Position , Direction, MaxDistance , IgnoreDescendants
  237. return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  238. end
  239.  
  240. function SkullEffect(brickcolor,cframe,x1,y1,z1,delay)
  241. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  242. prt.Anchored=true
  243. prt.CFrame=cframe
  244. local msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=4770583",vt(0,0,0),vt(x1,y1,z1))
  245. --http://www.roblox.com/asset/?id=4770560
  246. game:GetService("Debris"):AddItem(prt,2)
  247. CF=prt.CFrame
  248. coroutine.resume(coroutine.create(function(Part,Mesh,TehCF)
  249. for i=0,1,0.2 do
  250. wait()
  251. Part.CFrame=CF*cf(0,0,-0.4)
  252. end
  253. for i=0,1,delay do
  254. wait()
  255. --Part.CFrame=CF*cf((math.random(-1,0)+math.random())/5,(math.random(-1,0)+math.random())/5,(math.random(-1,0)+math.random())/5)
  256. Mesh.Scale=Mesh.Scale
  257. end
  258. for i=0,1,0.1 do
  259. wait()
  260. Part.Transparency=i
  261. end
  262. Part.Parent=nil
  263. end),prt,msh,CF)
  264. end
  265.  
  266. function MagicBlock(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  267. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  268. prt.Anchored=true
  269. prt.CFrame=cframe
  270. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  271. game:GetService("Debris"):AddItem(prt,5)
  272. coroutine.resume(coroutine.create(function(Part,Mesh)
  273. for i=0,1,delay do
  274. wait()
  275. Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  276. Part.Transparency=i
  277. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  278. end
  279. Part.Parent=nil
  280. end),prt,msh)
  281. end
  282.  
  283. function MagicBlock2(brickcolor,cframe,Parent,x1,y1,z1,x3,y3,z3,delay)
  284. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  285. prt.Anchored=false
  286. prt.CFrame=cframe
  287. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  288. local wld=weld(prt,prt,Parent,cframe)
  289. game:GetService("Debris"):AddItem(prt,5)
  290. coroutine.resume(coroutine.create(function(Part,Mesh,Weld)
  291. for i=0,1,delay do
  292. wait()
  293. Weld.C0=euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))*cframe
  294. --Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  295. Part.Transparency=i
  296. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  297. end
  298. Part.Parent=nil
  299. end),prt,msh,wld)
  300. end
  301.  
  302. function MagicBlock3(brickcolor,cframe,Parent,x1,y1,z1,x3,y3,z3,delay)
  303. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  304. prt.Anchored=false
  305. prt.CFrame=cframe
  306. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  307. local wld=weld(prt,prt,Parent,euler(0,0,0)*cf(0,0,0))
  308. game:GetService("Debris"):AddItem(prt,5)
  309. coroutine.resume(coroutine.create(function(Part,Mesh,Weld)
  310. for i=0,1,delay do
  311. wait()
  312. Weld.C0=euler(i*20,0,0)
  313. --Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  314. Part.Transparency=i
  315. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  316. end
  317. Part.Parent=nil
  318. end),prt,msh,wld)
  319. end
  320.  
  321. function MagicCircle2(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  322. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  323. prt.Anchored=true
  324. prt.CFrame=cframe
  325. local msh=mesh("CylinderMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  326. game:GetService("Debris"):AddItem(prt,2)
  327. coroutine.resume(coroutine.create(function(Part,Mesh)
  328. for i=0,1,delay do
  329. wait()
  330. Part.CFrame=Part.CFrame
  331. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  332. local prt2=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  333. prt2.Anchored=true
  334. prt2.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  335. local msh2=mesh("SpecialMesh",prt2,"Sphere","",vt(0,0,0),vt(0.5,0.5,0.5))
  336. game:GetService("Debris"):AddItem(prt2,2)
  337. coroutine.resume(coroutine.create(function(Part,Mesh)
  338. for i=0,1,0.1 do
  339. wait()
  340. Part.CFrame=Part.CFrame*cf(0,0.5,0)
  341. end
  342. Part.Parent=nil
  343. end),prt2,msh2)
  344. end
  345. for i=0,1,delay*2 do
  346. wait()
  347. Part.CFrame=Part.CFrame
  348. Mesh.Scale=vt((x1+x3)-(x1+x3)*i,(y1+y3)-(y1+y3)*i,(z1+z3)-(z1+z3)*i)
  349. end
  350. Part.Parent=nil
  351. end),prt,msh)
  352. end
  353.  
  354. function MagicCircle(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  355. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  356. prt.Anchored=true
  357. prt.CFrame=cframe
  358. local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  359. game:GetService("Debris"):AddItem(prt,2)
  360. coroutine.resume(coroutine.create(function(Part,Mesh)
  361. for i=0,1,delay do
  362. wait()
  363. Part.CFrame=Part.CFrame
  364. Part.Transparency=i
  365. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  366. end
  367. Part.Parent=nil
  368. end),prt,msh)
  369. end
  370.  
  371. function MagicRing(brickcolor,cframe,x1,y1,z1,x2,y2,z2,x3,y3,z3)
  372. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  373. prt.Anchored=true
  374. prt.CFrame=cframe*euler(x2,y2,z2)
  375. --"http://www.roblox.com/asset/?id=168892465"
  376. local msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=3270017",vt(0,0,0),vt(x1,y1,z1))
  377. game:GetService("Debris"):AddItem(prt,2)
  378. coroutine.resume(coroutine.create(function(Part,Mesh)
  379. for i=0,1,0.03 do
  380. wait()
  381. Part.CFrame=Part.CFrame
  382. Part.Transparency=i
  383. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  384. end
  385. Part.Parent=nil
  386. end),prt,msh)
  387. end
  388.  
  389. function BreakEffect(brickcolor,cframe,x1,y1,z1)
  390. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  391. prt.Anchored=true
  392. prt.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  393. local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  394. game:GetService("Debris"):AddItem(prt,2)
  395. coroutine.resume(coroutine.create(function(Part,CF,Numbb,randnumb)
  396. CF=Part.CFrame
  397. Numbb=0
  398. randnumb=math.random()/10
  399. rand1=math.random()/10
  400. for i=0,1,rand1 do
  401. wait()
  402. CF=CF*cf(0,math.random()/2,0)
  403. --Part.CFrame=Part.CFrame*euler(0.5,0,0)*cf(0,1,0)
  404. Part.CFrame=CF*euler(Numbb,0,0)
  405. Part.Transparency=i
  406. Numbb=Numbb+randnumb
  407. end
  408. Part.Parent=nil
  409. end),prt,CF,Numbb,randnumb)
  410. end
  411.  
  412. function MagicWaveThing(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  413. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  414. prt.Anchored=true
  415. prt.CFrame=cframe
  416. msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=1051557",vt(0,0,0),vt(x1,y1,z1))
  417. game:GetService("Debris"):AddItem(prt,5)
  418. coroutine.resume(coroutine.create(function(Part,Mesh)
  419. for i=0,1,delay do
  420. wait()
  421. Part.CFrame=Part.CFrame*euler(0,0.7,0)
  422. Part.Transparency=i
  423. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  424. end
  425. Part.Parent=nil
  426. end),prt,msh)
  427. end
  428.  
  429. function WaveEffect(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  430. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  431. prt.Anchored=true
  432. prt.CFrame=cframe
  433. msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=20329976",vt(0,0,0),vt(x1,y1,z1))
  434. game:GetService("Debris"):AddItem(prt,2)
  435. coroutine.resume(coroutine.create(function(Part,Mesh)
  436. for i=0,1,delay do
  437. wait()
  438. Part.CFrame=Part.CFrame*cf(0,y3/2,0)
  439. Part.Transparency=i
  440. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  441. end
  442. Part.Parent=nil
  443. end),prt,msh)
  444. end
  445.  
  446. function StravEffect(brickcolor,cframe,x,y,z,x1,y1,z1,delay)
  447. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  448. prt.Anchored=true
  449. prt.CFrame=cframe*cf(x,y,z)
  450. msh=mesh("SpecialMesh",prt,"FileMesh","rbxassetid://168892363",vt(0,0,0),vt(x1,y1,z1))
  451. game:GetService("Debris"):AddItem(prt,5)
  452. coroutine.resume(coroutine.create(function(Part,Mesh,ex,why,zee)
  453. local num=math.random()
  454. local num2=math.random(-3,2)+math.random()
  455. local numm=0
  456. for i=0,1,delay*2 do
  457. swait()
  458. Part.CFrame=cframe*euler(0,numm*num*10,0)*cf(ex,why,zee)*cf(-i*10,num2,0)
  459. Part.Transparency=i
  460. numm=numm+0.01
  461. end
  462. Part.Parent=nil
  463. Mesh.Parent=nil
  464. end),prt,msh,x,y,z)
  465. end
  466.  
  467. Damagefunc=function(hit,minim,maxim,knockback,Type,Property,Delay,KnockbackType,decreaseblock)
  468. if hit.Parent==nil then
  469. return
  470. end
  471. h=hit.Parent:FindFirstChild("Humanoid")
  472. for _,v in pairs(hit.Parent:children()) do
  473. if v:IsA("Humanoid") then
  474. h=v
  475. end
  476. end
  477. if hit.Parent.Parent:FindFirstChild("Torso")~=nil then
  478. h=hit.Parent.Parent:FindFirstChild("Humanoid")
  479. end
  480. if hit.Parent.className=="Hat" then
  481. hit=hit.Parent.Parent:findFirstChild("Head")
  482. end
  483. if h~=nil and hit.Parent.Name~=Character.Name and hit.Parent:FindFirstChild("Torso")~=nil then
  484. if hit.Parent:findFirstChild("DebounceHit")~=nil then if hit.Parent.DebounceHit.Value==true then return end end
  485. --[[ if game.Players:GetPlayerFromCharacter(hit.Parent)~=nil then
  486. return
  487. end]]
  488. -- hs(hit,1.2)
  489. c=Instance.new("ObjectValue")
  490. c.Name="creator"
  491. c.Value=game:service("Players").LocalPlayer
  492. c.Parent=h
  493. game:GetService("Debris"):AddItem(c,.5)
  494. Damage=math.random(minim,maxim)
  495. -- h:TakeDamage(Damage)
  496. blocked=false
  497. block=hit.Parent:findFirstChild("Block")
  498. if block~=nil then
  499. print(block.className)
  500. if block.className=="NumberValue" then
  501. if block.Value>0 then
  502. blocked=true
  503. if decreaseblock==nil then
  504. block.Value=block.Value-1
  505. end
  506. end
  507. end
  508. if block.className=="IntValue" then
  509. if block.Value>0 then
  510. blocked=true
  511. if decreaseblock~=nil then
  512. block.Value=block.Value-1
  513. end
  514. end
  515. end
  516. end
  517. if blocked==false then
  518. -- h:TakeDamage(Damage)
  519. h.Health=h.Health-Damage
  520. showDamage(hit.Parent,Damage,.5,BrickColor.new("Navy blue"))
  521. else
  522. h.Health=h.Health-(Damage/2)
  523. showDamage(hit.Parent,Damage/2,.5,BrickColor.new("Bright blue"))
  524. end
  525. if Type=="Knockdown" then
  526. hum=hit.Parent.Humanoid
  527. hum.PlatformStand=true
  528. coroutine.resume(coroutine.create(function(HHumanoid)
  529. swait(1)
  530. HHumanoid.PlatformStand=false
  531. end),hum)
  532. local angle=(hit.Position-(Property.Position+Vector3.new(0,0,0))).unit
  533. --hit.CFrame=CFrame.new(hit.Position,Vector3.new(angle.x,hit.Position.y,angle.z))*CFrame.fromEulerAnglesXYZ(math.pi/4,0,0)
  534. local bodvol=Instance.new("BodyVelocity")
  535. bodvol.velocity=angle*knockback
  536. bodvol.P=5000
  537. bodvol.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
  538. bodvol.Parent=hit
  539. rl=Instance.new("BodyAngularVelocity")
  540. rl.P=3000
  541. rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000
  542. rl.angularvelocity=Vector3.new(math.random(-10,10),math.random(-10,10),math.random(-10,10))
  543. rl.Parent=hit
  544. game:GetService("Debris"):AddItem(bodvol,.5)
  545. game:GetService("Debris"):AddItem(rl,.5)
  546. elseif Type=="Normal" then
  547. vp=Instance.new("BodyVelocity")
  548. vp.P=500
  549. vp.maxForce=Vector3.new(math.huge,0,math.huge)
  550. -- vp.velocity=Character.Torso.CFrame.lookVector*Knockback
  551. if KnockbackType==1 then
  552. vp.velocity=Property.CFrame.lookVector*knockback+Property.Velocity/1.05
  553. elseif KnockbackType==2 then
  554. vp.velocity=Property.CFrame.lookVector*knockback
  555. end
  556. if knockback>0 then
  557. vp.Parent=hit.Parent.Torso
  558. end
  559. game:GetService("Debris"):AddItem(vp,.5)
  560. elseif Type=="Up" then
  561. local bodyVelocity=Instance.new("BodyVelocity")
  562. bodyVelocity.velocity=vt(0,60,0)
  563. bodyVelocity.P=5000
  564. bodyVelocity.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
  565. bodyVelocity.Parent=hit
  566. game:GetService("Debris"):AddItem(bodyVelocity,1)
  567. rl=Instance.new("BodyAngularVelocity")
  568. rl.P=3000
  569. rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000
  570. rl.angularvelocity=Vector3.new(math.random(-30,30),math.random(-30,30),math.random(-30,30))
  571. rl.Parent=hit
  572. game:GetService("Debris"):AddItem(rl,.5)
  573. elseif Type=="Snare" then
  574. bp=Instance.new("BodyPosition")
  575. bp.P=2000
  576. bp.D=100
  577. bp.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  578. bp.position=hit.Parent.Torso.Position
  579. bp.Parent=hit.Parent.Torso
  580. game:GetService("Debris"):AddItem(bp,1)
  581. elseif Type=="Target" then
  582. if Targetting==false then
  583. ZTarget=hit.Parent.Torso
  584. coroutine.resume(coroutine.create(function(Part)
  585. so("http://www.roblox.com/asset/?id=15666462",Part,1,1.5)
  586. swait(5)
  587. so("http://www.roblox.com/asset/?id=15666462",Part,1,1.5)
  588. end),ZTarget)
  589. TargHum=ZTarget.Parent:findFirstChild("Humanoid")
  590. targetgui=Instance.new("BillboardGui")
  591. targetgui.Parent=ZTarget
  592. targetgui.Size=UDim2.new(10,100,10,100)
  593. targ=Instance.new("ImageLabel")
  594. targ.Parent=targetgui
  595. targ.BackgroundTransparency=1
  596. targ.Image="rbxassetid://4834067"
  597. targ.Size=UDim2.new(1,0,1,0)
  598. cam.CameraType="Scriptable"
  599. cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
  600. dir=Vector3.new(cam.CoordinateFrame.lookVector.x,0,cam.CoordinateFrame.lookVector.z)
  601. workspace.CurrentCamera.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
  602. Targetting=true
  603. RocketTarget=ZTarget
  604. for i=1,Property do
  605. --while Targetting==true and Humanoid.Health>0 and Character.Parent~=nil do
  606. if Humanoid.Health>0 and Character.Parent~=nil and TargHum.Health>0 and TargHum.Parent~=nil and Targetting==true then
  607. swait()
  608. end
  609. --workspace.CurrentCamera.CoordinateFrame=CFrame.new(Head.CFrame.p,Head.CFrame.p+rmdir*100)
  610. cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
  611. dir=Vector3.new(cam.CoordinateFrame.lookVector.x,0,cam.CoordinateFrame.lookVector.z)
  612. cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)*cf(0,5,10)*euler(-0.3,0,0)
  613. end
  614. Targetting=false
  615. RocketTarget=nil
  616. targetgui.Parent=nil
  617. cam.CameraType="Custom"
  618. end
  619. end
  620. debounce=Instance.new("BoolValue")
  621. debounce.Name="DebounceHit"
  622. debounce.Parent=hit.Parent
  623. debounce.Value=true
  624. game:GetService("Debris"):AddItem(debounce,Delay)
  625. c=Instance.new("ObjectValue")
  626. c.Name="creator"
  627. c.Value=Player
  628. c.Parent=h
  629. game:GetService("Debris"):AddItem(c,.5)
  630. CRIT=false
  631. hitDeb=true
  632. AttackPos=6
  633. end
  634. end
  635.  
  636. showDamage=function(Char,Dealt,du,Color)
  637. m=Instance.new("Model")
  638. m.Name=tostring(Dealt)
  639. h=Instance.new("Humanoid")
  640. h.Health=0
  641. h.MaxHealth=0
  642. h.Parent=m
  643. c=Instance.new("Part")
  644. c.Transparency=0
  645. c.BrickColor=Color
  646. c.Name="Head"
  647. c.TopSurface=0
  648. c.BottomSurface=0
  649. c.formFactor="Plate"
  650. c.Size=Vector3.new(1,.4,1)
  651. ms=Instance.new("CylinderMesh")
  652. ms.Scale=Vector3.new(.8,.8,.8)
  653. if CRIT==true then
  654. ms.Scale=Vector3.new(1,1.25,1)
  655. end
  656. ms.Parent=c
  657. c.Reflectance=0
  658. Instance.new("BodyGyro").Parent=c
  659. c.Parent=m
  660. if Char:findFirstChild("Head")~=nil then
  661. c.CFrame=CFrame.new(Char["Head"].CFrame.p+Vector3.new(0,1.5,0))
  662. elseif Char.Parent:findFirstChild("Head")~=nil then
  663. c.CFrame=CFrame.new(Char.Parent["Head"].CFrame.p+Vector3.new(0,1.5,0))
  664. end
  665. f=Instance.new("BodyPosition")
  666. f.P=2000
  667. f.D=100
  668. f.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  669. f.position=c.Position+Vector3.new(0,3,0)
  670. f.Parent=c
  671. game:GetService("Debris"):AddItem(m,.5+du)
  672. c.CanCollide=false
  673. m.Parent=workspace
  674. c.CanCollide=false
  675. end
  676.  
  677. Player=game:GetService('Players').LocalPlayer
  678. Character=Player.Character
  679. Mouse=Player:GetMouse()
  680. m=Instance.new('Model',Character)
  681.  
  682.  
  683. local function weldBetween(a, b)
  684. local weldd = Instance.new("ManualWeld")
  685. weldd.Part0 = a
  686. weldd.Part1 = b
  687. weldd.C0 = CFrame.new()
  688. weldd.C1 = b.CFrame:inverse() * a.CFrame
  689. weldd.Parent = a
  690. return weldd
  691. end
  692.  
  693. it=Instance.new
  694.  
  695. function nooutline(part)
  696. part.TopSurface,part.BottomSurface,part.LeftSurface,part.RightSurface,part.FrontSurface,part.BackSurface = 10,10,10,10,10,10
  697. end
  698.  
  699. function part(formfactor,parent,material,reflectance,transparency,brickcolor,name,size)
  700. local fp=it("Part")
  701. fp.formFactor=formfactor
  702. fp.Parent=parent
  703. fp.Reflectance=reflectance
  704. fp.Transparency=transparency
  705. fp.CanCollide=false
  706. fp.Locked=true
  707. fp.BrickColor=BrickColor.new(tostring(brickcolor))
  708. fp.Name=name
  709. fp.Size=size
  710. fp.Position=Character.Torso.Position
  711. nooutline(fp)
  712. fp.Material=material
  713. fp:BreakJoints()
  714. return fp
  715. end
  716.  
  717. function mesh(Mesh,part,meshtype,meshid,offset,scale)
  718. local mesh=it(Mesh)
  719. mesh.Parent=part
  720. if Mesh=="SpecialMesh" then
  721. mesh.MeshType=meshtype
  722. mesh.MeshId=meshid
  723. end
  724. mesh.Offset=offset
  725. mesh.Scale=scale
  726. return mesh
  727. end
  728.  
  729. function weld(parent,part0,part1,c0,c1)
  730. local weld=it("Weld")
  731. weld.Parent=parent
  732. weld.Part0=part0
  733. weld.Part1=part1
  734. weld.C0=c0
  735. weld.C1=c1
  736. return weld
  737. end
  738.  
  739. Handle=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Navy blue","Handle",Vector3.new(1.20000005, 1.20000005, 1))
  740. Handleweld=weld(m,Character["Torso"],Handle,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-6.74455023, 0.843135834, 3.31332064, 0.866820872, 0.000393055088, -0.498619556, 0.129048944, -0.966104209, 0.223582461, -0.481630623, -0.258152217, -0.837489963))
  741. mesh("SpecialMesh",Handle,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  742. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(2.20000005, 1, 1))
  743. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(3.89693689, 0.0205960274, 1.83752108, 0.00084605813, 0.865680099, -0.500597, -0.999998748, 2.925843e-005, -0.00163948536, -0.00140464306, 0.500597715, 0.865678906))
  744. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Navy blue","Part",Vector3.new(1, 0.400000006, 1))
  745. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.0205993652, 3.97038841, -4.62090921, -0.999998689, 2.810359e-005, -0.00163501501, 0.00158691406, 0.25815019, -0.966103554, 0.0003949448, -0.966104805, -0.258149862))
  746. mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/Asset/?id=9756362",Vector3.new(0, 0, 0),Vector3.new(1, 2.92400002, 1.18400002))
  747. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(2.20000005, 1, 1))
  748. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(3.18639517, -0.292996764, 3.91572571, -0.407002717, 0.123095758, -0.905094743, -0.483149111, -0.869928718, 0.098949343, -0.775187671, 0.477568328, 0.413536996))
  749. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(2.20000005, 1, 1))
  750. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(3.62196398, -0.29297936, 1.11572647, -0.835932732, 0.424737811, -0.347583354, -0.483153641, -0.869926155, 0.0989501327, -0.260344028, 0.250651836, 0.932413459))
  751. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(2.20000005, 1, 1))
  752. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(3.55920649, -0.210347176, 1.642519, -0.865201712, -0.000320911407, -0.501423895, -2.98991799e-005, -0.999999881, 0.000691637397, -0.501424074, 0.000613339245, 0.865201592))
  753. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(2.20000005, 1, 1))
  754. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(2.931638, -0.0751047134, 4.50077248, -0.352038473, 0.176153034, -0.919260144, -0.86644727, -0.432817101, 0.248874903, -0.354031444, 0.884103954, 0.304995537))
  755. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(2.20000005, 1, 1))
  756. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(3.34771347, -0.763819337, 1.31078529, 0.484322906, -0.259408951, -0.835546851, 0.129806682, 0.965767562, -0.224595979, 0.865206063, 0.000317394733, 0.501416266))
  757. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(2.20000005, 1, 1))
  758. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(3.85524988, -0.0749192238, 1.7092638, -0.499263257, 0.749717236, -0.434350491, -0.866449237, -0.432811975, 0.248876765, -0.00140497088, 0.500597596, 0.865678906))
  759. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(2.20000005, 1, 1))
  760. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(2.76954031, -0.210381031, 4.2438035, -0.257231236, -0.00066010654, -0.966349661, -3.04505229e-005, -0.999999762, 0.000691249967, -0.966350019, 0.000207226723, 0.257231265))
  761. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(2.20000005, 1, 1))
  762. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(2.87043977, 0.020611763, 4.62094831, 0.00159165263, 0.258152187, -0.966103137, -0.999998748, 2.89455056e-005, -0.00163969398, -0.000395349402, 0.966104329, 0.258151829))
  763. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Navy blue","Part",Vector3.new(1, 0.400000006, 1))
  764. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.292981744, 4.28636312, -3.9157095, -0.48314926, -0.869928479, 0.0989517197, -0.407004297, 0.123094313, -0.905094087, 0.775186777, -0.477569282, -0.413537562))
  765. mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/Asset/?id=9756362",Vector3.new(0, 0, 0),Vector3.new(1, 2.92400002, 1.18400002))
  766. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(2.20000005, 1, 1))
  767. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(2.85442352, -0.763632059, 3.85966015, -0.269319534, -0.183654502, -0.945377231, 0.129806384, 0.96576786, -0.22459501, 0.954262853, -0.183203816, -0.236260682))
  768. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Navy blue","Part",Vector3.new(1, 0.400000006, 1))
  769. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.0751276016, 4.03159618, -4.50067854, -0.866445661, -0.432817698, 0.248879611, -0.352042913, 0.176151246, -0.919258773, 0.354030937, -0.884103894, -0.304995805))
  770. mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/Asset/?id=9756362",Vector3.new(0, 0, 0),Vector3.new(1, 2.92400002, 1.18400002))
  771. Gear=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(4.29999971, 4.30000019, 1))
  772. Gearweld=weld(m,Handle,Gear,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.0552597046, -0.0398271084, -0.0363032818, 0.999988854, -3.23429704e-005, 0.00164097548, 3.37436795e-005, 0.999994695, -0.000689953566, -0.00164103508, 0.000689953566, 0.999993086))
  773. mesh("SpecialMesh",Gear,Enum.MeshType.FileMesh,"http://www.roblox.com/asset?id=156292343",Vector3.new(0, 0, 0),Vector3.new(5, 5, 15))
  774. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Navy blue","Part",Vector3.new(1, 0.400000006, 1))
  775. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.210398674, 3.86948943, -4.24380398, -3.15159559e-005, -0.999999881, 0.00069090724, -0.257231474, -0.000659480691, -0.966349721, 0.966349959, -0.000208158046, -0.257231474))
  776. mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/Asset/?id=9756362",Vector3.new(0, 0, 0),Vector3.new(1, 2.92400002, 1.18400002))
  777. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Navy blue","Part",Vector3.new(1, 0.400000006, 1))
  778. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.763661504, 3.95439076, 3.85964441, -0.129806131, -0.965767682, 0.224596098, -0.269319892, -0.1836555, -0.945376873, 0.954262733, -0.183203891, -0.236260891))
  779. mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/Asset/?id=9756362",Vector3.new(0, 0, 0),Vector3.new(1, 2.92400002, 1.18400002))
  780.  
  781. Handle2=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Navy blue","Handle",Vector3.new(1.20000005, 1.20000005, 1))
  782. Handle2weld=weld(m,Character["Torso"],Handle2,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(6.65693045, 1.66835713, 2.9684639, 0.866025746, 0.129405379, 0.482963592, -3.67555799e-006, -0.965926409, 0.258817136, 0.499999553, -0.224144042, -0.836516559))
  783. mesh("SpecialMesh",Handle2,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  784. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(2.20000005, 1, 1))
  785. Partweld=weld(m,Handle2,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(3.66774845, 0.445008755, 1.50737095, 0.749997497, 0.500002265, -0.433014721, -0.433012635, 0.866024196, 0.250004709, 0.500004232, -2.02655792e-006, 0.866023183))
  786. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(2.20000005, 1, 1))
  787. Partweld=weld(m,Handle2,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(3.70916891, 0.288796425, 1.12511444, 0.424947768, 0.836517453, -0.34591651, -0.870010257, 0.482961774, 0.0991482884, 0.250003695, 0.25881803, 0.933012009))
  788. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(2.20000005, 1, 1))
  789. Partweld=weld(m,Handle2,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(3.24143982, 0.288818121, 3.98402214, 0.123706907, 0.408494055, -0.904339194, -0.870007515, 0.482966691, 0.0991476029, 0.477266878, 0.774516642, 0.415139139))
  790. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Navy blue","Part",Vector3.new(1, 0.400000006, 1))
  791. Partweld=weld(m,Handle2,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.288883209, 4.34139919, -3.98407936, -0.870006502, 0.482969046, 0.099145025, 0.123710275, 0.408492953, -0.904339135, -0.477267861, -0.774515808, -0.415139765))
  792. mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/Asset/?id=9756362",Vector3.new(0, 0, 0),Vector3.new(1, 2.92400002, 1.18400002))
  793. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Navy blue","Part",Vector3.new(1, 0.400000006, 1))
  794. Partweld=weld(m,Handle2,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.377311707, 3.81443644, -4.17874861, 1.43051147e-006, 1.00000012, 5.58793545e-006, 0.258813858, 5.02169132e-006, -0.965927303, -0.965927362, 2.82377005e-006, -0.258813858))
  795. mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/Asset/?id=9756362",Vector3.new(0, 0, 0),Vector3.new(1, 2.92400002, 1.18400002))
  796. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(2.20000005, 1, 1))
  797. Partweld=weld(m,Handle2,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(3.11095357, 0.452475548, 3.33581829, 0.214266971, -0.258726388, -0.941886604, 0.124996454, -0.949091196, 0.289140463, -0.968744338, -0.179685742, -0.171018958))
  798. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Navy blue","Part",Vector3.new(1, 0.400000006, 1))
  799. Partweld=weld(m,Handle2,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.445028067, 4.04179811, -4.22505188, -0.433007121, 0.86602807, 0.250001073, 0.176776409, 0.353552371, -0.918559194, -0.883886516, -0.353548348, -0.306183964))
  800. mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/Asset/?id=9756362",Vector3.new(0, 0, 0),Vector3.new(1, 2.92400002, 1.18400002))
  801. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(2.20000005, 1, 1))
  802. Partweld=weld(m,Handle2,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(2.71447492, 0.377288342, 4.1787672, 0.258815825, 7.89761543e-007, -0.965926647, 2.11596489e-006, 1.00000012, 1.35600567e-006, 0.965926886, -2.41398811e-006, 0.258815885))
  803. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Navy blue","Part",Vector3.new(1, 0.400000006, 1))
  804. Partweld=weld(m,Handle2,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.452456236, 4.21090841, 3.33576679, -0.124996543, 0.949091196, -0.289140046, 0.214267105, -0.25872606, -0.941886783, -0.968744338, -0.179685771, -0.171019137))
  805. mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/Asset/?id=9756362",Vector3.new(0, 0, 0),Vector3.new(1, 2.92400002, 1.18400002))
  806. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(2.20000005, 1, 1))
  807. Partweld=weld(m,Handle2,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(2.94182658, 0.445016861, 4.22507095, 0.176774979, 0.353554398, -0.918558657, -0.433007926, 0.866026998, 0.250003278, 0.883886337, 0.353548825, 0.306183696))
  808. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Navy blue","Part",Vector3.new(1, 0.400000006, 1))
  809. Partweld=weld(m,Handle2,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.256506443, 3.92671657, -4.59811449, -1.00000024, 2.62260437e-006, 1.4603138e-006, -7.4505806e-007, 0.258819073, -0.965925872, -2.89268792e-006, -0.965925932, -0.258819073))
  810. mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/Asset/?id=9756362",Vector3.new(0, 0, 0),Vector3.new(1, 2.92400002, 1.18400002))
  811. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(2.20000005, 1, 1))
  812. Partweld=weld(m,Handle2,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(3.4743073, 0.377253056, 1.63544273, 0.866023183, -4.61935997e-007, -0.500004172, 1.52736902e-006, 1.00000012, 1.65402889e-006, 0.500004232, -2.21282244e-006, 0.866023183))
  813. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(2.20000005, 1, 1))
  814. Partweld=weld(m,Handle2,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(3.15870619, 0.452619314, 0.758959055, -0.533491194, -0.310006529, -0.786945462, 0.124997422, -0.949090362, 0.289142251, -0.836518347, 0.0558886975, 0.545081377))
  815. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(2.20000005, 1, 1))
  816. Partweld=weld(m,Handle2,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(3.84976673, 0.256440639, 1.85214663, 6.2584877e-007, 0.866025329, -0.500000298, -1.00000024, 1.72108412e-006, 1.7285347e-006, 2.38418579e-006, 0.500000298, 0.866025329))
  817. Gear2=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(4.29999971, 4.30000019, 1))
  818. Gear2weld=weld(m,Handle2,Gear2,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.049841404, 0.049908638, 2.78949738e-005, 0.999990344, -5.01424074e-006, -1.49011612e-007, 5.28991222e-006, 0.999994934, 2.98023224e-008, 2.38418579e-007, -1.63912773e-007, 0.999994636))
  819. mesh("SpecialMesh",Gear2,Enum.MeshType.FileMesh,"http://www.roblox.com/asset?id=156292343",Vector3.new(0, 0, 0),Vector3.new(5, 5, 15))
  820. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(2.20000005, 1, 1))
  821. Partweld=weld(m,Handle2,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(2.82676554, 0.256523609, 4.598104, -1.1920929e-006, 0.258818835, -0.965925872, -1.00000012, 1.46776438e-006, 1.63912773e-006, 1.83098018e-006, 0.965925872, 0.258818835))
  822.  
  823. handle=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Navy blue","Handle",Vector3.new(1.20000005, 1.20000005, 1.20000005))
  824. handleweld=weld(m,Character["Torso"],handle,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-2.22326851, -3.5562191, -0.038143158, 0, 0, 1, 0, 1, 0, -1, 0, 0))
  825. mesh("SpecialMesh",handle,Enum.MeshType.FileMesh,"http://www.roblox.com/Asset/?id=9756362",Vector3.new(0, 0, 0),Vector3.new(1, 3, 1))
  826. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(1.20000005, 1.20000005, 1.20000005))
  827. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0, 1.09672546e-005, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1))
  828. mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/Asset/?id=9756362",Vector3.new(0, 0, 0),Vector3.new(1.102, 0.950000048, 1.16999996))
  829. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(1.20000005, 1.20000005, 1.20000005))
  830. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0, 1.09672546e-005, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1))
  831. mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/Asset/?id=9756362",Vector3.new(0, 0, 0),Vector3.new(1.102, 3, 0.863999963))
  832. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(3.79999995, 4, 1.39999998))
  833. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.0999984741, 0, -0.100000381, 0, -1, 0, 0, 0, 1, -1, -0, 0))
  834. mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=3270017",Vector3.new(0, 0, 0),Vector3.new(4.77400017, 4.96199989, 4.73800039))
  835. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Navy blue","Part",Vector3.new(3.79999995, 4, 1.39999998))
  836. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.0999984741, 0, -0.100000381, 0, -1, 0, 0, 0, 1, -1, -0, 0))
  837. mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=3270017",Vector3.new(0, 0, 0),Vector3.new(4.4920001, 4.70400047, 4.73800039))
  838. Wedge=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Wedge",Vector3.new(0.600000024, 2.5999999, 0.599999964))
  839. Wedgeweld=weld(m,handle,Wedge,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.100013733, -3.48671532, -1.09328079, 1, -2.52891718e-012, -6.81310423e-013, 2.53075664e-012, 0.866021812, 0.500005603, -6.74442273e-013, -0.500005603, 0.866021752))
  840. Wedge=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Wedge",Vector3.new(0.600000024, 2.5999999, 0.599999964))
  841. Wedgeweld=weld(m,handle,Wedge,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.100009918, -3.09970522, 1.40989685, 1, 0, 0, 0, 1, 0, 0, 0, 1))
  842. Wedge=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Wedge",Vector3.new(0.600000024, 2.5999999, 0.599999964))
  843. Wedgeweld=weld(m,handle,Wedge,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.100009918, -3.09970522, 1.39007568, -0.999999702, 0, 5.96046448e-008, 0, 1, 0, -5.96046448e-008, 0, -0.999999702))
  844. Wedge=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Wedge",Vector3.new(0.600000024, 2.5999999, 0.599999964))
  845. Wedgeweld=weld(m,handle,Wedge,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.100013733, -3.61302567, 0.360752106, 1, -3.69486299e-012, 1.70532143e-012, 3.81851625e-012, 0.707111537, -0.707102001, 1.40679254e-012, 0.70710206, 0.707111537))
  846.  
  847. mouse.Button1Down:connect(function()
  848. if attack==false and attacktype==1 then
  849. attacktype=2
  850. attackone()
  851. elseif attack==false and attacktype==2 then
  852. attacktype=1
  853. attacktwo()
  854. end
  855. end)
  856.  
  857. function attackone()
  858. attack=true
  859. con1=Gear.Touched:connect(function(hit) Damagefunc(hit,30,50,math.random(20,40),"Normal",RootPart,.2,1) end)
  860. for i=0,1,0.1 do
  861. swait()
  862. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,0),.2)
  863. Handleweld.C0=clerp(Handleweld.C0,cf(-5,1,-5)*angles(math.rad(100),math.rad(0),math.rad(0)),.2)
  864. Handle2weld.C0=clerp(Handle2weld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  865. RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*euler(.5,1.8,1.5),.3)
  866. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(2),math.rad(25),math.rad(-15)),.3)
  867. end
  868. so("http://www.roblox.com/asset/?id=231917758",Handle,1,.9)
  869. for i=0,1,0.1 do
  870. swait()
  871. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,0),.2)
  872. Handleweld.C0=clerp(Handleweld.C0,cf(-5,1,-5)*angles(math.rad(-85),math.rad(0),math.rad(0)),.2)
  873. Handle2weld.C0=clerp(Handle2weld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  874. RW.C0=clerp(RW.C0,cf(1.5,0.5,-0.5)*euler(80,1.8,1.5),.3)
  875. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(2),math.rad(25),math.rad(-15)),.3)
  876. end
  877. --dmgstop()
  878. attack=false
  879. con1:disconnect()
  880. end
  881.  
  882. function attacktwo()
  883. attack=true
  884. con1=Gear2.Touched:connect(function(hit) Damagefunc(hit,30,50,math.random(20,40),"Normal",RootPart,.2,1) end)
  885. for i=0,1,0.1 do
  886. swait()
  887. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,0),.2)
  888. Handle2weld.C0=clerp(Handle2weld.C0,cf(-5,1,-5)*angles(math.rad(0),math.rad(0),math.rad(20)),.2)
  889. Handleweld.C0=clerp(Handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  890. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-30,0,-20),.3)
  891. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-2),math.rad(-25),math.rad(15)),.3)
  892. end
  893. so("http://www.roblox.com/asset/?id=231917758",Handle2,1,.8)
  894. for i=0,1,0.1 do
  895. swait()
  896. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,0),.2)
  897. Handle2weld.C0=clerp(Handle2weld.C0,cf(10,1,-5)*angles(math.rad(0),math.rad(-80),math.rad(20)),.2)
  898. Handleweld.C0=clerp(Handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  899. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-30,0,20),.3)
  900. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-2),math.rad(-25),math.rad(15)),.3)
  901. end
  902. --dmgstop()
  903. attack=false
  904. con1:disconnect()
  905. end
  906.  
  907. local sine = 0
  908. local change = 1
  909. local val = 0
  910.  
  911. while true do
  912. swait()
  913. sine = sine + change
  914. local torvel=(RootPart.Velocity*Vector3.new(1,0,1)).magnitude
  915. local velderp=RootPart.Velocity.y
  916. hitfloor,posfloor=rayCast(RootPart.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,4,Character)
  917. if equipped==true or equipped==false then
  918. if attack==false then
  919. idle=idle+1
  920. else
  921. idle=0
  922. end
  923. if idle>=500 then
  924. if attack==false then
  925. --Sheath()
  926. end
  927. end
  928. if RootPart.Velocity.y > 1 and hitfloor==nil then
  929. Anim="Jump"
  930. if attack==false then
  931. Neck.C0=clerp(Neck.C0,necko*euler(-0.2,0,0),.3)
  932. Neck.C1=clerp(Neck.C1,necko2*euler(0,0,0),.3)
  933. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,0),.3)
  934. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-.5,0,0.5),.3)
  935. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  936. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-.5,0,-0.5),.3)
  937. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  938. RH.C0=clerp(RH.C0,cf(1,-1,-.3)*euler(-0.5,1.57,0)*euler(-.2,0,0),.2)
  939. LH.C0=clerp(LH.C0,cf(-1,-1,-.3)*euler(-0.5,-1.57,0)*euler(-.2,0,0),.2)
  940. Handleweld.C0=clerp(Handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  941. Handle2weld.C0=clerp(Handle2weld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  942. end
  943. elseif RootPart.Velocity.y < -1 and hitfloor==nil then
  944. Anim="Fall"
  945. if attack==false then
  946. Neck.C0=clerp(Neck.C0,necko*euler(0.4,0,0),.3)
  947. Neck.C1=clerp(Neck.C1,necko2*euler(0,0,0),.3)
  948. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,0),.3)
  949. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(0.3,0,0.2),.3)
  950. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  951. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(0.3,0,-0.2),.3)
  952. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  953. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0.4,1.57,0),.2)
  954. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(-0.2,-1.57,0),.2)
  955. Handleweld.C0=clerp(Handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  956. Handle2weld.C0=clerp(Handle2weld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  957. end
  958. elseif torvel<1 and hitfloor~=nil then
  959. Anim="Idle"
  960. if attack==false then
  961. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  962. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,0),.2)
  963. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-2),math.rad(-25),math.rad(15)),.3)
  964. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(2),math.rad(25),math.rad(-15)),.3)
  965. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  966. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  967. Handleweld.C0=clerp(Handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  968. Handle2weld.C0=clerp(Handle2weld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  969. end
  970. elseif torvel>2 and torvel<22 and hitfloor~=nil then
  971. local idleanim=0
  972. Anim="Walk"
  973. if attack==false then
  974. change=3
  975. --[[RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(35),math.rad(0),math.rad(15*math.cos(sine/10))),.3)
  976. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-30),math.rad(0),math.rad(0)),.3)
  977. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-135*math.cos(sine/9)),math.rad(0),math.rad(0)),.3)
  978. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(135*math.cos(sine/9)),math.rad(0),math.rad(0)),.3)
  979. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0)),.3)
  980. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0)),.3)
  981. --Handleweld.C0=clerp(--Handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)]]--
  982. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,0),.2)
  983. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0.1,0,0),.2)
  984. --RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-0.1,0,0.2),.2)
  985. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-5),math.rad(-25),math.rad(20)),.3)
  986. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(5),math.rad(25),math.rad(-20)),.3)
  987. RH.C0=clerp(RH.C0,RHC0,.3)
  988. LH.C0=clerp(LH.C0,LHC0,.3)
  989. Handleweld.C0=clerp(Handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  990. Handle2weld.C0=clerp(Handle2weld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  991. end
  992. elseif torvel>=22 and hitfloor~=nil then
  993. Anim="Run"
  994. if attack==false then
  995. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(45),math.rad(0),math.rad(0)),.3)
  996. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-40),math.rad(0),math.rad(0)),.3)
  997. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-60),math.rad(0),math.rad(0)),.3)
  998. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-60),math.rad(0),math.rad(0)),.3)
  999. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0)),.3)
  1000. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0)),.3)
  1001. Handleweld.C0=clerp(Handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  1002. Handle2weld.C0=clerp(Handle2weld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  1003. end
  1004. end
  1005. end
  1006. end
  1007. --156434034DPlayer=game:GetService("Players").LocalPlayer
  1008. Character=Player.Character
  1009. PlayerGui=Player.PlayerGui
  1010. Backpack=Player.Backpack
  1011. Torso=Character.Torso
  1012. Head=Character.Head
  1013. Humanoid=Character.Humanoid
  1014. m=Instance.new('Model',Character)
  1015. LeftArm=Character["Left Arm"]
  1016. LeftLeg=Character["Left Leg"]
  1017. RightArm=Character["Right Arm"]
  1018. RightLeg=Character["Right Leg"]
  1019. LS=Torso["Left Shoulder"]
  1020. LH=Torso["Left Hip"]
  1021. RS=Torso["Right Shoulder"]
  1022. RH=Torso["Right Hip"]
  1023. Face = Head.face
  1024. Neck=Torso.Neck
  1025. it=Instance.new
  1026. attacktype=1
  1027. vt=Vector3.new
  1028. cf=CFrame.new
  1029. euler=CFrame.fromEulerAnglesXYZ
  1030. angles=CFrame.Angles
  1031. cloaked=false
  1032. necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  1033. necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  1034. LHC0=cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0)
  1035. LHC1=cf(-0.5,1,0,-0,-0,-1,0,1,0,1,0,0)
  1036. RHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0)
  1037. RHC1=cf(0.5,1,0,0,0,1,0,1,0,-1,-0,-0)
  1038. RootPart=Character.HumanoidRootPart
  1039. RootJoint=RootPart.RootJoint
  1040. RootCF=euler(-1.57,0,3.14)
  1041. attack = false
  1042. attackdebounce = false
  1043. deb=false
  1044. equipped=true
  1045. hand=false
  1046. MMouse=nil
  1047. combo=0
  1048. mana=0
  1049. trispeed=1
  1050. pathtrans=.7
  1051. attackmode='none'
  1052. local idle=0
  1053. local Anim="Idle"
  1054. local Effects={}
  1055. local gun=false
  1056. local shoot=false
  1057. player=nil
  1058. cloak=false
  1059. lightcolor='Bright blue'
  1060.  
  1061. mouse=Player:GetMouse()
  1062. --save shoulders
  1063. RSH, LSH=nil, nil
  1064. --welds
  1065. RW, LW=Instance.new("Weld"), Instance.new("Weld")
  1066. RW.Name="Right Shoulder" LW.Name="Left Shoulder"
  1067. LH=Torso["Left Hip"]
  1068. RH=Torso["Right Hip"]
  1069. TorsoColor=Torso.BrickColor
  1070. function NoOutline(Part)
  1071. Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
  1072. end
  1073. player=Player
  1074. ch=Character
  1075. RSH=ch.Torso["Right Shoulder"]
  1076. LSH=ch.Torso["Left Shoulder"]
  1077. --
  1078. RSH.Parent=nil
  1079. LSH.Parent=nil
  1080. --
  1081. RW.Name="Right Shoulder"
  1082. RW.Part0=ch.Torso
  1083. RW.C0=cf(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5)
  1084. RW.C1=cf(0, 0.5, 0)
  1085. RW.Part1=ch["Right Arm"]
  1086. RW.Parent=ch.Torso
  1087. --
  1088. LW.Name="Left Shoulder"
  1089. LW.Part0=ch.Torso
  1090. LW.C0=cf(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8)
  1091. LW.C1=cf(0, 0.5, 0)
  1092. LW.Part1=ch["Left Arm"]
  1093. LW.Parent=ch.Torso
  1094.  
  1095. function part(formfactor,parent,reflectance,transparency,brickcolor,name,size)
  1096. local fp=it("Part")
  1097. fp.formFactor=formfactor
  1098. fp.Parent=parent
  1099. fp.Reflectance=reflectance
  1100. fp.Transparency=transparency
  1101. fp.CanCollide=false
  1102. fp.Locked=true
  1103. fp.BrickColor=brickcolor
  1104. fp.Name=name
  1105. fp.Size=size
  1106. fp.Position=Torso.Position
  1107. NoOutline(fp)
  1108. fp.Material="SmoothPlastic"
  1109. fp:BreakJoints()
  1110. return fp
  1111. end
  1112.  
  1113. function mesh(Mesh,part,meshtype,meshid,offset,scale)
  1114. local mesh=it(Mesh)
  1115. mesh.Parent=part
  1116. if Mesh=="SpecialMesh" then
  1117. mesh.MeshType=meshtype
  1118. if meshid~="nil" then
  1119. mesh.MeshId="http://www.roblox.com/asset/?id="..meshid
  1120. end
  1121. end
  1122. mesh.Offset=offset
  1123. mesh.Scale=scale
  1124. return mesh
  1125. end
  1126.  
  1127. function weld(parent,part0,part1,c0)
  1128. local weld=it("Weld")
  1129. weld.Parent=parent
  1130. weld.Part0=part0
  1131. weld.Part1=part1
  1132. weld.C0=c0
  1133. return weld
  1134. end
  1135.  
  1136. local Color1=Torso.BrickColor
  1137.  
  1138. local bodvel=Instance.new("BodyVelocity")
  1139. local bg=Instance.new("BodyGyro")
  1140.  
  1141. function swait(num)
  1142. if num==0 or num==nil then
  1143. game:service'RunService'.Stepped:wait(0)
  1144. else
  1145. for i=0,num do
  1146. game:service'RunService'.Stepped:wait(0)
  1147. end
  1148. end
  1149. end
  1150.  
  1151.  
  1152. so = function(id,par,vol,pit)
  1153. coroutine.resume(coroutine.create(function()
  1154. local sou = Instance.new("Sound",par or workspace)
  1155. sou.Volume=vol
  1156. sou.Pitch=pit or 1
  1157. sou.SoundId=id
  1158. swait()
  1159. sou:play()
  1160. game:GetService("Debris"):AddItem(sou,6)
  1161. end))
  1162. end
  1163.  
  1164. function clerp(a,b,t)
  1165. local qa = {QuaternionFromCFrame(a)}
  1166. local qb = {QuaternionFromCFrame(b)}
  1167. local ax, ay, az = a.x, a.y, a.z
  1168. local bx, by, bz = b.x, b.y, b.z
  1169. local _t = 1-t
  1170. return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t))
  1171. end
  1172.  
  1173. function QuaternionFromCFrame(cf)
  1174. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  1175. local trace = m00 + m11 + m22
  1176. if trace > 0 then
  1177. local s = math.sqrt(1 + trace)
  1178. local recip = 0.5/s
  1179. return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5
  1180. else
  1181. local i = 0
  1182. if m11 > m00 then
  1183. i = 1
  1184. end
  1185. if m22 > (i == 0 and m00 or m11) then
  1186. i = 2
  1187. end
  1188. if i == 0 then
  1189. local s = math.sqrt(m00-m11-m22+1)
  1190. local recip = 0.5/s
  1191. return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip
  1192. elseif i == 1 then
  1193. local s = math.sqrt(m11-m22-m00+1)
  1194. local recip = 0.5/s
  1195. return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip
  1196. elseif i == 2 then
  1197. local s = math.sqrt(m22-m00-m11+1)
  1198. local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip
  1199. end
  1200. end
  1201. end
  1202.  
  1203. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  1204. local xs, ys, zs = x + x, y + y, z + z
  1205. local wx, wy, wz = w*xs, w*ys, w*zs
  1206. local xx = x*xs
  1207. local xy = x*ys
  1208. local xz = x*zs
  1209. local yy = y*ys
  1210. local yz = y*zs
  1211. local zz = z*zs
  1212. return CFrame.new(px, py, pz,1-(yy+zz), xy - wz, xz + wy,xy + wz, 1-(xx+zz), yz - wx, xz - wy, yz + wx, 1-(xx+yy))
  1213. end
  1214.  
  1215. function QuaternionSlerp(a, b, t)
  1216. local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4]
  1217. local startInterp, finishInterp;
  1218. if cosTheta >= 0.0001 then
  1219. if (1 - cosTheta) > 0.0001 then
  1220. local theta = math.acos(cosTheta)
  1221. local invSinTheta = 1/math.sin(theta)
  1222. startInterp = math.sin((1-t)*theta)*invSinTheta
  1223. finishInterp = math.sin(t*theta)*invSinTheta
  1224. else
  1225. startInterp = 1-t
  1226. finishInterp = t
  1227. end
  1228. else
  1229. if (1+cosTheta) > 0.0001 then
  1230. local theta = math.acos(-cosTheta)
  1231. local invSinTheta = 1/math.sin(theta)
  1232. startInterp = math.sin((t-1)*theta)*invSinTheta
  1233. finishInterp = math.sin(t*theta)*invSinTheta
  1234. else
  1235. startInterp = t-1
  1236. finishInterp = t
  1237. end
  1238. end
  1239. return a[1]*startInterp + b[1]*finishInterp, a[2]*startInterp + b[2]*finishInterp, a[3]*startInterp + b[3]*finishInterp, a[4]*startInterp + b[4]*finishInterp
  1240. end
  1241.  
  1242. function rayCast(Pos, Dir, Max, Ignore) -- Origin Position , Direction, MaxDistance , IgnoreDescendants
  1243. return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  1244. end
  1245.  
  1246. function SkullEffect(brickcolor,cframe,x1,y1,z1,delay)
  1247. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1248. prt.Anchored=true
  1249. prt.CFrame=cframe
  1250. local msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=4770583",vt(0,0,0),vt(x1,y1,z1))
  1251. --http://www.roblox.com/asset/?id=4770560
  1252. game:GetService("Debris"):AddItem(prt,2)
  1253. CF=prt.CFrame
  1254. coroutine.resume(coroutine.create(function(Part,Mesh,TehCF)
  1255. for i=0,1,0.2 do
  1256. wait()
  1257. Part.CFrame=CF*cf(0,0,-0.4)
  1258. end
  1259. for i=0,1,delay do
  1260. wait()
  1261. --Part.CFrame=CF*cf((math.random(-1,0)+math.random())/5,(math.random(-1,0)+math.random())/5,(math.random(-1,0)+math.random())/5)
  1262. Mesh.Scale=Mesh.Scale
  1263. end
  1264. for i=0,1,0.1 do
  1265. wait()
  1266. Part.Transparency=i
  1267. end
  1268. Part.Parent=nil
  1269. end),prt,msh,CF)
  1270. end
  1271.  
  1272. function MagicBlock(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  1273. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1274. prt.Anchored=true
  1275. prt.CFrame=cframe
  1276. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  1277. game:GetService("Debris"):AddItem(prt,5)
  1278. coroutine.resume(coroutine.create(function(Part,Mesh)
  1279. for i=0,1,delay do
  1280. wait()
  1281. Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1282. Part.Transparency=i
  1283. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1284. end
  1285. Part.Parent=nil
  1286. end),prt,msh)
  1287. end
  1288.  
  1289. function MagicBlock2(brickcolor,cframe,Parent,x1,y1,z1,x3,y3,z3,delay)
  1290. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1291. prt.Anchored=false
  1292. prt.CFrame=cframe
  1293. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  1294. local wld=weld(prt,prt,Parent,cframe)
  1295. game:GetService("Debris"):AddItem(prt,5)
  1296. coroutine.resume(coroutine.create(function(Part,Mesh,Weld)
  1297. for i=0,1,delay do
  1298. wait()
  1299. Weld.C0=euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))*cframe
  1300. --Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1301. Part.Transparency=i
  1302. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1303. end
  1304. Part.Parent=nil
  1305. end),prt,msh,wld)
  1306. end
  1307.  
  1308. function MagicBlock3(brickcolor,cframe,Parent,x1,y1,z1,x3,y3,z3,delay)
  1309. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1310. prt.Anchored=false
  1311. prt.CFrame=cframe
  1312. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  1313. local wld=weld(prt,prt,Parent,euler(0,0,0)*cf(0,0,0))
  1314. game:GetService("Debris"):AddItem(prt,5)
  1315. coroutine.resume(coroutine.create(function(Part,Mesh,Weld)
  1316. for i=0,1,delay do
  1317. wait()
  1318. Weld.C0=euler(i*20,0,0)
  1319. --Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1320. Part.Transparency=i
  1321. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1322. end
  1323. Part.Parent=nil
  1324. end),prt,msh,wld)
  1325. end
  1326.  
  1327. function MagicCircle2(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  1328. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1329. prt.Anchored=true
  1330. prt.CFrame=cframe
  1331. local msh=mesh("CylinderMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  1332. game:GetService("Debris"):AddItem(prt,2)
  1333. coroutine.resume(coroutine.create(function(Part,Mesh)
  1334. for i=0,1,delay do
  1335. wait()
  1336. Part.CFrame=Part.CFrame
  1337. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1338. local prt2=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1339. prt2.Anchored=true
  1340. prt2.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1341. local msh2=mesh("SpecialMesh",prt2,"Sphere","",vt(0,0,0),vt(0.5,0.5,0.5))
  1342. game:GetService("Debris"):AddItem(prt2,2)
  1343. coroutine.resume(coroutine.create(function(Part,Mesh)
  1344. for i=0,1,0.1 do
  1345. wait()
  1346. Part.CFrame=Part.CFrame*cf(0,0.5,0)
  1347. end
  1348. Part.Parent=nil
  1349. end),prt2,msh2)
  1350. end
  1351. for i=0,1,delay*2 do
  1352. wait()
  1353. Part.CFrame=Part.CFrame
  1354. Mesh.Scale=vt((x1+x3)-(x1+x3)*i,(y1+y3)-(y1+y3)*i,(z1+z3)-(z1+z3)*i)
  1355. end
  1356. Part.Parent=nil
  1357. end),prt,msh)
  1358. end
  1359.  
  1360. function MagicCircle(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  1361. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1362. prt.Anchored=true
  1363. prt.CFrame=cframe
  1364. local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  1365. game:GetService("Debris"):AddItem(prt,2)
  1366. coroutine.resume(coroutine.create(function(Part,Mesh)
  1367. for i=0,1,delay do
  1368. wait()
  1369. Part.CFrame=Part.CFrame
  1370. Part.Transparency=i
  1371. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1372. end
  1373. Part.Parent=nil
  1374. end),prt,msh)
  1375. end
  1376.  
  1377. function MagicRing(brickcolor,cframe,x1,y1,z1,x2,y2,z2,x3,y3,z3)
  1378. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1379. prt.Anchored=true
  1380. prt.CFrame=cframe*euler(x2,y2,z2)
  1381. --"http://www.roblox.com/asset/?id=168892465"
  1382. local msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=3270017",vt(0,0,0),vt(x1,y1,z1))
  1383. game:GetService("Debris"):AddItem(prt,2)
  1384. coroutine.resume(coroutine.create(function(Part,Mesh)
  1385. for i=0,1,0.03 do
  1386. wait()
  1387. Part.CFrame=Part.CFrame
  1388. Part.Transparency=i
  1389. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1390. end
  1391. Part.Parent=nil
  1392. end),prt,msh)
  1393. end
  1394.  
  1395. function BreakEffect(brickcolor,cframe,x1,y1,z1)
  1396. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1397. prt.Anchored=true
  1398. prt.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1399. local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  1400. game:GetService("Debris"):AddItem(prt,2)
  1401. coroutine.resume(coroutine.create(function(Part,CF,Numbb,randnumb)
  1402. CF=Part.CFrame
  1403. Numbb=0
  1404. randnumb=math.random()/10
  1405. rand1=math.random()/10
  1406. for i=0,1,rand1 do
  1407. wait()
  1408. CF=CF*cf(0,math.random()/2,0)
  1409. --Part.CFrame=Part.CFrame*euler(0.5,0,0)*cf(0,1,0)
  1410. Part.CFrame=CF*euler(Numbb,0,0)
  1411. Part.Transparency=i
  1412. Numbb=Numbb+randnumb
  1413. end
  1414. Part.Parent=nil
  1415. end),prt,CF,Numbb,randnumb)
  1416. end
  1417.  
  1418. function MagicWaveThing(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  1419. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1420. prt.Anchored=true
  1421. prt.CFrame=cframe
  1422. msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=1051557",vt(0,0,0),vt(x1,y1,z1))
  1423. game:GetService("Debris"):AddItem(prt,5)
  1424. coroutine.resume(coroutine.create(function(Part,Mesh)
  1425. for i=0,1,delay do
  1426. wait()
  1427. Part.CFrame=Part.CFrame*euler(0,0.7,0)
  1428. Part.Transparency=i
  1429. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1430. end
  1431. Part.Parent=nil
  1432. end),prt,msh)
  1433. end
  1434.  
  1435. function WaveEffect(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  1436. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1437. prt.Anchored=true
  1438. prt.CFrame=cframe
  1439. msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=20329976",vt(0,0,0),vt(x1,y1,z1))
  1440. game:GetService("Debris"):AddItem(prt,2)
  1441. coroutine.resume(coroutine.create(function(Part,Mesh)
  1442. for i=0,1,delay do
  1443. wait()
  1444. Part.CFrame=Part.CFrame*cf(0,y3/2,0)
  1445. Part.Transparency=i
  1446. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1447. end
  1448. Part.Parent=nil
  1449. end),prt,msh)
  1450. end
  1451.  
  1452. function StravEffect(brickcolor,cframe,x,y,z,x1,y1,z1,delay)
  1453. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1454. prt.Anchored=true
  1455. prt.CFrame=cframe*cf(x,y,z)
  1456. msh=mesh("SpecialMesh",prt,"FileMesh","rbxassetid://168892363",vt(0,0,0),vt(x1,y1,z1))
  1457. game:GetService("Debris"):AddItem(prt,5)
  1458. coroutine.resume(coroutine.create(function(Part,Mesh,ex,why,zee)
  1459. local num=math.random()
  1460. local num2=math.random(-3,2)+math.random()
  1461. local numm=0
  1462. for i=0,1,delay*2 do
  1463. swait()
  1464. Part.CFrame=cframe*euler(0,numm*num*10,0)*cf(ex,why,zee)*cf(-i*10,num2,0)
  1465. Part.Transparency=i
  1466. numm=numm+0.01
  1467. end
  1468. Part.Parent=nil
  1469. Mesh.Parent=nil
  1470. end),prt,msh,x,y,z)
  1471. end
  1472.  
  1473. Damagefunc=function(hit,minim,maxim,knockback,Type,Property,Delay,KnockbackType,decreaseblock)
  1474. if hit.Parent==nil then
  1475. return
  1476. end
  1477. h=hit.Parent:FindFirstChild("Humanoid")
  1478. for _,v in pairs(hit.Parent:children()) do
  1479. if v:IsA("Humanoid") then
  1480. h=v
  1481. end
  1482. end
  1483. if hit.Parent.Parent:FindFirstChild("Torso")~=nil then
  1484. h=hit.Parent.Parent:FindFirstChild("Humanoid")
  1485. end
  1486. if hit.Parent.className=="Hat" then
  1487. hit=hit.Parent.Parent:findFirstChild("Head")
  1488. end
  1489. if h~=nil and hit.Parent.Name~=Character.Name and hit.Parent:FindFirstChild("Torso")~=nil then
  1490. if hit.Parent:findFirstChild("DebounceHit")~=nil then if hit.Parent.DebounceHit.Value==true then return end end
  1491. --[[ if game.Players:GetPlayerFromCharacter(hit.Parent)~=nil then
  1492. return
  1493. end]]
  1494. -- hs(hit,1.2)
  1495. c=Instance.new("ObjectValue")
  1496. c.Name="creator"
  1497. c.Value=game:service("Players").LocalPlayer
  1498. c.Parent=h
  1499. game:GetService("Debris"):AddItem(c,.5)
  1500. Damage=math.random(minim,maxim)
  1501. -- h:TakeDamage(Damage)
  1502. blocked=false
  1503. block=hit.Parent:findFirstChild("Block")
  1504. if block~=nil then
  1505. print(block.className)
  1506. if block.className=="NumberValue" then
  1507. if block.Value>0 then
  1508. blocked=true
  1509. if decreaseblock==nil then
  1510. block.Value=block.Value-1
  1511. end
  1512. end
  1513. end
  1514. if block.className=="IntValue" then
  1515. if block.Value>0 then
  1516. blocked=true
  1517. if decreaseblock~=nil then
  1518. block.Value=block.Value-1
  1519. end
  1520. end
  1521. end
  1522. end
  1523. if blocked==false then
  1524. -- h:TakeDamage(Damage)
  1525. h.Health=h.Health-Damage
  1526. showDamage(hit.Parent,Damage,.5,BrickColor.new("Navy blue"))
  1527. else
  1528. h.Health=h.Health-(Damage/2)
  1529. showDamage(hit.Parent,Damage/2,.5,BrickColor.new("Bright blue"))
  1530. end
  1531. if Type=="Knockdown" then
  1532. hum=hit.Parent.Humanoid
  1533. hum.PlatformStand=true
  1534. coroutine.resume(coroutine.create(function(HHumanoid)
  1535. swait(1)
  1536. HHumanoid.PlatformStand=false
  1537. end),hum)
  1538. local angle=(hit.Position-(Property.Position+Vector3.new(0,0,0))).unit
  1539. --hit.CFrame=CFrame.new(hit.Position,Vector3.new(angle.x,hit.Position.y,angle.z))*CFrame.fromEulerAnglesXYZ(math.pi/4,0,0)
  1540. local bodvol=Instance.new("BodyVelocity")
  1541. bodvol.velocity=angle*knockback
  1542. bodvol.P=5000
  1543. bodvol.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
  1544. bodvol.Parent=hit
  1545. rl=Instance.new("BodyAngularVelocity")
  1546. rl.P=3000
  1547. rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000
  1548. rl.angularvelocity=Vector3.new(math.random(-10,10),math.random(-10,10),math.random(-10,10))
  1549. rl.Parent=hit
  1550. game:GetService("Debris"):AddItem(bodvol,.5)
  1551. game:GetService("Debris"):AddItem(rl,.5)
  1552. elseif Type=="Normal" then
  1553. vp=Instance.new("BodyVelocity")
  1554. vp.P=500
  1555. vp.maxForce=Vector3.new(math.huge,0,math.huge)
  1556. -- vp.velocity=Character.Torso.CFrame.lookVector*Knockback
  1557. if KnockbackType==1 then
  1558. vp.velocity=Property.CFrame.lookVector*knockback+Property.Velocity/1.05
  1559. elseif KnockbackType==2 then
  1560. vp.velocity=Property.CFrame.lookVector*knockback
  1561. end
  1562. if knockback>0 then
  1563. vp.Parent=hit.Parent.Torso
  1564. end
  1565. game:GetService("Debris"):AddItem(vp,.5)
  1566. elseif Type=="Up" then
  1567. local bodyVelocity=Instance.new("BodyVelocity")
  1568. bodyVelocity.velocity=vt(0,60,0)
  1569. bodyVelocity.P=5000
  1570. bodyVelocity.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
  1571. bodyVelocity.Parent=hit
  1572. game:GetService("Debris"):AddItem(bodyVelocity,1)
  1573. rl=Instance.new("BodyAngularVelocity")
  1574. rl.P=3000
  1575. rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000
  1576. rl.angularvelocity=Vector3.new(math.random(-30,30),math.random(-30,30),math.random(-30,30))
  1577. rl.Parent=hit
  1578. game:GetService("Debris"):AddItem(rl,.5)
  1579. elseif Type=="Snare" then
  1580. bp=Instance.new("BodyPosition")
  1581. bp.P=2000
  1582. bp.D=100
  1583. bp.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  1584. bp.position=hit.Parent.Torso.Position
  1585. bp.Parent=hit.Parent.Torso
  1586. game:GetService("Debris"):AddItem(bp,1)
  1587. elseif Type=="Target" then
  1588. if Targetting==false then
  1589. ZTarget=hit.Parent.Torso
  1590. coroutine.resume(coroutine.create(function(Part)
  1591. so("http://www.roblox.com/asset/?id=15666462",Part,1,1.5)
  1592. swait(5)
  1593. so("http://www.roblox.com/asset/?id=15666462",Part,1,1.5)
  1594. end),ZTarget)
  1595. TargHum=ZTarget.Parent:findFirstChild("Humanoid")
  1596. targetgui=Instance.new("BillboardGui")
  1597. targetgui.Parent=ZTarget
  1598. targetgui.Size=UDim2.new(10,100,10,100)
  1599. targ=Instance.new("ImageLabel")
  1600. targ.Parent=targetgui
  1601. targ.BackgroundTransparency=1
  1602. targ.Image="rbxassetid://4834067"
  1603. targ.Size=UDim2.new(1,0,1,0)
  1604. cam.CameraType="Scriptable"
  1605. cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
  1606. dir=Vector3.new(cam.CoordinateFrame.lookVector.x,0,cam.CoordinateFrame.lookVector.z)
  1607. workspace.CurrentCamera.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
  1608. Targetting=true
  1609. RocketTarget=ZTarget
  1610. for i=1,Property do
  1611. --while Targetting==true and Humanoid.Health>0 and Character.Parent~=nil do
  1612. if Humanoid.Health>0 and Character.Parent~=nil and TargHum.Health>0 and TargHum.Parent~=nil and Targetting==true then
  1613. swait()
  1614. end
  1615. --workspace.CurrentCamera.CoordinateFrame=CFrame.new(Head.CFrame.p,Head.CFrame.p+rmdir*100)
  1616. cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
  1617. dir=Vector3.new(cam.CoordinateFrame.lookVector.x,0,cam.CoordinateFrame.lookVector.z)
  1618. cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)*cf(0,5,10)*euler(-0.3,0,0)
  1619. end
  1620. Targetting=false
  1621. RocketTarget=nil
  1622. targetgui.Parent=nil
  1623. cam.CameraType="Custom"
  1624. end
  1625. end
  1626. debounce=Instance.new("BoolValue")
  1627. debounce.Name="DebounceHit"
  1628. debounce.Parent=hit.Parent
  1629. debounce.Value=true
  1630. game:GetService("Debris"):AddItem(debounce,Delay)
  1631. c=Instance.new("ObjectValue")
  1632. c.Name="creator"
  1633. c.Value=Player
  1634. c.Parent=h
  1635. game:GetService("Debris"):AddItem(c,.5)
  1636. CRIT=false
  1637. hitDeb=true
  1638. AttackPos=6
  1639. end
  1640. end
  1641.  
  1642. showDamage=function(Char,Dealt,du,Color)
  1643. m=Instance.new("Model")
  1644. m.Name=tostring(Dealt)
  1645. h=Instance.new("Humanoid")
  1646. h.Health=0
  1647. h.MaxHealth=0
  1648. h.Parent=m
  1649. c=Instance.new("Part")
  1650. c.Transparency=0
  1651. c.BrickColor=Color
  1652. c.Name="Head"
  1653. c.TopSurface=0
  1654. c.BottomSurface=0
  1655. c.formFactor="Plate"
  1656. c.Size=Vector3.new(1,.4,1)
  1657. ms=Instance.new("CylinderMesh")
  1658. ms.Scale=Vector3.new(.8,.8,.8)
  1659. if CRIT==true then
  1660. ms.Scale=Vector3.new(1,1.25,1)
  1661. end
  1662. ms.Parent=c
  1663. c.Reflectance=0
  1664. Instance.new("BodyGyro").Parent=c
  1665. c.Parent=m
  1666. if Char:findFirstChild("Head")~=nil then
  1667. c.CFrame=CFrame.new(Char["Head"].CFrame.p+Vector3.new(0,1.5,0))
  1668. elseif Char.Parent:findFirstChild("Head")~=nil then
  1669. c.CFrame=CFrame.new(Char.Parent["Head"].CFrame.p+Vector3.new(0,1.5,0))
  1670. end
  1671. f=Instance.new("BodyPosition")
  1672. f.P=2000
  1673. f.D=100
  1674. f.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  1675. f.position=c.Position+Vector3.new(0,3,0)
  1676. f.Parent=c
  1677. game:GetService("Debris"):AddItem(m,.5+du)
  1678. c.CanCollide=false
  1679. m.Parent=workspace
  1680. c.CanCollide=false
  1681. end
  1682.  
  1683. Player=game:GetService('Players').LocalPlayer
  1684. Character=Player.Character
  1685. Mouse=Player:GetMouse()
  1686. m=Instance.new('Model',Character)
  1687.  
  1688.  
  1689. local function weldBetween(a, b)
  1690. local weldd = Instance.new("ManualWeld")
  1691. weldd.Part0 = a
  1692. weldd.Part1 = b
  1693. weldd.C0 = CFrame.new()
  1694. weldd.C1 = b.CFrame:inverse() * a.CFrame
  1695. weldd.Parent = a
  1696. return weldd
  1697. end
  1698.  
  1699. it=Instance.new
  1700.  
  1701. function nooutline(part)
  1702. part.TopSurface,part.BottomSurface,part.LeftSurface,part.RightSurface,part.FrontSurface,part.BackSurface = 10,10,10,10,10,10
  1703. end
  1704.  
  1705. function part(formfactor,parent,material,reflectance,transparency,brickcolor,name,size)
  1706. local fp=it("Part")
  1707. fp.formFactor=formfactor
  1708. fp.Parent=parent
  1709. fp.Reflectance=reflectance
  1710. fp.Transparency=transparency
  1711. fp.CanCollide=false
  1712. fp.Locked=true
  1713. fp.BrickColor=BrickColor.new(tostring(brickcolor))
  1714. fp.Name=name
  1715. fp.Size=size
  1716. fp.Position=Character.Torso.Position
  1717. nooutline(fp)
  1718. fp.Material=material
  1719. fp:BreakJoints()
  1720. return fp
  1721. end
  1722.  
  1723. function mesh(Mesh,part,meshtype,meshid,offset,scale)
  1724. local mesh=it(Mesh)
  1725. mesh.Parent=part
  1726. if Mesh=="SpecialMesh" then
  1727. mesh.MeshType=meshtype
  1728. mesh.MeshId=meshid
  1729. end
  1730. mesh.Offset=offset
  1731. mesh.Scale=scale
  1732. return mesh
  1733. end
  1734.  
  1735. function weld(parent,part0,part1,c0,c1)
  1736. local weld=it("Weld")
  1737. weld.Parent=parent
  1738. weld.Part0=part0
  1739. weld.Part1=part1
  1740. weld.C0=c0
  1741. weld.C1=c1
  1742. return weld
  1743. end
  1744.  
  1745. Handle=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Navy blue","Handle",Vector3.new(1.20000005, 1.20000005, 1))
  1746. Handleweld=weld(m,Character["Torso"],Handle,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-6.74455023, 0.843135834, 3.31332064, 0.866820872, 0.000393055088, -0.498619556, 0.129048944, -0.966104209, 0.223582461, -0.481630623, -0.258152217, -0.837489963))
  1747. mesh("SpecialMesh",Handle,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  1748. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(2.20000005, 1, 1))
  1749. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(3.89693689, 0.0205960274, 1.83752108, 0.00084605813, 0.865680099, -0.500597, -0.999998748, 2.925843e-005, -0.00163948536, -0.00140464306, 0.500597715, 0.865678906))
  1750. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Navy blue","Part",Vector3.new(1, 0.400000006, 1))
  1751. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.0205993652, 3.97038841, -4.62090921, -0.999998689, 2.810359e-005, -0.00163501501, 0.00158691406, 0.25815019, -0.966103554, 0.0003949448, -0.966104805, -0.258149862))
  1752. mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/Asset/?id=9756362",Vector3.new(0, 0, 0),Vector3.new(1, 2.92400002, 1.18400002))
  1753. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(2.20000005, 1, 1))
  1754. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(3.18639517, -0.292996764, 3.91572571, -0.407002717, 0.123095758, -0.905094743, -0.483149111, -0.869928718, 0.098949343, -0.775187671, 0.477568328, 0.413536996))
  1755. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(2.20000005, 1, 1))
  1756. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(3.62196398, -0.29297936, 1.11572647, -0.835932732, 0.424737811, -0.347583354, -0.483153641, -0.869926155, 0.0989501327, -0.260344028, 0.250651836, 0.932413459))
  1757. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(2.20000005, 1, 1))
  1758. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(3.55920649, -0.210347176, 1.642519, -0.865201712, -0.000320911407, -0.501423895, -2.98991799e-005, -0.999999881, 0.000691637397, -0.501424074, 0.000613339245, 0.865201592))
  1759. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(2.20000005, 1, 1))
  1760. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(2.931638, -0.0751047134, 4.50077248, -0.352038473, 0.176153034, -0.919260144, -0.86644727, -0.432817101, 0.248874903, -0.354031444, 0.884103954, 0.304995537))
  1761. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(2.20000005, 1, 1))
  1762. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(3.34771347, -0.763819337, 1.31078529, 0.484322906, -0.259408951, -0.835546851, 0.129806682, 0.965767562, -0.224595979, 0.865206063, 0.000317394733, 0.501416266))
  1763. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(2.20000005, 1, 1))
  1764. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(3.85524988, -0.0749192238, 1.7092638, -0.499263257, 0.749717236, -0.434350491, -0.866449237, -0.432811975, 0.248876765, -0.00140497088, 0.500597596, 0.865678906))
  1765. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(2.20000005, 1, 1))
  1766. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(2.76954031, -0.210381031, 4.2438035, -0.257231236, -0.00066010654, -0.966349661, -3.04505229e-005, -0.999999762, 0.000691249967, -0.966350019, 0.000207226723, 0.257231265))
  1767. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(2.20000005, 1, 1))
  1768. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(2.87043977, 0.020611763, 4.62094831, 0.00159165263, 0.258152187, -0.966103137, -0.999998748, 2.89455056e-005, -0.00163969398, -0.000395349402, 0.966104329, 0.258151829))
  1769. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Navy blue","Part",Vector3.new(1, 0.400000006, 1))
  1770. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.292981744, 4.28636312, -3.9157095, -0.48314926, -0.869928479, 0.0989517197, -0.407004297, 0.123094313, -0.905094087, 0.775186777, -0.477569282, -0.413537562))
  1771. mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/Asset/?id=9756362",Vector3.new(0, 0, 0),Vector3.new(1, 2.92400002, 1.18400002))
  1772. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(2.20000005, 1, 1))
  1773. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(2.85442352, -0.763632059, 3.85966015, -0.269319534, -0.183654502, -0.945377231, 0.129806384, 0.96576786, -0.22459501, 0.954262853, -0.183203816, -0.236260682))
  1774. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Navy blue","Part",Vector3.new(1, 0.400000006, 1))
  1775. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.0751276016, 4.03159618, -4.50067854, -0.866445661, -0.432817698, 0.248879611, -0.352042913, 0.176151246, -0.919258773, 0.354030937, -0.884103894, -0.304995805))
  1776. mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/Asset/?id=9756362",Vector3.new(0, 0, 0),Vector3.new(1, 2.92400002, 1.18400002))
  1777. Gear=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(4.29999971, 4.30000019, 1))
  1778. Gearweld=weld(m,Handle,Gear,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.0552597046, -0.0398271084, -0.0363032818, 0.999988854, -3.23429704e-005, 0.00164097548, 3.37436795e-005, 0.999994695, -0.000689953566, -0.00164103508, 0.000689953566, 0.999993086))
  1779. mesh("SpecialMesh",Gear,Enum.MeshType.FileMesh,"http://www.roblox.com/asset?id=156292343",Vector3.new(0, 0, 0),Vector3.new(5, 5, 15))
  1780. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Navy blue","Part",Vector3.new(1, 0.400000006, 1))
  1781. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.210398674, 3.86948943, -4.24380398, -3.15159559e-005, -0.999999881, 0.00069090724, -0.257231474, -0.000659480691, -0.966349721, 0.966349959, -0.000208158046, -0.257231474))
  1782. mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/Asset/?id=9756362",Vector3.new(0, 0, 0),Vector3.new(1, 2.92400002, 1.18400002))
  1783. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Navy blue","Part",Vector3.new(1, 0.400000006, 1))
  1784. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.763661504, 3.95439076, 3.85964441, -0.129806131, -0.965767682, 0.224596098, -0.269319892, -0.1836555, -0.945376873, 0.954262733, -0.183203891, -0.236260891))
  1785. mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/Asset/?id=9756362",Vector3.new(0, 0, 0),Vector3.new(1, 2.92400002, 1.18400002))
  1786.  
  1787. Handle2=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Navy blue","Handle",Vector3.new(1.20000005, 1.20000005, 1))
  1788. Handle2weld=weld(m,Character["Torso"],Handle2,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(6.65693045, 1.66835713, 2.9684639, 0.866025746, 0.129405379, 0.482963592, -3.67555799e-006, -0.965926409, 0.258817136, 0.499999553, -0.224144042, -0.836516559))
  1789. mesh("SpecialMesh",Handle2,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  1790. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(2.20000005, 1, 1))
  1791. Partweld=weld(m,Handle2,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(3.66774845, 0.445008755, 1.50737095, 0.749997497, 0.500002265, -0.433014721, -0.433012635, 0.866024196, 0.250004709, 0.500004232, -2.02655792e-006, 0.866023183))
  1792. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(2.20000005, 1, 1))
  1793. Partweld=weld(m,Handle2,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(3.70916891, 0.288796425, 1.12511444, 0.424947768, 0.836517453, -0.34591651, -0.870010257, 0.482961774, 0.0991482884, 0.250003695, 0.25881803, 0.933012009))
  1794. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(2.20000005, 1, 1))
  1795. Partweld=weld(m,Handle2,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(3.24143982, 0.288818121, 3.98402214, 0.123706907, 0.408494055, -0.904339194, -0.870007515, 0.482966691, 0.0991476029, 0.477266878, 0.774516642, 0.415139139))
  1796. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Navy blue","Part",Vector3.new(1, 0.400000006, 1))
  1797. Partweld=weld(m,Handle2,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.288883209, 4.34139919, -3.98407936, -0.870006502, 0.482969046, 0.099145025, 0.123710275, 0.408492953, -0.904339135, -0.477267861, -0.774515808, -0.415139765))
  1798. mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/Asset/?id=9756362",Vector3.new(0, 0, 0),Vector3.new(1, 2.92400002, 1.18400002))
  1799. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Navy blue","Part",Vector3.new(1, 0.400000006, 1))
  1800. Partweld=weld(m,Handle2,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.377311707, 3.81443644, -4.17874861, 1.43051147e-006, 1.00000012, 5.58793545e-006, 0.258813858, 5.02169132e-006, -0.965927303, -0.965927362, 2.82377005e-006, -0.258813858))
  1801. mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/Asset/?id=9756362",Vector3.new(0, 0, 0),Vector3.new(1, 2.92400002, 1.18400002))
  1802. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(2.20000005, 1, 1))
  1803. Partweld=weld(m,Handle2,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(3.11095357, 0.452475548, 3.33581829, 0.214266971, -0.258726388, -0.941886604, 0.124996454, -0.949091196, 0.289140463, -0.968744338, -0.179685742, -0.171018958))
  1804. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Navy blue","Part",Vector3.new(1, 0.400000006, 1))
  1805. Partweld=weld(m,Handle2,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.445028067, 4.04179811, -4.22505188, -0.433007121, 0.86602807, 0.250001073, 0.176776409, 0.353552371, -0.918559194, -0.883886516, -0.353548348, -0.306183964))
  1806. mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/Asset/?id=9756362",Vector3.new(0, 0, 0),Vector3.new(1, 2.92400002, 1.18400002))
  1807. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(2.20000005, 1, 1))
  1808. Partweld=weld(m,Handle2,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(2.71447492, 0.377288342, 4.1787672, 0.258815825, 7.89761543e-007, -0.965926647, 2.11596489e-006, 1.00000012, 1.35600567e-006, 0.965926886, -2.41398811e-006, 0.258815885))
  1809. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Navy blue","Part",Vector3.new(1, 0.400000006, 1))
  1810. Partweld=weld(m,Handle2,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.452456236, 4.21090841, 3.33576679, -0.124996543, 0.949091196, -0.289140046, 0.214267105, -0.25872606, -0.941886783, -0.968744338, -0.179685771, -0.171019137))
  1811. mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/Asset/?id=9756362",Vector3.new(0, 0, 0),Vector3.new(1, 2.92400002, 1.18400002))
  1812. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(2.20000005, 1, 1))
  1813. Partweld=weld(m,Handle2,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(2.94182658, 0.445016861, 4.22507095, 0.176774979, 0.353554398, -0.918558657, -0.433007926, 0.866026998, 0.250003278, 0.883886337, 0.353548825, 0.306183696))
  1814. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Navy blue","Part",Vector3.new(1, 0.400000006, 1))
  1815. Partweld=weld(m,Handle2,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.256506443, 3.92671657, -4.59811449, -1.00000024, 2.62260437e-006, 1.4603138e-006, -7.4505806e-007, 0.258819073, -0.965925872, -2.89268792e-006, -0.965925932, -0.258819073))
  1816. mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/Asset/?id=9756362",Vector3.new(0, 0, 0),Vector3.new(1, 2.92400002, 1.18400002))
  1817. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(2.20000005, 1, 1))
  1818. Partweld=weld(m,Handle2,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(3.4743073, 0.377253056, 1.63544273, 0.866023183, -4.61935997e-007, -0.500004172, 1.52736902e-006, 1.00000012, 1.65402889e-006, 0.500004232, -2.21282244e-006, 0.866023183))
  1819. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(2.20000005, 1, 1))
  1820. Partweld=weld(m,Handle2,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(3.15870619, 0.452619314, 0.758959055, -0.533491194, -0.310006529, -0.786945462, 0.124997422, -0.949090362, 0.289142251, -0.836518347, 0.0558886975, 0.545081377))
  1821. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(2.20000005, 1, 1))
  1822. Partweld=weld(m,Handle2,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(3.84976673, 0.256440639, 1.85214663, 6.2584877e-007, 0.866025329, -0.500000298, -1.00000024, 1.72108412e-006, 1.7285347e-006, 2.38418579e-006, 0.500000298, 0.866025329))
  1823. Gear2=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(4.29999971, 4.30000019, 1))
  1824. Gear2weld=weld(m,Handle2,Gear2,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.049841404, 0.049908638, 2.78949738e-005, 0.999990344, -5.01424074e-006, -1.49011612e-007, 5.28991222e-006, 0.999994934, 2.98023224e-008, 2.38418579e-007, -1.63912773e-007, 0.999994636))
  1825. mesh("SpecialMesh",Gear2,Enum.MeshType.FileMesh,"http://www.roblox.com/asset?id=156292343",Vector3.new(0, 0, 0),Vector3.new(5, 5, 15))
  1826. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(2.20000005, 1, 1))
  1827. Partweld=weld(m,Handle2,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(2.82676554, 0.256523609, 4.598104, -1.1920929e-006, 0.258818835, -0.965925872, -1.00000012, 1.46776438e-006, 1.63912773e-006, 1.83098018e-006, 0.965925872, 0.258818835))
  1828.  
  1829. handle=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Navy blue","Handle",Vector3.new(1.20000005, 1.20000005, 1.20000005))
  1830. handleweld=weld(m,Character["Torso"],handle,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-2.22326851, -3.5562191, -0.038143158, 0, 0, 1, 0, 1, 0, -1, 0, 0))
  1831. mesh("SpecialMesh",handle,Enum.MeshType.FileMesh,"http://www.roblox.com/Asset/?id=9756362",Vector3.new(0, 0, 0),Vector3.new(1, 3, 1))
  1832. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(1.20000005, 1.20000005, 1.20000005))
  1833. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0, 1.09672546e-005, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1))
  1834. mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/Asset/?id=9756362",Vector3.new(0, 0, 0),Vector3.new(1.102, 0.950000048, 1.16999996))
  1835. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(1.20000005, 1.20000005, 1.20000005))
  1836. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0, 1.09672546e-005, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1))
  1837. mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/Asset/?id=9756362",Vector3.new(0, 0, 0),Vector3.new(1.102, 3, 0.863999963))
  1838. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(3.79999995, 4, 1.39999998))
  1839. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.0999984741, 0, -0.100000381, 0, -1, 0, 0, 0, 1, -1, -0, 0))
  1840. mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=3270017",Vector3.new(0, 0, 0),Vector3.new(4.77400017, 4.96199989, 4.73800039))
  1841. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Navy blue","Part",Vector3.new(3.79999995, 4, 1.39999998))
  1842. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.0999984741, 0, -0.100000381, 0, -1, 0, 0, 0, 1, -1, -0, 0))
  1843. mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=3270017",Vector3.new(0, 0, 0),Vector3.new(4.4920001, 4.70400047, 4.73800039))
  1844. Wedge=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Wedge",Vector3.new(0.600000024, 2.5999999, 0.599999964))
  1845. Wedgeweld=weld(m,handle,Wedge,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.100013733, -3.48671532, -1.09328079, 1, -2.52891718e-012, -6.81310423e-013, 2.53075664e-012, 0.866021812, 0.500005603, -6.74442273e-013, -0.500005603, 0.866021752))
  1846. Wedge=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Wedge",Vector3.new(0.600000024, 2.5999999, 0.599999964))
  1847. Wedgeweld=weld(m,handle,Wedge,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.100009918, -3.09970522, 1.40989685, 1, 0, 0, 0, 1, 0, 0, 0, 1))
  1848. Wedge=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Wedge",Vector3.new(0.600000024, 2.5999999, 0.599999964))
  1849. Wedgeweld=weld(m,handle,Wedge,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.100009918, -3.09970522, 1.39007568, -0.999999702, 0, 5.96046448e-008, 0, 1, 0, -5.96046448e-008, 0, -0.999999702))
  1850. Wedge=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Wedge",Vector3.new(0.600000024, 2.5999999, 0.599999964))
  1851. Wedgeweld=weld(m,handle,Wedge,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.100013733, -3.61302567, 0.360752106, 1, -3.69486299e-012, 1.70532143e-012, 3.81851625e-012, 0.707111537, -0.707102001, 1.40679254e-012, 0.70710206, 0.707111537))
  1852.  
  1853. mouse.Button1Down:connect(function()
  1854. if attack==false and attacktype==1 then
  1855. attacktype=2
  1856. attackone()
  1857. elseif attack==false and attacktype==2 then
  1858. attacktype=1
  1859. attacktwo()
  1860. end
  1861. end)
  1862.  
  1863. function attackone()
  1864. attack=true
  1865. con1=Gear.Touched:connect(function(hit) Damagefunc(hit,30,50,math.random(20,40),"Normal",RootPart,.2,1) end)
  1866. for i=0,1,0.1 do
  1867. swait()
  1868. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,0),.2)
  1869. Handleweld.C0=clerp(Handleweld.C0,cf(-5,1,-5)*angles(math.rad(100),math.rad(0),math.rad(0)),.2)
  1870. Handle2weld.C0=clerp(Handle2weld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  1871. RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*euler(.5,1.8,1.5),.3)
  1872. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(2),math.rad(25),math.rad(-15)),.3)
  1873. end
  1874. so("http://www.roblox.com/asset/?id=231917758",Handle,1,.9)
  1875. for i=0,1,0.1 do
  1876. swait()
  1877. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,0),.2)
  1878. Handleweld.C0=clerp(Handleweld.C0,cf(-5,1,-5)*angles(math.rad(-85),math.rad(0),math.rad(0)),.2)
  1879. Handle2weld.C0=clerp(Handle2weld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  1880. RW.C0=clerp(RW.C0,cf(1.5,0.5,-0.5)*euler(80,1.8,1.5),.3)
  1881. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(2),math.rad(25),math.rad(-15)),.3)
  1882. end
  1883. --dmgstop()
  1884. attack=false
  1885. con1:disconnect()
  1886. end
  1887.  
  1888. function attacktwo()
  1889. attack=true
  1890. con1=Gear2.Touched:connect(function(hit) Damagefunc(hit,30,50,math.random(20,40),"Normal",RootPart,.2,1) end)
  1891. for i=0,1,0.1 do
  1892. swait()
  1893. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,0),.2)
  1894. Handle2weld.C0=clerp(Handle2weld.C0,cf(-5,1,-5)*angles(math.rad(0),math.rad(0),math.rad(20)),.2)
  1895. Handleweld.C0=clerp(Handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  1896. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-30,0,-20),.3)
  1897. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-2),math.rad(-25),math.rad(15)),.3)
  1898. end
  1899. so("http://www.roblox.com/asset/?id=231917758",Handle2,1,.8)
  1900. for i=0,1,0.1 do
  1901. swait()
  1902. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,0),.2)
  1903. Handle2weld.C0=clerp(Handle2weld.C0,cf(10,1,-5)*angles(math.rad(0),math.rad(-80),math.rad(20)),.2)
  1904. Handleweld.C0=clerp(Handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  1905. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-30,0,20),.3)
  1906. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-2),math.rad(-25),math.rad(15)),.3)
  1907. end
  1908. --dmgstop()
  1909. attack=false
  1910. con1:disconnect()
  1911. end
  1912.  
  1913. local sine = 0
  1914. local change = 1
  1915. local val = 0
  1916.  
  1917. while true do
  1918. swait()
  1919. sine = sine + change
  1920. local torvel=(RootPart.Velocity*Vector3.new(1,0,1)).magnitude
  1921. local velderp=RootPart.Velocity.y
  1922. hitfloor,posfloor=rayCast(RootPart.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,4,Character)
  1923. if equipped==true or equipped==false then
  1924. if attack==false then
  1925. idle=idle+1
  1926. else
  1927. idle=0
  1928. end
  1929. if idle>=500 then
  1930. if attack==false then
  1931. --Sheath()
  1932. end
  1933. end
  1934. if RootPart.Velocity.y > 1 and hitfloor==nil then
  1935. Anim="Jump"
  1936. if attack==false then
  1937. Neck.C0=clerp(Neck.C0,necko*euler(-0.2,0,0),.3)
  1938. Neck.C1=clerp(Neck.C1,necko2*euler(0,0,0),.3)
  1939. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,0),.3)
  1940. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-.5,0,0.5),.3)
  1941. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1942. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-.5,0,-0.5),.3)
  1943. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1944. RH.C0=clerp(RH.C0,cf(1,-1,-.3)*euler(-0.5,1.57,0)*euler(-.2,0,0),.2)
  1945. LH.C0=clerp(LH.C0,cf(-1,-1,-.3)*euler(-0.5,-1.57,0)*euler(-.2,0,0),.2)
  1946. Handleweld.C0=clerp(Handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  1947. Handle2weld.C0=clerp(Handle2weld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  1948. end
  1949. elseif RootPart.Velocity.y < -1 and hitfloor==nil then
  1950. Anim="Fall"
  1951. if attack==false then
  1952. Neck.C0=clerp(Neck.C0,necko*euler(0.4,0,0),.3)
  1953. Neck.C1=clerp(Neck.C1,necko2*euler(0,0,0),.3)
  1954. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,0),.3)
  1955. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(0.3,0,0.2),.3)
  1956. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1957. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(0.3,0,-0.2),.3)
  1958. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1959. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0.4,1.57,0),.2)
  1960. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(-0.2,-1.57,0),.2)
  1961. Handleweld.C0=clerp(Handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  1962. Handle2weld.C0=clerp(Handle2weld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  1963. end
  1964. elseif torvel<1 and hitfloor~=nil then
  1965. Anim="Idle"
  1966. if attack==false then
  1967. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  1968. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,0),.2)
  1969. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-2),math.rad(-25),math.rad(15)),.3)
  1970. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(2),math.rad(25),math.rad(-15)),.3)
  1971. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  1972. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  1973. Handleweld.C0=clerp(Handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  1974. Handle2weld.C0=clerp(Handle2weld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  1975. end
  1976. elseif torvel>2 and torvel<22 and hitfloor~=nil then
  1977. local idleanim=0
  1978. Anim="Walk"
  1979. if attack==false then
  1980. change=3
  1981. --[[RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(35),math.rad(0),math.rad(15*math.cos(sine/10))),.3)
  1982. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-30),math.rad(0),math.rad(0)),.3)
  1983. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-135*math.cos(sine/9)),math.rad(0),math.rad(0)),.3)
  1984. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(135*math.cos(sine/9)),math.rad(0),math.rad(0)),.3)
  1985. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0)),.3)
  1986. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0)),.3)
  1987. --Handleweld.C0=clerp(--Handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)]]--
  1988. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,0),.2)
  1989. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0.1,0,0),.2)
  1990. --RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-0.1,0,0.2),.2)
  1991. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-5),math.rad(-25),math.rad(20)),.3)
  1992. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(5),math.rad(25),math.rad(-20)),.3)
  1993. RH.C0=clerp(RH.C0,RHC0,.3)
  1994. LH.C0=clerp(LH.C0,LHC0,.3)
  1995. Handleweld.C0=clerp(Handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  1996. Handle2weld.C0=clerp(Handle2weld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  1997. end
  1998. elseif torvel>=22 and hitfloor~=nil then
  1999. Anim="Run"
  2000. if attack==false then
  2001. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(45),math.rad(0),math.rad(0)),.3)
  2002. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-40),math.rad(0),math.rad(0)),.3)
  2003. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-60),math.rad(0),math.rad(0)),.3)
  2004. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-60),math.rad(0),math.rad(0)),.3)
  2005. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0)),.3)
  2006. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0)),.3)
  2007. Handleweld.C0=clerp(Handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  2008. Handle2weld.C0=clerp(Handle2weld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  2009. end
  2010. end
  2011. end
  2012. end
  2013. --156434034D
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement