Enderbrine12

Cyan Slicer

Nov 24th, 2016
245
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 63.26 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. local function CFrameFromTopBack(at, top, back)
  468. local right = top:Cross(back)
  469. return CFrame.new(at.x, at.y, at.z,
  470. right.x, top.x, back.x,
  471. right.y, top.y, back.y,
  472. right.z, top.z, back.z)
  473. end
  474.  
  475. function Triangle(a, b, c)
  476. local edg1 = (c-a):Dot((b-a).unit)
  477. local edg2 = (a-b):Dot((c-b).unit)
  478. local edg3 = (b-c):Dot((a-c).unit)
  479. if edg1 <= (b-a).magnitude and edg1 >= 0 then
  480. a, b, c = a, b, c
  481. elseif edg2 <= (c-b).magnitude and edg2 >= 0 then
  482. a, b, c = b, c, a
  483. elseif edg3 <= (a-c).magnitude and edg3 >= 0 then
  484. a, b, c = c, a, b
  485. else
  486. assert(false, "unreachable")
  487. end
  488.  
  489. local len1 = (c-a):Dot((b-a).unit)
  490. local len2 = (b-a).magnitude - len1
  491. local width = (a + (b-a).unit*len1 - c).magnitude
  492.  
  493. local maincf = CFrameFromTopBack(a, (b-a):Cross(c-b).unit, -(b-a).unit)
  494.  
  495. local list = {}
  496.  
  497. if len1 > 0.01 then
  498. local w1 = Instance.new('WedgePart', m)
  499. game:GetService("Debris"):AddItem(w1,5)
  500. w1.Material = "SmoothPlastic"
  501. w1.FormFactor = 'Custom'
  502. w1.BrickColor = BrickColor.new("Toothpaste")
  503. w1.Transparency = 0
  504. w1.Reflectance = 0
  505. w1.Material = "SmoothPlastic"
  506. w1.CanCollide = false
  507. NoOutline(w1)
  508. local sz = Vector3.new(0.2, width, len1)
  509. w1.Size = sz
  510. local sp = Instance.new("SpecialMesh",w1)
  511. sp.MeshType = "Wedge"
  512. sp.Scale = Vector3.new(0,1,1) * sz/w1.Size
  513. w1:BreakJoints()
  514. w1.Anchored = true
  515. w1.Parent = workspace
  516. w1.Transparency = 0.7
  517. table.insert(Effects,{w1,"Disappear",.01})
  518. w1.CFrame = maincf*CFrame.Angles(math.pi,0,math.pi/2)*CFrame.new(0,width/2,len1/2)
  519. table.insert(list,w1)
  520. end
  521.  
  522. if len2 > 0.01 then
  523. local w2 = Instance.new('WedgePart', m)
  524. game:GetService("Debris"):AddItem(w2,5)
  525. w2.Material = "SmoothPlastic"
  526. w2.FormFactor = 'Custom'
  527. w2.BrickColor = BrickColor.new("Toothpaste")
  528. w2.Transparency = 0
  529. w2.Reflectance = 0
  530. w2.Material = "SmoothPlastic"
  531. w2.CanCollide = false
  532. NoOutline(w2)
  533. local sz = Vector3.new(0.2, width, len2)
  534. w2.Size = sz
  535. local sp = Instance.new("SpecialMesh",w2)
  536. sp.MeshType = "Wedge"
  537. sp.Scale = Vector3.new(0,1,1) * sz/w2.Size
  538. w2:BreakJoints()
  539. w2.Anchored = true
  540. w2.Parent = workspace
  541. w2.Transparency = 0.7
  542. table.insert(Effects,{w2,"Disappear",.01})
  543. w2.CFrame = maincf*CFrame.Angles(math.pi,math.pi,-math.pi/2)*CFrame.new(0,width/2,-len1 - len2/2)
  544. table.insert(list,w2)
  545. end
  546. return unpack(list)
  547. end
  548.  
  549. user=game.Players.localPlayer
  550. char=user.Character
  551. mouse=user:GetMouse()
  552. m=Instance.new('Model',char)
  553.  
  554.  
  555. local Handle = Instance.new("Part", m)
  556. Handle:BreakJoints()
  557. Handle.TopSurface = "Smooth"
  558. Handle.Material = "SmoothPlastic"
  559. Handle.Name = 'Handle'
  560. Handle.Transparency = 0 Handle.BottomSurface = "Smooth"
  561. Handle.FormFactor = "Custom" Handle.CanCollide = false
  562. Handle.BrickColor = BrickColor.new("Cyan")
  563. Handle.Size = Vector3.new(0.334079981, 0.501120031, 0.334079981)
  564. local Handleweld = Instance.new("ManualWeld")
  565. Handleweld.Part0 = char["Right Arm"]
  566. Handleweld.Part1 = Handle Handleweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  567. Handleweld.C1 = CFrame.new(1.06344354, -0.683923721, -0.0314267874, 1.04312953e-007, 0.999990165, -2.05635988e-005, 2.95754148e-007, -2.0653004e-005, -0.999999523, -0.999991417, 1.04306309e-007, -2.95758809e-007)
  568. Handleweld.Parent = char["Right Arm"]
  569.  
  570. local HandleMesh = Instance.new("CylinderMesh",Handle)
  571. HandleMesh.Name = "Mesh"
  572. HandleMesh.Offset = Vector3.new(0, 0, 0)
  573. HandleMesh.Scale = Vector3.new(1, 1, 1)
  574.  
  575. local HitboxA = Instance.new("Part", m)
  576. HitboxA:BreakJoints()
  577. HitboxA.TopSurface = "Smooth"
  578. HitboxA.Material = "SmoothPlastic"
  579. HitboxA.Name = 'HitboxA'
  580. HitboxA.Transparency = 1 HitboxA.BottomSurface = "Smooth"
  581. HitboxA.FormFactor = "Custom" HitboxA.CanCollide = false
  582. HitboxA.BrickColor = BrickColor.new("Cyan")
  583. HitboxA.Size = Vector3.new(3.4396801, 1.20224023, 0.334079981)
  584. local HitboxAweld = Instance.new("ManualWeld")
  585. HitboxAweld.Part0 = Handle HitboxAweld.Part1 = HitboxA HitboxAweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  586. HitboxAweld.C1 = CFrame.new(1.50702608, -3.10081816, 0, 0.965908945, 0.258811414, 1.77299796e-007, -0.258806854, 0.965926707, 2.58684196e-007, -1.0430935e-007, -2.95752557e-007, 0.999982834)
  587. HitboxAweld.Parent = HitboxA
  588. local HitboxB = Instance.new("Part", m)
  589. HitboxB:BreakJoints()
  590. HitboxB.TopSurface = "Smooth"
  591. HitboxB.Material = "SmoothPlastic"
  592. HitboxB.Name = 'HitboxB'
  593. HitboxB.Transparency = 1 HitboxB.BottomSurface = "Smooth"
  594. HitboxB.FormFactor = "Custom" HitboxB.CanCollide = false
  595. HitboxB.BrickColor = BrickColor.new("Cyan")
  596. HitboxB.Size = Vector3.new(2.83968019, 1.0352, 0.334079981)
  597. local HitboxBweld = Instance.new("ManualWeld")
  598. HitboxBweld.Part0 = Handle HitboxBweld.Part1 = HitboxB HitboxBweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  599. HitboxBweld.C1 = CFrame.new(1.07453465, -2.28646421, 0, 0.86600858, 0.499999404, 2.38211669e-007, -0.499990284, 0.866024554, 2.0398015e-007, -1.04308356e-007, -2.95752812e-007, 0.999982834)
  600. HitboxBweld.Parent = HitboxB
  601. local Part = Instance.new("Part", m)
  602. Part:BreakJoints()
  603. Part.TopSurface = "Smooth"
  604. Part.Material = "SmoothPlastic"
  605. Part.Name = 'Part'
  606. Part.Transparency = 0 Part.BottomSurface = "Smooth"
  607. Part.FormFactor = "Custom" Part.CanCollide = false
  608. Part.BrickColor = BrickColor.new("Really black")
  609. Part.Size = Vector3.new(0.334079981, 0.3340801, 0.334079981)
  610. local Partweld = Instance.new("ManualWeld")
  611. Partweld.Part0 = Handle Partweld.Part1 = Part Partweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  612. Partweld.C1 = CFrame.new(1.23977661e-005, 1.25278187, 1.63912773e-005, 0.999980569, -1.04117134e-007, -4.52429327e-013, -7.43148121e-008, 0.999999046, 5.37170308e-012, -8.81463305e-013, 4.40536496e-012, 0.999982834)
  613. Partweld.Parent = Part
  614. local PartMesh = Instance.new("CylinderMesh",Part)
  615. PartMesh.Name = "Mesh"
  616. PartMesh.Offset = Vector3.new(0, 0, 0)
  617. PartMesh.Scale = Vector3.new(1, 1, 1)
  618.  
  619. local Part = Instance.new("Part", m)
  620. Part:BreakJoints()
  621. Part.TopSurface = "Smooth"
  622. Part.Material = "SmoothPlastic"
  623. Part.Name = 'Part'
  624. Part.Transparency = 0 Part.BottomSurface = "Smooth"
  625. Part.FormFactor = "Custom" Part.CanCollide = false
  626. Part.BrickColor = BrickColor.new("Cyan")
  627. Part.Size = Vector3.new(0.334079981, 0.288000017, 0.334079981)
  628. local Partweld = Instance.new("ManualWeld")
  629. Partweld.Part0 = Handle Partweld.Part1 = Part Partweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  630. Partweld.C1 = CFrame.new(1.34706497e-005, 1.00223923, 1.63316727e-005, 0.999980569, -1.04117134e-007, -4.52429327e-013, -7.43148121e-008, 0.999999046, 5.37170308e-012, -8.81463305e-013, 4.40536496e-012, 0.999982834)
  631. Partweld.Parent = Part
  632. local PartMesh = Instance.new("CylinderMesh",Part)
  633. PartMesh.Name = "Mesh"
  634. PartMesh.Offset = Vector3.new(0, 0, 0)
  635. PartMesh.Scale = Vector3.new(1, 0.579999983, 1)
  636.  
  637. local Part = Instance.new("Part", m)
  638. Part:BreakJoints()
  639. Part.TopSurface = "Smooth"
  640. Part.Material = "SmoothPlastic"
  641. Part.Name = 'Part'
  642. Part.Transparency = 0 Part.BottomSurface = "Smooth"
  643. Part.FormFactor = "Custom" Part.CanCollide = false
  644. Part.BrickColor = BrickColor.new("Cyan")
  645. Part.Size = Vector3.new(0.334079981, 0.288000017, 0.334079981)
  646. local Partweld = Instance.new("ManualWeld")
  647. Partweld.Part0 = Handle Partweld.Part1 = Part Partweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  648. Partweld.C1 = CFrame.new(1.07288361e-006, -1.50334358, 3.57627869e-006, 0.999980569, -1.04117134e-007, -1.06349608e-012, -7.43148121e-008, 0.999999046, 5.00222086e-012, -2.70388746e-013, 4.77484718e-012, 0.999982834)
  649. Partweld.Parent = Part
  650. local PartMesh = Instance.new("CylinderMesh",Part)
  651. PartMesh.Name = "Mesh"
  652. PartMesh.Offset = Vector3.new(0, 0, 0)
  653. PartMesh.Scale = Vector3.new(1, 0.579999983, 1)
  654.  
  655. local Part = Instance.new("Part", m)
  656. Part:BreakJoints()
  657. Part.TopSurface = "Smooth"
  658. Part.Material = "SmoothPlastic"
  659. Part.Name = 'Part'
  660. Part.Transparency = 0 Part.BottomSurface = "Smooth"
  661. Part.FormFactor = "Custom" Part.CanCollide = false
  662. Part.BrickColor = BrickColor.new("Cyan")
  663. Part.Size = Vector3.new(0.33408004, 0.334080011, 0.668160021)
  664. local Partweld = Instance.new("ManualWeld")
  665. Partweld.Part0 = Handle Partweld.Part1 = Part Partweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  666. Partweld.C1 = CFrame.new(-1.95095348, -1.60336494e-005, 0.000169277191, -1.61528787e-005, -0.999998569, -2.90445143e-007, 2.54079708e-007, 2.90436049e-007, -0.999982834, 0.99998045, -1.62718625e-005, 2.54074337e-007)
  667. Partweld.Parent = Part
  668. local PartMesh = Instance.new("CylinderMesh",Part)
  669. PartMesh.Name = "Mesh"
  670. PartMesh.Offset = Vector3.new(0, 0, 0)
  671. PartMesh.Scale = Vector3.new(1, 1, 1)
  672.  
  673. local Part = Instance.new("Part", m)
  674. Part:BreakJoints()
  675. Part.TopSurface = "Smooth"
  676. Part.Material = "SmoothPlastic"
  677. Part.Name = 'Part'
  678. Part.Transparency = 0 Part.BottomSurface = "Smooth"
  679. Part.FormFactor = "Custom" Part.CanCollide = false
  680. Part.BrickColor = BrickColor.new("Really black")
  681. Part.Size = Vector3.new(0.334079981, 0.668159902, 0.334079981)
  682. local Partweld = Instance.new("ManualWeld")
  683. Partweld.Part0 = Handle Partweld.Part1 = Part Partweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  684. Partweld.C1 = CFrame.new(1.20401382e-005, 0.584648132, 1.62124634e-005, 0.999980569, -1.04117134e-007, -4.52429327e-013, -7.43148121e-008, 0.999999046, 5.37170308e-012, -8.81463305e-013, 4.40536496e-012, 0.999982834)
  685. Partweld.Parent = Part
  686. local PartMesh = Instance.new("CylinderMesh",Part)
  687. PartMesh.Name = "Mesh"
  688. PartMesh.Offset = Vector3.new(0, 0, 0)
  689. PartMesh.Scale = Vector3.new(1, 1, 1)
  690.  
  691. local Part = Instance.new("Part", m)
  692. Part:BreakJoints()
  693. Part.TopSurface = "Smooth"
  694. Part.Material = "SmoothPlastic"
  695. Part.Name = 'Part'
  696. Part.Transparency = 0 Part.BottomSurface = "Smooth"
  697. Part.FormFactor = "Custom" Part.CanCollide = false
  698. Part.BrickColor = BrickColor.new("Cyan")
  699. Part.Size = Vector3.new(0.334079981, 0.288000017, 0.334079981)
  700. local Partweld = Instance.new("ManualWeld")
  701. Partweld.Part0 = Handle Partweld.Part1 = Part Partweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  702. Partweld.C1 = CFrame.new(1.08480453e-005, 1.50333977, 1.6450882e-005, 0.999980569, -1.04117134e-007, -4.52429327e-013, -7.43148121e-008, 0.999999046, 5.37170308e-012, -8.81463305e-013, 4.40536496e-012, 0.999982834)
  703. Partweld.Parent = Part
  704. local PartMesh = Instance.new("CylinderMesh",Part)
  705. PartMesh.Name = "Mesh"
  706. PartMesh.Offset = Vector3.new(0, 0, 0)
  707. PartMesh.Scale = Vector3.new(1, 0.579999983, 1)
  708.  
  709. local Part = Instance.new("Part", m)
  710. Part:BreakJoints()
  711. Part.TopSurface = "Smooth"
  712. Part.Material = "SmoothPlastic"
  713. Part.Name = 'Part'
  714. Part.Transparency = 0 Part.BottomSurface = "Smooth"
  715. Part.FormFactor = "Custom" Part.CanCollide = false
  716. Part.BrickColor = BrickColor.new("Cyan")
  717. Part.Size = Vector3.new(0.561254442, 0.734976053, 0.334080011)
  718. local Partweld = Instance.new("ManualWeld")
  719. Partweld.Part0 = Handle Partweld.Part1 = Part Partweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  720. Partweld.C1 = CFrame.new(-2.20156765, 0.032782197, -0.0089597702, -4.7663525e-007, 0.999999046, -1.00013096e-007, -0.999980569, -2.9821058e-007, 2.23513325e-007, 2.23511464e-007, 1.0002455e-007, 0.999982834)
  721. Partweld.Parent = Part
  722. local PartMesh = Instance.new("SpecialMesh",Part)
  723. PartMesh.MeshId = "http://www.roblox.com/asset/?id=3270017"
  724. PartMesh.MeshType = Enum.MeshType.FileMesh PartMesh.Name = "Mesh"
  725. PartMesh.Offset = Vector3.new(0, 0, 0)
  726. PartMesh.Scale = Vector3.new(1.01226246, 1.06845486, 2.35466266)
  727.  
  728. local Part = Instance.new("Part", m)
  729. Part:BreakJoints()
  730. Part.TopSurface = "Smooth"
  731. Part.Material = "SmoothPlastic"
  732. Part.Name = 'Part'
  733. Part.Transparency = 0 Part.BottomSurface = "Smooth"
  734. Part.FormFactor = "Custom" Part.CanCollide = false
  735. Part.BrickColor = BrickColor.new("Cyan")
  736. Part.Size = Vector3.new(0.728294373, 0.334080011, 0.334080011)
  737. local Partweld = Instance.new("ManualWeld")
  738. Partweld.Part0 = Handle Partweld.Part1 = Part Partweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  739. Partweld.C1 = CFrame.new(1.95102978, -1.37090683e-005, 1.68085098e-005, -4.7663525e-007, 0.999999046, -1.00013096e-007, -0.999980569, -2.9821058e-007, 2.23513325e-007, 2.23511464e-007, 1.0002455e-007, 0.999982834)
  740. Partweld.Parent = Part
  741. local PartMesh = Instance.new("SpecialMesh",Part)
  742. PartMesh.MeshId = "http://www.roblox.com/asset/?id=3270017"
  743. PartMesh.MeshType = Enum.MeshType.FileMesh PartMesh.Name = "Mesh"
  744. PartMesh.Offset = Vector3.new(0, 0, 0)
  745. PartMesh.Scale = Vector3.new(0.758361638, 0.799520493, 2.35466266)
  746.  
  747. local Part = Instance.new("Part", m)
  748. Part:BreakJoints()
  749. Part.TopSurface = "Smooth"
  750. Part.Material = "SmoothPlastic"
  751. Part.Name = 'Part'
  752. Part.Transparency = 0 Part.BottomSurface = "Smooth"
  753. Part.FormFactor = "Custom" Part.CanCollide = false
  754. Part.BrickColor = BrickColor.new("Really black")
  755. Part.Size = Vector3.new(0.728294373, 0.288000017, 0.334080011)
  756. local Partweld = Instance.new("ManualWeld")
  757. Partweld.Part0 = Handle Partweld.Part1 = Part Partweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  758. Partweld.C1 = CFrame.new(-2.66916037, -0.584644198, 1.51991844e-005, -4.7663525e-007, 0.999999046, -1.00013096e-007, -0.999980569, -2.9821058e-007, 2.23513325e-007, 2.23511464e-007, 1.0002455e-007, 0.999982834)
  759. Partweld.Parent = Part
  760. local PartMesh = Instance.new("SpecialMesh",Part)
  761. PartMesh.MeshId = "http://www.roblox.com/asset/?id=3270017"
  762. PartMesh.MeshType = Enum.MeshType.FileMesh PartMesh.Name = "Mesh"
  763. PartMesh.Offset = Vector3.new(0, 0, 0)
  764. PartMesh.Scale = Vector3.new(0.334079981, 0.361875683, 2.35466266)
  765.  
  766. local Part = Instance.new("Part", m)
  767. Part:BreakJoints()
  768. Part.TopSurface = "Smooth"
  769. Part.Material = "SmoothPlastic"
  770. Part.Name = 'Part'
  771. Part.Transparency = 0 Part.BottomSurface = "Smooth"
  772. Part.FormFactor = "Custom" Part.CanCollide = false
  773. Part.BrickColor = BrickColor.new("Really black")
  774. Part.Size = Vector3.new(0.334079981, 0.3340801, 0.334079981)
  775. local Partweld = Instance.new("ManualWeld")
  776. Partweld.Part0 = Handle Partweld.Part1 = Part Partweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  777. Partweld.C1 = CFrame.new(1.90734863e-006, -1.25279093, 3.69548798e-006, 0.999980569, -1.04117134e-007, -1.06349608e-012, -7.43148121e-008, 0.999999046, 5.00222086e-012, -2.70388746e-013, 4.77484718e-012, 0.999982834)
  778. Partweld.Parent = Part
  779. local PartMesh = Instance.new("CylinderMesh",Part)
  780. PartMesh.Name = "Mesh"
  781. PartMesh.Offset = Vector3.new(0, 0, 0)
  782. PartMesh.Scale = Vector3.new(1, 1, 1)
  783.  
  784. local Part = Instance.new("Part", m)
  785. Part:BreakJoints()
  786. Part.TopSurface = "Smooth"
  787. Part.Material = "SmoothPlastic"
  788. Part.Name = 'Part'
  789. Part.Transparency = 0 Part.BottomSurface = "Smooth"
  790. Part.FormFactor = "Custom" Part.CanCollide = false
  791. Part.BrickColor = BrickColor.new("Cyan")
  792. Part.Size = Vector3.new(0.33408004, 0.334080011, 0.501120031)
  793. local Partweld = Instance.new("ManualWeld")
  794. Partweld.Part0 = Handle Partweld.Part1 = Part Partweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  795. Partweld.C1 = CFrame.new(1.83740282, -1.55568123e-005, 0.584628224, 1.33917638e-007, -0.999999046, -4.57589522e-012, 2.44464084e-012, -5.20117283e-012, -0.999982834, 0.999980569, -4.45124897e-008, 1.1070771e-012)
  796. Partweld.Parent = Part
  797. local PartMesh = Instance.new("CylinderMesh",Part)
  798. PartMesh.Name = "Mesh"
  799. PartMesh.Offset = Vector3.new(0, 0, 0)
  800. PartMesh.Scale = Vector3.new(1, 1, 1)
  801.  
  802. local Part = Instance.new("Part", m)
  803. Part:BreakJoints()
  804. Part.TopSurface = "Smooth"
  805. Part.Material = "SmoothPlastic"
  806. Part.Name = 'Part'
  807. Part.Transparency = 0 Part.BottomSurface = "Smooth"
  808. Part.FormFactor = "Custom" Part.CanCollide = false
  809. Part.BrickColor = BrickColor.new("Really black")
  810. Part.Size = Vector3.new(0.288000017, 0.288000017, 0.334080011)
  811. local Partweld = Instance.new("ManualWeld")
  812. Partweld.Part0 = Handle Partweld.Part1 = Part Partweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  813. Partweld.C1 = CFrame.new(1.9465909, -0.000917434692, -0.00169306993, 1.56724745e-005, 0.999998569, -2.17962452e-007, 0.99998045, -1.57914474e-005, 1.32344239e-005, 1.32343903e-005, -2.18184425e-007, -0.999982834)
  814. Partweld.Parent = Part
  815. local PartMesh = Instance.new("SpecialMesh",Part)
  816. PartMesh.MeshId = "http://www.roblox.com/asset?id=156292343"
  817. PartMesh.MeshType = Enum.MeshType.FileMesh PartMesh.Name = "Mesh"
  818. PartMesh.Offset = Vector3.new(0, 0, 0)
  819. PartMesh.Scale = Vector3.new(0.962150395, 0.930412948, 1.67040002)
  820.  
  821. local Part = Instance.new("Part", m)
  822. Part:BreakJoints()
  823. Part.TopSurface = "Smooth"
  824. Part.Material = "SmoothPlastic"
  825. Part.Name = 'Part'
  826. Part.Transparency = 0 Part.BottomSurface = "Smooth"
  827. Part.FormFactor = "Custom" Part.CanCollide = false
  828. Part.BrickColor = BrickColor.new("Really black")
  829. Part.Size = Vector3.new(0.728294373, 0.288000017, 0.334080011)
  830. local Partweld = Instance.new("ManualWeld")
  831. Partweld.Part0 = Handle Partweld.Part1 = Part Partweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  832. Partweld.C1 = CFrame.new(-1.83405781, -0.584644675, 1.55568123e-005, -4.7663525e-007, 0.999999046, -1.00013096e-007, -0.999980569, -2.9821058e-007, 2.23513325e-007, 2.23511464e-007, 1.0002455e-007, 0.999982834)
  833. Partweld.Parent = Part
  834. local PartMesh = Instance.new("SpecialMesh",Part)
  835. PartMesh.MeshId = "http://www.roblox.com/asset/?id=3270017"
  836. PartMesh.MeshType = Enum.MeshType.FileMesh PartMesh.Name = "Mesh"
  837. PartMesh.Offset = Vector3.new(0, 0, 0)
  838. PartMesh.Scale = Vector3.new(0.337420791, 0.351853222, 2.35466266)
  839.  
  840. local Part = Instance.new("Part", m)
  841. Part:BreakJoints()
  842. Part.TopSurface = "Smooth"
  843. Part.Material = "SmoothPlastic"
  844. Part.Name = 'Part'
  845. Part.Transparency = 0 Part.BottomSurface = "Smooth"
  846. Part.FormFactor = "Custom" Part.CanCollide = false
  847. Part.BrickColor = BrickColor.new("Cyan")
  848. Part.Size = Vector3.new(0.33408004, 0.334080011, 0.501120031)
  849. local Partweld = Instance.new("ManualWeld")
  850. Partweld.Part0 = Handle Partweld.Part1 = Part Partweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  851. Partweld.C1 = CFrame.new(2.67248297, -1.53183937e-005, 0.584639192, 1.04117134e-007, -0.999999046, -4.49063009e-012, 2.43042825e-012, -5.28643795e-012, -0.999982834, 0.999980569, -7.43148121e-008, 1.09115711e-012)
  852. Partweld.Parent = Part
  853. local PartMesh = Instance.new("CylinderMesh",Part)
  854. PartMesh.Name = "Mesh"
  855. PartMesh.Offset = Vector3.new(0, 0, 0)
  856. PartMesh.Scale = Vector3.new(1, 1, 1)
  857.  
  858. local Part = Instance.new("Part", m)
  859. Part:BreakJoints()
  860. Part.TopSurface = "Smooth"
  861. Part.Material = "SmoothPlastic"
  862. Part.Name = 'Part'
  863. Part.Transparency = 0 Part.BottomSurface = "Smooth"
  864. Part.FormFactor = "Custom" Part.CanCollide = false
  865. Part.BrickColor = BrickColor.new("Cyan")
  866. Part.Size = Vector3.new(0.334079981, 0.288000017, 0.334079981)
  867. local Partweld = Instance.new("ManualWeld")
  868. Partweld.Part0 = Handle Partweld.Part1 = Part Partweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  869. Partweld.C1 = CFrame.new(4.76837158e-007, -1.00223207, 3.75509262e-006, 0.999980569, -1.04117134e-007, -1.06349608e-012, -7.43148121e-008, 0.999999046, 5.00222086e-012, -2.70388746e-013, 4.77484718e-012, 0.999982834)
  870. Partweld.Parent = Part
  871. local PartMesh = Instance.new("CylinderMesh",Part)
  872. PartMesh.Name = "Mesh"
  873. PartMesh.Offset = Vector3.new(0, 0, 0)
  874. PartMesh.Scale = Vector3.new(1, 0.579999983, 1)
  875.  
  876. local Part = Instance.new("Part", m)
  877. Part:BreakJoints()
  878. Part.TopSurface = "Smooth"
  879. Part.Material = "SmoothPlastic"
  880. Part.Name = 'Part'
  881. Part.Transparency = 0 Part.BottomSurface = "Smooth"
  882. Part.FormFactor = "Custom" Part.CanCollide = false
  883. Part.BrickColor = BrickColor.new("Really black")
  884. Part.Size = Vector3.new(0.561254442, 0.734976053, 0.334080011)
  885. local Partweld = Instance.new("ManualWeld")
  886. Partweld.Part0 = Handle Partweld.Part1 = Part Partweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  887. Partweld.C1 = CFrame.new(-2.20156813, 0.032782197, -0.00895911455, -4.76638888e-007, 0.999999046, 1.95740711e-007, -0.999980569, -2.98214218e-007, 1.19206135e-007, 1.19204614e-007, -1.9573406e-007, 0.999982834)
  888. Partweld.Parent = Part
  889. local PartMesh = Instance.new("SpecialMesh",Part)
  890. PartMesh.MeshId = "http://www.roblox.com/asset/?id=3270017"
  891. PartMesh.MeshType = Enum.MeshType.FileMesh PartMesh.Name = "Mesh"
  892. PartMesh.Offset = Vector3.new(0, 0, 0)
  893. PartMesh.Scale = Vector3.new(1.08408964, 1.12190771, 2.35466266)
  894.  
  895. local Part = Instance.new("Part", m)
  896. Part:BreakJoints()
  897. Part.TopSurface = "Smooth"
  898. Part.Material = "SmoothPlastic"
  899. Part.Name = 'Part'
  900. Part.Transparency = 0 Part.BottomSurface = "Smooth"
  901. Part.FormFactor = "Custom" Part.CanCollide = false
  902. Part.BrickColor = BrickColor.new("Cyan")
  903. Part.Size = Vector3.new(0.33408004, 0.334080011, 0.835200012)
  904. local Partweld = Instance.new("ManualWeld")
  905. Partweld.Part0 = Handle Partweld.Part1 = Part Partweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  906. Partweld.C1 = CFrame.new(2.18819427, 0.00895947218, -0.0411309004, 1.19018296e-007, -0.999999046, 5.30886268e-009, 1.49770614e-007, -5.31875344e-009, -0.999982834, 0.999980569, -5.94136509e-008, 1.49769633e-007)
  907. Partweld.Parent = Part
  908. local PartMesh = Instance.new("CylinderMesh",Part)
  909. PartMesh.Name = "Mesh"
  910. PartMesh.Offset = Vector3.new(0, 0, 0)
  911. PartMesh.Scale = Vector3.new(1, 1, 1)
  912.  
  913. local Part = Instance.new("Part", m)
  914. Part:BreakJoints()
  915. Part.TopSurface = "Smooth"
  916. Part.Material = "SmoothPlastic"
  917. Part.Name = 'Part'
  918. Part.Transparency = 0 Part.BottomSurface = "Smooth"
  919. Part.FormFactor = "Custom" Part.CanCollide = false
  920. Part.BrickColor = BrickColor.new("Really black")
  921. Part.Size = Vector3.new(0.334079981, 0.668159902, 0.334079981)
  922. local Partweld = Instance.new("ManualWeld")
  923. Partweld.Part0 = Handle Partweld.Part1 = Part Partweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  924. Partweld.C1 = CFrame.new(1.90734863e-006, -0.584632397, 3.87430191e-006, 0.999980569, -1.04117134e-007, -1.06349608e-012, -7.43148121e-008, 0.999999046, 5.00222086e-012, -2.70388746e-013, 4.77484718e-012, 0.999982834)
  925. Partweld.Parent = Part
  926. local PartMesh = Instance.new("CylinderMesh",Part)
  927. PartMesh.Name = "Mesh"
  928. PartMesh.Offset = Vector3.new(0, 0, 0)
  929. PartMesh.Scale = Vector3.new(1, 1, 1)
  930.  
  931. local Wedge = Instance.new("WedgePart", m)
  932. Wedge:BreakJoints()
  933. Wedge.TopSurface = "Smooth"
  934. Wedge.Material = "SmoothPlastic"
  935. Wedge.Name = 'Wedge'
  936. Wedge.Transparency = 0 Wedge.BottomSurface = "Smooth"
  937. Wedge.FormFactor = "Custom" Wedge.CanCollide = false
  938. Wedge.BrickColor = BrickColor.new("Cyan")
  939. Wedge.Size = Vector3.new(0.200000003, 0.400000036, 1.60000002)
  940. local Wedgeweld = Instance.new("ManualWeld")
  941. Wedgeweld.Part0 = Handle Wedgeweld.Part1 = Wedge Wedgeweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  942. Wedgeweld.C1 = CFrame.new(0.045333147, -1.62391663, 1.84441566, 1.71177078e-007, 2.23686314e-007, -0.999991417, 0.258836389, 0.965919793, 2.60373326e-007, 0.965910971, -0.258838862, 1.07443462e-007)
  943. Wedgeweld.Parent = Wedge
  944. local Wedge = Instance.new("WedgePart", m)
  945. Wedge:BreakJoints()
  946. Wedge.TopSurface = "Smooth"
  947. Wedge.Material = "SmoothPlastic"
  948. Wedge.Name = 'Wedge'
  949. Wedge.Transparency = 0 Wedge.BottomSurface = "Smooth"
  950. Wedge.FormFactor = "Custom" Wedge.CanCollide = false
  951. Wedge.BrickColor = BrickColor.new("Cyan")
  952. Wedge.Size = Vector3.new(0.200000003, 0.400000036, 3)
  953. local Wedgeweld = Instance.new("ManualWeld")
  954. Wedgeweld.Part0 = Handle Wedgeweld.Part1 = Wedge Wedgeweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  955. Wedgeweld.C1 = CFrame.new(0.0453329086, -2.09136772, 1.37955189, 5.5285831e-008, 2.3391857e-007, -0.999991417, -0.499976844, 0.866034687, 1.74942656e-007, 0.86602664, 0.499981403, 1.6483537e-007)
  956. Wedgeweld.Parent = Wedge
  957. local Wedge = Instance.new("WedgePart", m)
  958. Wedge:BreakJoints()
  959. Wedge.TopSurface = "Smooth"
  960. Wedge.Material = "SmoothPlastic"
  961. Wedge.Name = 'Wedge'
  962. Wedge.Transparency = 0 Wedge.BottomSurface = "Smooth"
  963. Wedge.FormFactor = "Custom" Wedge.CanCollide = false
  964. Wedge.BrickColor = BrickColor.new("Cyan")
  965. Wedge.Size = Vector3.new(0.200000003, 0.400000036, 1.79999995)
  966. local Wedgeweld = Instance.new("ManualWeld")
  967. Wedgeweld.Part0 = Handle Wedgeweld.Part1 = Wedge Wedgeweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  968. Wedgeweld.C1 = CFrame.new(0.0453329682, -1.76543856, 2.05599022, 5.80497606e-008, 2.37628683e-007, -0.999991417, 2.0653004e-005, 0.999999404, 2.37632833e-007, 0.999990165, -2.07424109e-005, 5.80442752e-008)
  969. Wedgeweld.Parent = Wedge
  970. local Wedge = Instance.new("WedgePart", m)
  971. Wedge:BreakJoints()
  972. Wedge.TopSurface = "Smooth"
  973. Wedge.Material = "SmoothPlastic"
  974. Wedge.Name = 'Wedge'
  975. Wedge.Transparency = 0 Wedge.BottomSurface = "Smooth"
  976. Wedge.FormFactor = "Custom" Wedge.CanCollide = false
  977. Wedge.BrickColor = BrickColor.new("Cyan")
  978. Wedge.Size = Vector3.new(0.200000003, 0.330000043, 1.39999998)
  979. local Wedgeweld = Instance.new("ManualWeld")
  980. Wedgeweld.Part0 = Handle Wedgeweld.Part1 = Wedge Wedgeweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  981. Wedgeweld.C1 = CFrame.new(0.0453342199, -1.88805628, 2.71651793, 4.90638229e-007, 5.16344301e-008, -0.999991417, 0.56411463, 0.825692296, 3.19416785e-007, 0.825684667, -0.564119875, 3.7598582e-007)
  982. Wedgeweld.Parent = Wedge
  983. local Wedge = Instance.new("WedgePart", m)
  984. Wedge:BreakJoints()
  985. Wedge.TopSurface = "Smooth"
  986. Wedge.Material = "SmoothPlastic"
  987. Wedge.Name = 'Wedge'
  988. Wedge.Transparency = 0 Wedge.BottomSurface = "Smooth"
  989. Wedge.FormFactor = "Custom" Wedge.CanCollide = false
  990. Wedge.BrickColor = BrickColor.new("Cyan")
  991. Wedge.Size = Vector3.new(0.200000003, 0.400000036, 1.39999998)
  992. local Wedgeweld = Instance.new("ManualWeld")
  993. Wedgeweld.Part0 = Handle Wedgeweld.Part1 = Wedge Wedgeweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  994. Wedgeweld.C1 = CFrame.new(0.0453327298, -2.39616013, 2.46780443, 2.40800482e-008, 3.26642265e-007, -0.999991417, 0.258836448, 0.965919852, 3.2174529e-007, 0.965911031, -0.258838922, -6.12895263e-008)
  995. Wedgeweld.Parent = Wedge
  996. local Wedge = Instance.new("WedgePart", m)
  997. Wedge:BreakJoints()
  998. Wedge.TopSurface = "Smooth"
  999. Wedge.Material = "SmoothPlastic"
  1000. Wedge.Name = 'Wedge'
  1001. Wedge.Transparency = 0 Wedge.BottomSurface = "Smooth"
  1002. Wedge.FormFactor = "Custom" Wedge.CanCollide = false
  1003. Wedge.BrickColor = BrickColor.new("Cyan")
  1004. Wedge.Size = Vector3.new(0.200000003, 0.350000024, 3)
  1005. local Wedgeweld = Instance.new("ManualWeld")
  1006. Wedgeweld.Part0 = Handle Wedgeweld.Part1 = Wedge Wedgeweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1007. Wedgeweld.C1 = CFrame.new(0.0453326702, -2.91864204, 1.59399581, 2.04500665e-008, 3.23773946e-007, -0.999991417, -0.258796394, 0.965929985, 3.07453035e-007, 0.965921044, 0.258798689, 1.03545538e-007)
  1008. Wedgeweld.Parent = Wedge
  1009.  
  1010.  
  1011. Damagefunc=function(hit,minim,maxim,knockback,Type,Property,Delay,KnockbackType,decreaseblock)
  1012. if hit.Parent==nil then
  1013. return
  1014. end
  1015. h=hit.Parent:FindFirstChild("Humanoid")
  1016. for _,v in pairs(hit.Parent:children()) do
  1017. if v:IsA("Humanoid") then
  1018. h=v
  1019. end
  1020. end
  1021. if hit.Parent.Parent:FindFirstChild("Torso")~=nil then
  1022. h=hit.Parent.Parent:FindFirstChild("Humanoid")
  1023. end
  1024. if hit.Parent.className=="Hat" then
  1025. hit=hit.Parent.Parent:findFirstChild("Head")
  1026. end
  1027. if h~=nil and hit.Parent.Name~=Character.Name and hit.Parent:FindFirstChild("Torso")~=nil then
  1028. if hit.Parent:findFirstChild("DebounceHit")~=nil then if hit.Parent.DebounceHit.Value==true then return end end
  1029. --[[ if game.Players:GetPlayerFromCharacter(hit.Parent)~=nil then
  1030. return
  1031. end]]
  1032. -- hs(hit,1.2)
  1033. c=Instance.new("ObjectValue")
  1034. c.Name="creator"
  1035. c.Value=game:service("Players").LocalPlayer
  1036. c.Parent=h
  1037. game:GetService("Debris"):AddItem(c,.5)
  1038. Damage=math.random(minim,maxim)
  1039. -- h:TakeDamage(Damage)
  1040. blocked=false
  1041. block=hit.Parent:findFirstChild("Block")
  1042. if block~=nil then
  1043. print(block.className)
  1044. if block.className=="NumberValue" then
  1045. if block.Value>0 then
  1046. blocked=true
  1047. if decreaseblock==nil then
  1048. block.Value=block.Value-1
  1049. end
  1050. end
  1051. end
  1052. if block.className=="IntValue" then
  1053. if block.Value>0 then
  1054. blocked=true
  1055. if decreaseblock~=nil then
  1056. block.Value=block.Value-1
  1057. end
  1058. end
  1059. end
  1060. end
  1061. if blocked==false then
  1062. -- h:TakeDamage(Damage)
  1063. h.Health=h.Health-Damage
  1064. showDamage(hit.Parent,Damage,.5,BrickColor.new("Navy blue"))
  1065. else
  1066. h.Health=h.Health-(Damage/2)
  1067. showDamage(hit.Parent,Damage/2,.5,BrickColor.new("Bright blue"))
  1068. end
  1069. if Type=="Knockdown" then
  1070. hum=hit.Parent.Humanoid
  1071. hum.PlatformStand=true
  1072. coroutine.resume(coroutine.create(function(HHumanoid)
  1073. swait(1)
  1074. HHumanoid.PlatformStand=false
  1075. end),hum)
  1076. local angle=(hit.Position-(Property.Position+Vector3.new(0,0,0))).unit
  1077. --hit.CFrame=CFrame.new(hit.Position,Vector3.new(angle.x,hit.Position.y,angle.z))*CFrame.fromEulerAnglesXYZ(math.pi/4,0,0)
  1078. local bodvol=Instance.new("BodyVelocity")
  1079. bodvol.velocity=angle*knockback
  1080. bodvol.P=5000
  1081. bodvol.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
  1082. bodvol.Parent=hit
  1083. rl=Instance.new("BodyAngularVelocity")
  1084. rl.P=3000
  1085. rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000
  1086. rl.angularvelocity=Vector3.new(math.random(-10,10),math.random(-10,10),math.random(-10,10))
  1087. rl.Parent=hit
  1088. game:GetService("Debris"):AddItem(bodvol,.5)
  1089. game:GetService("Debris"):AddItem(rl,.5)
  1090. elseif Type=="Normal" then
  1091. vp=Instance.new("BodyVelocity")
  1092. vp.P=500
  1093. vp.maxForce=Vector3.new(math.huge,0,math.huge)
  1094. -- vp.velocity=Character.Torso.CFrame.lookVector*Knockback
  1095. if KnockbackType==1 then
  1096. vp.velocity=Property.CFrame.lookVector*knockback+Property.Velocity/1.05
  1097. elseif KnockbackType==2 then
  1098. vp.velocity=Property.CFrame.lookVector*knockback
  1099. end
  1100. if knockback>0 then
  1101. vp.Parent=hit.Parent.Torso
  1102. end
  1103. game:GetService("Debris"):AddItem(vp,.5)
  1104. elseif Type=="Up" then
  1105. local bodyVelocity=Instance.new("BodyVelocity")
  1106. bodyVelocity.velocity=vt(0,60,0)
  1107. bodyVelocity.P=5000
  1108. bodyVelocity.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
  1109. bodyVelocity.Parent=hit
  1110. game:GetService("Debris"):AddItem(bodyVelocity,1)
  1111. rl=Instance.new("BodyAngularVelocity")
  1112. rl.P=3000
  1113. rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000
  1114. rl.angularvelocity=Vector3.new(math.random(-30,30),math.random(-30,30),math.random(-30,30))
  1115. rl.Parent=hit
  1116. game:GetService("Debris"):AddItem(rl,.5)
  1117. elseif Type=="Snare" then
  1118. bp=Instance.new("BodyPosition")
  1119. bp.P=2000
  1120. bp.D=100
  1121. bp.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  1122. bp.position=hit.Parent.Torso.Position
  1123. bp.Parent=hit.Parent.Torso
  1124. game:GetService("Debris"):AddItem(bp,1)
  1125. elseif Type=="Target" then
  1126. if Targetting==false then
  1127. ZTarget=hit.Parent.Torso
  1128. coroutine.resume(coroutine.create(function(Part)
  1129. so("http://www.roblox.com/asset/?id=15666462",Part,1,1.5)
  1130. swait(5)
  1131. so("http://www.roblox.com/asset/?id=15666462",Part,1,1.5)
  1132. end),ZTarget)
  1133. TargHum=ZTarget.Parent:findFirstChild("Humanoid")
  1134. targetgui=Instance.new("BillboardGui")
  1135. targetgui.Parent=ZTarget
  1136. targetgui.Size=UDim2.new(10,100,10,100)
  1137. targ=Instance.new("ImageLabel")
  1138. targ.Parent=targetgui
  1139. targ.BackgroundTransparency=1
  1140. targ.Image="rbxassetid://4834067"
  1141. targ.Size=UDim2.new(1,0,1,0)
  1142. cam.CameraType="Scriptable"
  1143. cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
  1144. dir=Vector3.new(cam.CoordinateFrame.lookVector.x,0,cam.CoordinateFrame.lookVector.z)
  1145. workspace.CurrentCamera.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
  1146. Targetting=true
  1147. RocketTarget=ZTarget
  1148. for i=1,Property do
  1149. --while Targetting==true and Humanoid.Health>0 and Character.Parent~=nil do
  1150. if Humanoid.Health>0 and Character.Parent~=nil and TargHum.Health>0 and TargHum.Parent~=nil and Targetting==true then
  1151. swait()
  1152. end
  1153. --workspace.CurrentCamera.CoordinateFrame=CFrame.new(Head.CFrame.p,Head.CFrame.p+rmdir*100)
  1154. cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
  1155. dir=Vector3.new(cam.CoordinateFrame.lookVector.x,0,cam.CoordinateFrame.lookVector.z)
  1156. cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)*cf(0,5,10)*euler(-0.3,0,0)
  1157. end
  1158. Targetting=false
  1159. RocketTarget=nil
  1160. targetgui.Parent=nil
  1161. cam.CameraType="Custom"
  1162. end
  1163. end
  1164. debounce=Instance.new("BoolValue")
  1165. debounce.Name="DebounceHit"
  1166. debounce.Parent=hit.Parent
  1167. debounce.Value=true
  1168. game:GetService("Debris"):AddItem(debounce,Delay)
  1169. c=Instance.new("ObjectValue")
  1170. c.Name="creator"
  1171. c.Value=Player
  1172. c.Parent=h
  1173. game:GetService("Debris"):AddItem(c,.5)
  1174. CRIT=false
  1175. hitDeb=true
  1176. AttackPos=6
  1177. end
  1178. end
  1179.  
  1180. showDamage=function(Char,Dealt,du,Color)
  1181. m=Instance.new("Model")
  1182. m.Name=tostring(Dealt)
  1183. h=Instance.new("Humanoid")
  1184. h.Health=0
  1185. h.MaxHealth=0
  1186. h.Parent=m
  1187. c=Instance.new("Part")
  1188. c.Transparency=0
  1189. c.BrickColor=Color
  1190. c.Name="Head"
  1191. c.TopSurface=0
  1192. c.BottomSurface=0
  1193. c.formFactor="Plate"
  1194. c.Size=Vector3.new(1,.4,1)
  1195. ms=Instance.new("CylinderMesh")
  1196. ms.Scale=Vector3.new(.8,.8,.8)
  1197. if CRIT==true then
  1198. ms.Scale=Vector3.new(1,1.25,1)
  1199. end
  1200. ms.Parent=c
  1201. c.Reflectance=0
  1202. Instance.new("BodyGyro").Parent=c
  1203. c.Parent=m
  1204. if Char:findFirstChild("Head")~=nil then
  1205. c.CFrame=CFrame.new(Char["Head"].CFrame.p+Vector3.new(0,1.5,0))
  1206. elseif Char.Parent:findFirstChild("Head")~=nil then
  1207. c.CFrame=CFrame.new(Char.Parent["Head"].CFrame.p+Vector3.new(0,1.5,0))
  1208. end
  1209. f=Instance.new("BodyPosition")
  1210. f.P=2000
  1211. f.D=100
  1212. f.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  1213. f.position=c.Position+Vector3.new(0,3,0)
  1214. f.Parent=c
  1215. game:GetService("Debris"):AddItem(m,.5+du)
  1216. c.CanCollide=false
  1217. m.Parent=workspace
  1218. c.CanCollide=false
  1219. end
  1220.  
  1221. function UnCloak()
  1222. so("http://roblox.com/asset/?id=2767090",Torso,1,1.1)
  1223. Face.Parent=Head
  1224. cloaked=false
  1225. for _,v in pairs(Torso.Parent:children()) do
  1226. if v.className=="Part" and v.Name~="HumanoidRootPart" then
  1227. coroutine.resume(coroutine.create(function()
  1228. for i=0,1,0.1 do
  1229. wait()
  1230. v.Transparency=v.Transparency-0.1
  1231. end
  1232. v.Transparency=0
  1233. end))
  1234. end
  1235. if v.className=="Hat" then
  1236. hatp=v.Handle
  1237. coroutine.resume(coroutine.create(function(derp)
  1238. for i=0,1,0.1 do
  1239. wait()
  1240. derp.Transparency=derp.Transparency-0.1
  1241. end
  1242. derp.Transparency=0
  1243. end),hatp)
  1244. end
  1245. end
  1246. for _,v in pairs(blocks) do
  1247. if v.className=="Part" and v.Name~="Hitbox" and v.Name~='tip' then
  1248. coroutine.resume(coroutine.create(function()
  1249. for i=0,1,0.1 do
  1250. wait()
  1251. v.Transparency=v.Transparency-0.1
  1252. end
  1253. v.Transparency=0
  1254. end))
  1255. v.Transparency=0
  1256. end
  1257. end
  1258. end
  1259. meshids = {["penguin"] = 15853464, ["ring"] = 3270017,
  1260. ["spike"] = 1033714,["cone"] = 1082802,["crown"] = 20329976,["crossbow"] = 15886761,
  1261. ["cloud"] = 1095708,["mjolnir"] = 1279013,["diamond"] = 9756362, ["hand"] = 37241605,
  1262. ["fist"] = 65322375,["skull"] = 36869983,["totem"] = 35624068,["spikeb"] = 9982590,["dragon"] = 58430372,["fish"] = 31221717, ["coffee"] = 15929962,["spiral"] = 1051557,
  1263. ["ramen"] = 19380188,["lightning"] = 72583597,["bullet"]=2697549}---some meshids
  1264. textureids = {["cone"] = 1082804,["rainbow"] = 28488599,["fish"] = 31221733, ["coffee"] = 24181455,["monster"] = 33366441,["ramen"] = 19380153}
  1265. soundids = {["bell"] = 20005706,["flintlock"] = 13510352,["falcon"] = 1387390,['sensa'] = 4700455,
  1266. ['midas'] = 17385513;
  1267. ['spark'] = 10756118;
  1268. ['boom'] = 10730819;
  1269. ['plank'] = 10548112;
  1270. ['harmonica1'] = 33069371;
  1271. ['harmonica2'] = 33069412;
  1272. ['thump'] = 10730819;
  1273. }
  1274.  
  1275. cfn,ang,v3n,ud2n,V2 = CFrame.new,CFrame.Angles,Vector3.new,UDim2.new,Vector2.new
  1276.  
  1277. M = {["R"] = function(a,b) return math.random(a,b) end,
  1278. ["Cos"] = function(a) return math.cos(a) end,
  1279. ["Sin"] = function(a) return math.sin(a) end,
  1280. ["D"] = function(a) return math.rad(a) end
  1281. }
  1282.  
  1283. T = {["P"] = function(x,y,z,color,transparency,cancollide,anchored,parent,typee)
  1284. if typee == 'wedge' then
  1285. c = Instance.new("WedgePart",m)
  1286. elseif typee == 'seat' then
  1287. c = Instance.new("Seat",m)
  1288. elseif typee == 'vseat' then
  1289. c = Instance.new("VehicleSeat",m)
  1290. else
  1291. c = Instance.new("Part",m)
  1292. end
  1293. c.TopSurface,c.BottomSurface = 0,0
  1294. c.Locked = true
  1295. c.formFactor = "Custom"
  1296. c.Size = Vector3.new(x,y,z)
  1297. if color ~= "random" then
  1298. c.BrickColor = BrickColor.new(color)
  1299. else c.BrickColor = BrickColor:random()
  1300. end
  1301. c.Transparency = transparency
  1302. c.CanCollide = cancollide
  1303. if anchored ~= nil then c.Anchored = anchored end
  1304. if parent ~= nil then c.Parent = parent end
  1305. return c
  1306. end
  1307. ,
  1308. ["C"] = function(func) coroutine.resume(coroutine.create(func)) end
  1309. ,
  1310. ["W"] = function(part0,part1,x,y,z,rx,ry,rz,parent)
  1311. w = Instance.new("Motor",m)
  1312. if parent ~= nil then w.Parent = parent end
  1313. w.Part0,w.Part1 = part0,part1
  1314. w.C1 = CFrame.new(x,y,z) * CFrame.Angles(rx,ry,rz)
  1315. return w
  1316. end
  1317. ,
  1318. ["BG"] = function(parent)
  1319. local c = Instance.new("BodyGyro",parent)
  1320. c.P = 20e+003
  1321. c.cframe = parent.CFrame
  1322. c.maxTorque = Vector3.new(c.P,c.P,c.P)
  1323. return c
  1324. end
  1325. ,
  1326. ["BP"] = function(parent,position)
  1327. local bp = Instance.new("BodyPosition",parent)
  1328. bp.maxForce = Vector3.new()*math.huge
  1329. bp.position = position
  1330. return bp
  1331. end
  1332. ,
  1333. ["F"] = function(parent,size,heat,color,secondcolor,enabled)
  1334. f = Instance.new("Fire",parent)
  1335. f.Size = size
  1336. f.Heat = heat
  1337. if enabled ~= nil then f.Enabled = enabled end
  1338. if color ~= nil then f.Color = BrickColor.new(color).Color end
  1339. if secondcolor ~= nil then f.SecondaryColor = BrickColor.new(secondcolor).Color end
  1340. return f
  1341. end
  1342. ,
  1343. ["FM"] = function(parent,meshid,x,y,z,meshtexture)
  1344. if meshid == "cylinder" then
  1345. mesh = Instance.new("CylinderMesh",parent)
  1346. mesh.Scale = Vector3.new(x,y,z)
  1347. return mesh
  1348. elseif meshid == 'block' then
  1349. mesh = Instance.new("BlockMesh",parent)
  1350. mesh.Scale = Vector3.new(x,y,z)
  1351. return mesh
  1352. end
  1353. mesh = Instance.new("SpecialMesh",parent)
  1354. if meshid == 'wedge' then
  1355. mesh.MeshType = 'Wedge'
  1356. elseif meshid == 'sphere' then
  1357. mesh.MeshType = 3
  1358. elseif type(meshid) == "number" then
  1359. mesh.MeshId = "rbxassetid://"..meshid
  1360. else
  1361. mesh.MeshId = "rbxassetid://"..meshids[meshid]
  1362. end
  1363. mesh.Scale = Vector3.new(x,y,z)
  1364. if meshtexture then
  1365. if type(meshtexture) == "number" then mesh.TextureId = "rbxassetid://"..meshtexture else
  1366. mesh.TextureId = "rbxassetid://"..textureids[meshtexture] end
  1367. end
  1368. return mesh
  1369. end,
  1370. ["Dec"] = function(parent,face,id,transparency)
  1371. c = Instance.new("Decal",parent)
  1372. c.Face = face
  1373. c.Texture = id
  1374. if transparency then c.Transparency = transparency end
  1375. return c
  1376. end,
  1377. ["S"] = function(id,pitch,volume,parent)
  1378. cur = nil
  1379. found = false
  1380. if type(id) == 'string' then
  1381. for i,v in pairs(char.Head:children()) do
  1382. if v:IsA("Sound") and v.Name == id and not found then
  1383. cur = v
  1384. if parent then cur = v:Clone() cur.Parent = parent end
  1385. cur.Pitch = pitch
  1386. if volume then cur.Volume = volume end
  1387. cur:Play()
  1388. found = true
  1389. return cur
  1390. end
  1391. end
  1392. elseif type(id) == 'number' then
  1393. local a = char.Head:FindFirstChild('exteo')
  1394. a.SoundId = 'rbxassetid://'..id
  1395. a.Pitch = pitch
  1396. if volume then a.Volume = volume end
  1397. a:Play()
  1398. return a
  1399. end
  1400. end
  1401. }
  1402.  
  1403. function damage(hit,amount,delay)
  1404. for i,v in pairs(hit:children()) do
  1405. if v:IsA("Humanoid") and v.Parent ~= char then
  1406. if delay then
  1407. local found = v:FindFirstChild('tag')
  1408. if not found then
  1409. local a = Instance.new("StringValue",v)
  1410. a.Name = 'tag ur it'
  1411. game:service'Debris':AddItem(a,delay)
  1412. v.Health = v.Health - amount
  1413. end
  1414. else v.Health = v.Health - amount
  1415. end
  1416. end
  1417. end
  1418. end
  1419.  
  1420. function lightning(startpos,endpos,times,offse,livetime,col,dmg)
  1421. local curpos = startpos
  1422. for i = 1,times do
  1423. local mag = (startpos-endpos).magnitude
  1424. local offs = {-offse,offse}
  1425. local offset = v3n(offs[M.R(1,2)],offs[M.R(1,2)],offs[M.R(1,2)])
  1426. laz = T.P(.1,.1,mag/times,col,0,false,true,m)
  1427. laz.Parent=m
  1428. laz.Transparency=.5
  1429. if dmg then laz.Touched:connect(function(hit) dmgstart(laz,5) end) end
  1430. local apos = (cfn(curpos,endpos)*cfn(0,0,-mag/times)).p+offset
  1431. if times == i then
  1432. local mag2 = (curpos-endpos).magnitude
  1433. laz.Size = v3n(.1,.1,mag2)
  1434. laz.CFrame = cfn(curpos,endpos)*cfn(0,0,-mag2/2)
  1435. else
  1436. laz.CFrame = cfn(curpos,apos)*cfn(0,0,-mag/times/2)
  1437. end
  1438. curpos = laz.CFrame*cfn(0,0,-mag/times/2).p game:service'Debris':AddItem(laz,livetime)
  1439. pcall(function()
  1440. dmgstop()
  1441. end)
  1442. end
  1443. end
  1444.  
  1445. function attackone()
  1446. if attack==false then
  1447. attack=true
  1448. for i=0,1,0.1 do
  1449. swait()
  1450. RootJoint.C0=clerp(RootJoint.C0,RootCF*angles(math.rad(0),math.rad(0),math.rad(-90)),.5)
  1451. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(-5),math.rad(90)),.5)
  1452. RW.C0=clerp(RW.C0,cf(.5,0.5,-1)*angles(math.rad(-90),math.rad(180),math.rad(90))*angles(math.rad(50),math.rad(0),math.rad(0)),.3)
  1453. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(50),math.rad(-20),math.rad(-30)),.3)
  1454. 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)
  1455. 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)
  1456. end
  1457. for i=0,1,0.3 do
  1458. swait()
  1459. RootJoint.C0=clerp(RootJoint.C0,RootCF*angles(math.rad(0),math.rad(0),math.rad(-90)),.5)
  1460. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(-5),math.rad(90)),.5)
  1461. RW.C0=clerp(RW.C0,cf(.5,0.5,-1)*angles(math.rad(-90),math.rad(-300),math.rad(90))*angles(math.rad(50),math.rad(0),math.rad(0)),.3)
  1462. --LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(50),math.rad(-20),math.rad(130)),.3)
  1463. 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)
  1464. 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)
  1465. end
  1466. attack=false
  1467. end
  1468. end
  1469.  
  1470. mouse.Button1Down:connect(function()
  1471. if attack==false then
  1472. attackone()
  1473. end
  1474. end)
  1475. --[[mouse.KeyDown:connect(function(k)
  1476. k=k:lower()
  1477. if k=='q' then
  1478. if attack==false then
  1479. Bash()
  1480. end
  1481. elseif k=='e' then
  1482. if attack==false then
  1483. Impulse()
  1484. end
  1485. end
  1486. end)]]--
  1487.  
  1488. local sine = 0
  1489. local change = 1
  1490. local val = 0
  1491.  
  1492. while true do
  1493. swait()
  1494. sine = sine + change
  1495. local torvel=(RootPart.Velocity*Vector3.new(1,0,1)).magnitude
  1496. local velderp=RootPart.Velocity.y
  1497. hitfloor,posfloor=rayCast(RootPart.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,4,Character)
  1498. if equipped==true or equipped==false then
  1499. if attack==false then
  1500. idle=idle+1
  1501. else
  1502. idle=0
  1503. end
  1504. if idle>=500 then
  1505. if attack==false then
  1506. --Sheath()
  1507. end
  1508. end
  1509. if RootPart.Velocity.y > 1 and hitfloor==nil then
  1510. Anim="Jump"
  1511. if attack==false then
  1512. Neck.C0=clerp(Neck.C0,necko*euler(-0.2,0,0),.3)
  1513. Neck.C1=clerp(Neck.C1,necko2*euler(0,0,0),.3)
  1514. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,0),.3)
  1515. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-.5,0,0.5),.3)
  1516. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1517. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-.5,0,-0.5),.3)
  1518. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1519. RH.C0=clerp(RH.C0,cf(1,-1,-.3)*euler(-0.5,1.57,0)*euler(-.2,0,0),.2)
  1520. LH.C0=clerp(LH.C0,cf(-1,-1,-.3)*euler(-0.5,-1.57,0)*euler(-.2,0,0),.2)
  1521. Handleweld.C0=clerp(Handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  1522. end
  1523. elseif RootPart.Velocity.y < -1 and hitfloor==nil then
  1524. Anim="Fall"
  1525. if attack==false then
  1526. Neck.C0=clerp(Neck.C0,necko*euler(0.4,0,0),.3)
  1527. Neck.C1=clerp(Neck.C1,necko2*euler(0,0,0),.3)
  1528. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,0),.3)
  1529. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(0.3,0,0.2),.3)
  1530. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1531. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(0.3,0,-0.2),.3)
  1532. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1533. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0.4,1.57,0),.2)
  1534. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(-0.2,-1.57,0),.2)
  1535. Handleweld.C0=clerp(Handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  1536. end
  1537. elseif torvel<1 and hitfloor~=nil then
  1538. Anim="Idle"
  1539. if attack==false then
  1540. RootJoint.C0=clerp(RootJoint.C0,RootCF*angles(math.rad(10),math.rad(0),math.rad(-45)),.3)
  1541. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-10),math.rad(-5),math.rad(45)),.3)
  1542. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-35),math.rad(-25),math.rad(15)),.3)
  1543. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(35),math.rad(-20),math.rad(-30)),.3)
  1544. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2),math.rad(0),math.rad(0)),.3)
  1545. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(30),math.rad(-90),math.rad(0))*angles(math.rad(-20),math.rad(20),math.rad(10)),.3)
  1546. Handleweld.C0=clerp(Handleweld.C0,cf(0,0,0)*angles(math.rad(-15),math.rad(0),math.rad(0)),.3)
  1547. Handleweld.C0=clerp(Handleweld.C0,cf(0,0,0)*angles(math.rad(-15),math.rad(0),math.rad(0)),.3)
  1548. end
  1549. elseif torvel>2 and torvel<22 and hitfloor~=nil then
  1550. local idleanim=0
  1551. Anim="Walk"
  1552. if attack==false then
  1553. change=3
  1554. --[[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)
  1555. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-30),math.rad(0),math.rad(0)),.3)
  1556. 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)
  1557. 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)
  1558. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0)),.3)
  1559. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0)),.3)
  1560. Handleweld.C0=clerp(Handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)]]--
  1561. RootJoint.C0=clerp(RootJoint.C0,RootCF*angles(math.rad(30),math.rad(0),math.rad(-45)),.3)
  1562. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(-20),math.rad(45)),.3)
  1563. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-50),math.rad(-40),math.rad(15)),.3)
  1564. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(50),math.rad(-20),math.rad(-30)),.3)
  1565. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2),math.rad(0),math.rad(0)),.3)
  1566. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(30),math.rad(-90),math.rad(0))*angles(math.rad(-20),math.rad(20),math.rad(10)),.3)
  1567. Handleweld.C0=clerp(Handleweld.C0,cf(0,-.5,-.7)*angles(math.rad(-75),math.rad(0),math.rad(0)),.3)
  1568. end
  1569. elseif torvel>=22 and hitfloor~=nil then
  1570. Anim="Run"
  1571. if attack==false then
  1572. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(45),math.rad(0),math.rad(0)),.3)
  1573. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-40),math.rad(0),math.rad(0)),.3)
  1574. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-60),math.rad(0),math.rad(0)),.3)
  1575. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-60),math.rad(0),math.rad(0)),.3)
  1576. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0)),.3)
  1577. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0)),.3)
  1578. Handleweld.C0=clerp(Handleweld.C0,cf(0,-.5,-.7)*angles(math.rad(-75),math.rad(0),math.rad(0)),.3)
  1579. end
  1580. end
  1581. end
  1582. end
  1583. --156434034
Add Comment
Please, Sign In to add comment