istealscripts

Tenzei No Buki

Mar 21st, 2018
124
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 58.80 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'.Heartbeat:wait(0)
  138. else
  139. for i=0,num do
  140. game:service'RunService'.Heartbeat: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. local moosick = it("Sound",Character)
  848. moosick.SoundId = "rbxassetid://247346728"
  849. moosick.Looped = true
  850. moosick.Pitch = 1
  851. moosick.Volume = 1
  852. moosick:Play()
  853.  
  854. mouse.Button1Down:connect(function()
  855. if attack==false and attacktype==1 then
  856. attacktype=2
  857. attackone()
  858. elseif attack==false and attacktype==2 then
  859. attacktype=1
  860. attacktwo()
  861. end
  862. end)
  863.  
  864. mouse.KeyDown:connect(function(k)
  865. k=k:lower()
  866. if k=='q' then
  867. if attack==false then
  868. Push()
  869. end
  870. elseif k=='e' then
  871. if attack==false then
  872. Clap()
  873. end
  874. end
  875. end)
  876.  
  877. TrailDeb = false
  878.  
  879. function attackone()
  880. attack=true
  881. if TrailDeb == false then
  882. TrailDeb = true
  883. end
  884.  
  885.  
  886. coroutine.wrap(function()
  887. local Old = Handle.CFrame.p
  888. while wait()do
  889. if not TrailDeb then break end
  890. local New = Handle.CFrame.p
  891. local Mag =(Old -New).magnitude
  892. local Dis =(Old +New)/2
  893. local Trail = Instance.new("Part",Character)
  894. Trail.Material = "SmoothPlastic"
  895. Trail.Anchored = true
  896. Trail.CanCollide = false
  897. Trail.BrickColor = BrickColor.new("Navy blue")
  898. Trail.Size = Vector3.new(0.2,Mag,0.2)
  899. Trail.TopSurface = 0
  900. Trail.BottomSurface = 0
  901. Trail.formFactor = "Custom"
  902. Trail.CFrame = CFrame.new(Dis,New)* CFrame.Angles(math.pi/2,0,0)
  903. local ms = Instance.new("BlockMesh",Trail)
  904. ms.Scale = Vector3.new(1,1,1)
  905. local TM = Instance.new("CylinderMesh",Trail)
  906. TM.Scale = Vector3.new(1,1,1)
  907. Old = New
  908. coroutine.wrap(function()
  909. for i = 1,0,-0.1 do
  910. wait()
  911. TM.Scale = TM.Scale * Vector3.new(i,1,i)
  912. end
  913. Trail:remove()
  914. end)()
  915. coroutine.wrap(function()
  916. for i = 1,10 do
  917. wait()
  918. Trail.Transparency = Trail.Transparency +0.1
  919. end end)()end end)()
  920. con1=Gear.Touched:connect(function(hit) Damagefunc(hit,30,50,math.random(20,40),"Normal",RootPart,.2,1) end)
  921. for i=0,1,0.1 do
  922. swait()
  923. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,0),.2)
  924. Handleweld.C0=clerp(Handleweld.C0,cf(-5,1,-5)*angles(math.rad(100),math.rad(0),math.rad(0)),.2)
  925. Handle2weld.C0=clerp(Handle2weld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  926. RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*euler(.5,1.8,1.5),.3)
  927. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(2),math.rad(25),math.rad(-15)),.3)
  928. end
  929. so("http://www.roblox.com/asset/?id=231917758",Handle,1,.9)
  930. for i=0,1,0.1 do
  931. swait()
  932. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,0),.2)
  933. Handleweld.C0=clerp(Handleweld.C0,cf(-5,1,-5)*angles(math.rad(-85),math.rad(0),math.rad(0)),.2)
  934. Handle2weld.C0=clerp(Handle2weld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  935. RW.C0=clerp(RW.C0,cf(1.5,0.5,-0.5)*euler(80,1.8,1.5),.3)
  936. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(2),math.rad(25),math.rad(-15)),.3)
  937. end
  938. --dmgstop()
  939. attack=false
  940. con1:disconnect()
  941. if TrailDeb == true then
  942. TrailDeb = false
  943. end
  944. end
  945.  
  946. function attacktwo()
  947. attack=true
  948. if TrailDeb == false then
  949. TrailDeb = true
  950. end
  951.  
  952.  
  953. coroutine.wrap(function()
  954. local Old = Handle2.CFrame.p
  955. while wait()do
  956. if not TrailDeb then break end
  957. local New = Handle2.CFrame.p
  958. local Mag =(Old -New).magnitude
  959. local Dis =(Old +New)/2
  960. local Trail = Instance.new("Part",Character)
  961. Trail.Material = "SmoothPlastic"
  962. Trail.Anchored = true
  963. Trail.CanCollide = false
  964. Trail.BrickColor = BrickColor.new("Navy blue")
  965. Trail.Size = Vector3.new(0.2,Mag,0.2)
  966. Trail.TopSurface = 0
  967. Trail.BottomSurface = 0
  968. Trail.formFactor = "Custom"
  969. Trail.CFrame = CFrame.new(Dis,New)* CFrame.Angles(math.pi/2,0,0)
  970. local ms = Instance.new("BlockMesh",Trail)
  971. ms.Scale = Vector3.new(1,1,1)
  972. local TM = Instance.new("CylinderMesh",Trail)
  973. TM.Scale = Vector3.new(1,1,1)
  974. Old = New
  975. coroutine.wrap(function()
  976. for i = 1,0,-0.1 do
  977. wait()
  978. TM.Scale = TM.Scale * Vector3.new(i,1,i)
  979. end
  980. Trail:remove()
  981. end)()
  982. coroutine.wrap(function()
  983. for i = 1,10 do
  984. wait()
  985. Trail.Transparency = Trail.Transparency +0.1
  986. end end)()end end)()
  987. con1=Gear2.Touched:connect(function(hit) Damagefunc(hit,30,50,math.random(20,40),"Normal",RootPart,.2,1) end)
  988. for i=0,1,0.1 do
  989. swait()
  990. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,0),.2)
  991. Handle2weld.C0=clerp(Handle2weld.C0,cf(-5,1,-5)*angles(math.rad(0),math.rad(0),math.rad(20)),.2)
  992. Handleweld.C0=clerp(Handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  993. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-30,0,-20),.3)
  994. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-2),math.rad(-25),math.rad(15)),.3)
  995. end
  996. so("http://www.roblox.com/asset/?id=231917758",Handle2,1,.8)
  997. for i=0,1,0.1 do
  998. swait()
  999. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,0),.2)
  1000. Handle2weld.C0=clerp(Handle2weld.C0,cf(10,1,-5)*angles(math.rad(0),math.rad(-80),math.rad(20)),.2)
  1001. Handleweld.C0=clerp(Handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  1002. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-30,0,20),.3)
  1003. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-2),math.rad(-25),math.rad(15)),.3)
  1004. end
  1005. --dmgstop()
  1006. attack=false
  1007. con1:disconnect()
  1008. if TrailDeb == true then
  1009. TrailDeb = false
  1010. end
  1011. end
  1012.  
  1013. function Push()
  1014. attack=true
  1015. if TrailDeb == false then
  1016. TrailDeb = true
  1017. end
  1018.  
  1019.  
  1020. coroutine.wrap(function()
  1021. local Old = Handle2.CFrame.p
  1022. while wait()do
  1023. if not TrailDeb then break end
  1024. local New = Handle2.CFrame.p
  1025. local Mag =(Old -New).magnitude
  1026. local Dis =(Old +New)/2
  1027. local Trail = Instance.new("Part",Character)
  1028. Trail.Material = "SmoothPlastic"
  1029. Trail.Anchored = true
  1030. Trail.CanCollide = false
  1031. Trail.BrickColor = BrickColor.new("Navy blue")
  1032. Trail.Size = Vector3.new(0.2,Mag,0.2)
  1033. Trail.TopSurface = 0
  1034. Trail.BottomSurface = 0
  1035. Trail.formFactor = "Custom"
  1036. Trail.CFrame = CFrame.new(Dis,New)* CFrame.Angles(math.pi/2,0,0)
  1037. local ms = Instance.new("BlockMesh",Trail)
  1038. ms.Scale = Vector3.new(1,1,1)
  1039. local TM = Instance.new("CylinderMesh",Trail)
  1040. TM.Scale = Vector3.new(1,1,1)
  1041. Old = New
  1042. coroutine.wrap(function()
  1043. for i = 1,0,-0.1 do
  1044. wait()
  1045. TM.Scale = TM.Scale * Vector3.new(i,1,i)
  1046. end
  1047. Trail:remove()
  1048. end)()
  1049. coroutine.wrap(function()
  1050. for i = 1,10 do
  1051. wait()
  1052. Trail.Transparency = Trail.Transparency +0.1
  1053. end end)()end end)()
  1054. coroutine.wrap(function()
  1055. local Old = Handle.CFrame.p
  1056. while wait()do
  1057. if not TrailDeb then break end
  1058. local New = Handle.CFrame.p
  1059. local Mag =(Old -New).magnitude
  1060. local Dis =(Old +New)/2
  1061. local Trail = Instance.new("Part",Character)
  1062. Trail.Material = "SmoothPlastic"
  1063. Trail.Anchored = true
  1064. Trail.CanCollide = false
  1065. Trail.BrickColor = BrickColor.new("Navy blue")
  1066. Trail.Size = Vector3.new(0.2,Mag,0.2)
  1067. Trail.TopSurface = 0
  1068. Trail.BottomSurface = 0
  1069. Trail.formFactor = "Custom"
  1070. Trail.CFrame = CFrame.new(Dis,New)* CFrame.Angles(math.pi/2,0,0)
  1071. local ms = Instance.new("BlockMesh",Trail)
  1072. ms.Scale = Vector3.new(1,1,1)
  1073. local TM = Instance.new("CylinderMesh",Trail)
  1074. TM.Scale = Vector3.new(1,1,1)
  1075. Old = New
  1076. coroutine.wrap(function()
  1077. for i = 1,0,-0.1 do
  1078. wait()
  1079. TM.Scale = TM.Scale * Vector3.new(i,1,i)
  1080. end
  1081. Trail:remove()
  1082. end)()
  1083. coroutine.wrap(function()
  1084. for i = 1,10 do
  1085. wait()
  1086. Trail.Transparency = Trail.Transparency +0.1
  1087. end end)()end end)()
  1088. con1=Gear2.Touched:connect(function(hit) Damagefunc(hit,30,50,math.random(20,40),"Normal",RootPart,.2,1) end)
  1089. con2=Gear.Touched:connect(function(hit) Damagefunc(hit,30,50,math.random(20,40),"Normal",RootPart,.2,1) end)
  1090. for i=0,1,0.1 do
  1091. swait()
  1092. Handleweld.C0=clerp(Handleweld.C0,cf(-5,1,-10)*angles(math.rad(20),math.rad(-20),math.rad(0)),.2)
  1093. Handle2weld.C0=clerp(Handle2weld.C0,cf(5,1,-10)*angles(math.rad(20),math.rad(20),math.rad(0)),.2)
  1094. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(-20)),.3)
  1095. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(20)),.3)
  1096. end
  1097. so("http://www.roblox.com/asset/?id=231917758",Handle2,1,.8)
  1098. so("http://www.roblox.com/asset/?id=231917758",Handle,1,1)
  1099. for i=0,1,0.1 do
  1100. swait()
  1101. Handleweld.C0=clerp(Handleweld.C0,cf(-4,1,-20)*angles(math.rad(20),math.rad(-20),math.rad(0)),.2)
  1102. Handle2weld.C0=clerp(Handle2weld.C0,cf(4,1,-20)*angles(math.rad(20),math.rad(20),math.rad(0)),.2)
  1103. RW.C0=clerp(RW.C0,cf(1,0.5,-1)*angles(math.rad(90),math.rad(0),math.rad(-20)),.3)
  1104. LW.C0=clerp(LW.C0,cf(-1,0.5,-1)*angles(math.rad(90),math.rad(0),math.rad(20)),.3)
  1105. end
  1106. --dmgstop()
  1107. attack=false
  1108. con1:disconnect()
  1109. con2:disconnect()
  1110. if TrailDeb == true then
  1111. TrailDeb = false
  1112. end
  1113. end
  1114.  
  1115. function Clap()
  1116. attack=true
  1117. if TrailDeb == false then
  1118. TrailDeb = true
  1119. end
  1120.  
  1121.  
  1122. coroutine.wrap(function()
  1123. local Old = Handle2.CFrame.p
  1124. while wait()do
  1125. if not TrailDeb then break end
  1126. local New = Handle2.CFrame.p
  1127. local Mag =(Old -New).magnitude
  1128. local Dis =(Old +New)/2
  1129. local Trail = Instance.new("Part",Character)
  1130. Trail.Material = "SmoothPlastic"
  1131. Trail.Anchored = true
  1132. Trail.CanCollide = false
  1133. Trail.BrickColor = BrickColor.new("Navy blue")
  1134. Trail.Size = Vector3.new(0.2,Mag,0.2)
  1135. Trail.TopSurface = 0
  1136. Trail.BottomSurface = 0
  1137. Trail.formFactor = "Custom"
  1138. Trail.CFrame = CFrame.new(Dis,New)* CFrame.Angles(math.pi/2,0,0)
  1139. local ms = Instance.new("BlockMesh",Trail)
  1140. ms.Scale = Vector3.new(1,1,1)
  1141. local TM = Instance.new("CylinderMesh",Trail)
  1142. TM.Scale = Vector3.new(1,1,1)
  1143. Old = New
  1144. coroutine.wrap(function()
  1145. for i = 1,0,-0.1 do
  1146. wait()
  1147. TM.Scale = TM.Scale * Vector3.new(i,1,i)
  1148. end
  1149. Trail:remove()
  1150. end)()
  1151. coroutine.wrap(function()
  1152. for i = 1,10 do
  1153. wait()
  1154. Trail.Transparency = Trail.Transparency +0.1
  1155. end end)()end end)()
  1156. coroutine.wrap(function()
  1157. local Old = Handle.CFrame.p
  1158. while wait()do
  1159. if not TrailDeb then break end
  1160. local New = Handle.CFrame.p
  1161. local Mag =(Old -New).magnitude
  1162. local Dis =(Old +New)/2
  1163. local Trail = Instance.new("Part",Character)
  1164. Trail.Material = "SmoothPlastic"
  1165. Trail.Anchored = true
  1166. Trail.CanCollide = false
  1167. Trail.BrickColor = BrickColor.new("Navy blue")
  1168. Trail.Size = Vector3.new(0.2,Mag,0.2)
  1169. Trail.TopSurface = 0
  1170. Trail.BottomSurface = 0
  1171. Trail.formFactor = "Custom"
  1172. Trail.CFrame = CFrame.new(Dis,New)* CFrame.Angles(math.pi/2,0,0)
  1173. local ms = Instance.new("BlockMesh",Trail)
  1174. ms.Scale = Vector3.new(1,1,1)
  1175. local TM = Instance.new("CylinderMesh",Trail)
  1176. TM.Scale = Vector3.new(1,1,1)
  1177. Old = New
  1178. coroutine.wrap(function()
  1179. for i = 1,0,-0.1 do
  1180. wait()
  1181. TM.Scale = TM.Scale * Vector3.new(i,1,i)
  1182. end
  1183. Trail:remove()
  1184. end)()
  1185. coroutine.wrap(function()
  1186. for i = 1,10 do
  1187. wait()
  1188. Trail.Transparency = Trail.Transparency +0.1
  1189. end end)()end end)()
  1190. con1=Gear2.Touched:connect(function(hit) Damagefunc(hit,30,50,math.random(20,40),"Normal",RootPart,.2,1) end)
  1191. con2=Gear.Touched:connect(function(hit) Damagefunc(hit,30,50,math.random(20,40),"Normal",RootPart,.2,1) end)
  1192. for i=0,1,0.1 do
  1193. swait()
  1194. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,0),.2)
  1195. Handle2weld.C0=clerp(Handle2weld.C0,cf(-5,1,-5)*angles(math.rad(0),math.rad(0),math.rad(20)),.2)
  1196. Handleweld.C0=clerp(Handleweld.C0,cf(5,1,-5)*angles(math.rad(0),math.rad(0),math.rad(-20)),.2)
  1197. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-30,0,-20),.3)
  1198. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-30,0,20),.3)
  1199. end
  1200. so("http://www.roblox.com/asset/?id=231917758",Handle2,1,.8)
  1201. so("http://www.roblox.com/asset/?id=231917758",Handle,1,1)
  1202. for i=0,1,0.1 do
  1203. swait()
  1204. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,0),.2)
  1205. Handle2weld.C0=clerp(Handle2weld.C0,cf(10,1,-5)*angles(math.rad(0),math.rad(-20),math.rad(20)),.2)
  1206. Handleweld.C0=clerp(Handleweld.C0,cf(-10,1,-5)*angles(math.rad(0),math.rad(20),math.rad(-20)),.2)
  1207. LW.C0=clerp(LW.C0,cf(-1,0.5,0)*euler(-30,0,20),.3)
  1208. RW.C0=clerp(RW.C0,cf(1,0.5,0)*euler(-30,0,-20),.3)
  1209. end
  1210. --dmgstop()
  1211. attack=false
  1212. con1:disconnect()
  1213. con2:disconnect()
  1214. if TrailDeb == true then
  1215. TrailDeb = false
  1216. end
  1217. end
  1218.  
  1219. local sine = 0
  1220. local change = 1
  1221. local val = 0
  1222.  
  1223. while true do
  1224. swait()
  1225. sine = sine + change
  1226. local torvel=(RootPart.Velocity*Vector3.new(1,0,1)).magnitude
  1227. local velderp=RootPart.Velocity.y
  1228. hitfloor,posfloor=rayCast(RootPart.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,4,Character)
  1229. if equipped==true or equipped==false then
  1230. if attack==false then
  1231. idle=idle+1
  1232. else
  1233. idle=0
  1234. end
  1235. if idle>=500 then
  1236. if attack==false then
  1237. --Sheath()
  1238. end
  1239. end
  1240. if RootPart.Velocity.y > 1 and hitfloor==nil then
  1241. Anim="Jump"
  1242. if attack==false then
  1243. Neck.C0=clerp(Neck.C0,necko*euler(-0.2,0,0),.3)
  1244. Neck.C1=clerp(Neck.C1,necko2*euler(0,0,0),.3)
  1245. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,0),.3)
  1246. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-.5,0,0.5),.3)
  1247. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1248. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-.5,0,-0.5),.3)
  1249. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1250. RH.C0=clerp(RH.C0,cf(1,-1,-.3)*euler(-0.5,1.57,0)*euler(-.2,0,0),.2)
  1251. LH.C0=clerp(LH.C0,cf(-1,-1,-.3)*euler(-0.5,-1.57,0)*euler(-.2,0,0),.2)
  1252. Handleweld.C0=clerp(Handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  1253. Handle2weld.C0=clerp(Handle2weld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  1254. end
  1255. elseif RootPart.Velocity.y < -1 and hitfloor==nil then
  1256. Anim="Fall"
  1257. if attack==false then
  1258. Neck.C0=clerp(Neck.C0,necko*euler(0.4,0,0),.3)
  1259. Neck.C1=clerp(Neck.C1,necko2*euler(0,0,0),.3)
  1260. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,0),.3)
  1261. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(0.3,0,0.2),.3)
  1262. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1263. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(0.3,0,-0.2),.3)
  1264. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1265. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0.4,1.57,0),.2)
  1266. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(-0.2,-1.57,0),.2)
  1267. Handleweld.C0=clerp(Handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  1268. Handle2weld.C0=clerp(Handle2weld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  1269. end
  1270. elseif torvel<1 and hitfloor~=nil then
  1271. Anim="Idle"
  1272. if attack==false then
  1273. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  1274. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,0),.2)
  1275. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-2),math.rad(-25),math.rad(15)),.3)
  1276. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(2),math.rad(25),math.rad(-15)),.3)
  1277. 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)
  1278. 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)
  1279. Handleweld.C0=clerp(Handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  1280. Handle2weld.C0=clerp(Handle2weld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  1281. end
  1282. elseif torvel>2 and torvel<22 and hitfloor~=nil then
  1283. local idleanim=0
  1284. Anim="Walk"
  1285. if attack==false then
  1286. change=3
  1287. --[[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)
  1288. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-30),math.rad(0),math.rad(0)),.3)
  1289. 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)
  1290. 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)
  1291. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0)),.3)
  1292. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0)),.3)
  1293. --Handleweld.C0=clerp(--Handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)]]--
  1294. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,0),.2)
  1295. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0.1,0,0),.2)
  1296. --RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-0.1,0,0.2),.2)
  1297. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-5),math.rad(-25),math.rad(20)),.3)
  1298. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(5),math.rad(25),math.rad(-20)),.3)
  1299. RH.C0=clerp(RH.C0,RHC0,.3)
  1300. LH.C0=clerp(LH.C0,LHC0,.3)
  1301. Handleweld.C0=clerp(Handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  1302. Handle2weld.C0=clerp(Handle2weld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  1303. end
  1304. elseif torvel>=22 and hitfloor~=nil then
  1305. Anim="Run"
  1306. if attack==false then
  1307. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(45),math.rad(0),math.rad(0)),.3)
  1308. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-40),math.rad(0),math.rad(0)),.3)
  1309. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-60),math.rad(0),math.rad(0)),.3)
  1310. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-60),math.rad(0),math.rad(0)),.3)
  1311. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0)),.3)
  1312. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0)),.3)
  1313. Handleweld.C0=clerp(Handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  1314. Handle2weld.C0=clerp(Handle2weld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  1315. end
  1316. end
  1317. end
  1318. end
  1319. --156434034D
Add Comment
Please, Sign In to add comment