Dark_EccentricYT

Untitled

Nov 26th, 2016
588
1
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 86.90 KB | None | 1 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. function dmgstart(dmg,what)
  468. hitcon = what.Touched:connect(function(hit)
  469. local hum = hit.Parent:FindFirstChild("Humanoid")
  470. if hum and not hum:IsDescendantOf(Character) then
  471. hum:TakeDamage(dmg)
  472. end
  473. end)
  474. end
  475.  
  476. function dmgstop()
  477. hitcon:disconnect()
  478. end
  479.  
  480. user=game.Players.localPlayer
  481. char=user.Character
  482. mouse=user:GetMouse()
  483. m=Instance.new('Model',char)
  484.  
  485. blocks = {}
  486. function Part(Type, Parent, Name, Transparency, Reflectance, Size, CFrame, Material, BrickColor3)
  487. prt = Instance.new(Type,Parent)
  488. prt.Name = Name
  489. prt.FormFactor = "Custom"
  490. prt.Transparency = Transparency
  491. prt.Reflectance = Reflectance
  492. prt.Size = Size
  493. prt.CFrame = CFrame
  494. prt.Material = Material
  495. prt.TopSurface = 'SmoothNoOutlines'
  496. prt.BottomSurface = 'SmoothNoOutlines'
  497. prt.LeftSurface = 'SmoothNoOutlines'
  498. prt.RightSurface = 'SmoothNoOutlines'
  499. prt.FrontSurface = 'SmoothNoOutlines'
  500. prt.BackSurface = 'SmoothNoOutlines'
  501. prt.BrickColor = BrickColor.new(tostring(BrickColor3))
  502. prt.Anchored = false
  503. prt.CanCollide = false
  504. table.insert(blocks, prt)
  505. return #blocks
  506. end
  507.  
  508. function weldBetween(a, b)
  509. weld = Instance.new("ManualWeld")
  510. weld.Part0 = a
  511. weld.Part1 = b
  512. weld.C0 = CFrame.new()
  513. weld.C1 = b.CFrame:inverse() * a.CFrame
  514. weld.Parent = a
  515. return weld;
  516. end
  517.  
  518. local function CFrameFromTopBack(at, top, back)
  519. local right = top:Cross(back)
  520. return CFrame.new(at.x, at.y, at.z,
  521. right.x, top.x, back.x,
  522. right.y, top.y, back.y,
  523. right.z, top.z, back.z)
  524. end
  525.  
  526. function Triangle(a, b, c)
  527. local edg1 = (c-a):Dot((b-a).unit)
  528. local edg2 = (a-b):Dot((c-b).unit)
  529. local edg3 = (b-c):Dot((a-c).unit)
  530. if edg1 <= (b-a).magnitude and edg1 >= 0 then
  531. a, b, c = a, b, c
  532. elseif edg2 <= (c-b).magnitude and edg2 >= 0 then
  533. a, b, c = b, c, a
  534. elseif edg3 <= (a-c).magnitude and edg3 >= 0 then
  535. a, b, c = c, a, b
  536. else
  537. assert(false, "unreachable")
  538. end
  539.  
  540. local len1 = (c-a):Dot((b-a).unit)
  541. local len2 = (b-a).magnitude - len1
  542. local width = (a + (b-a).unit*len1 - c).magnitude
  543.  
  544. local maincf = CFrameFromTopBack(a, (b-a):Cross(c-b).unit, -(b-a).unit)
  545.  
  546. local list = {}
  547.  
  548. if len1 > 0.01 then
  549. local w1 = Instance.new('WedgePart', m)
  550. game:GetService("Debris"):AddItem(w1,5)
  551. w1.Material = "SmoothPlastic"
  552. w1.FormFactor = 'Custom'
  553. w1.BrickColor = BrickColor.new("Toothpaste")
  554. w1.Transparency = 0
  555. w1.Reflectance = 0
  556. w1.Material = "SmoothPlastic"
  557. w1.CanCollide = false
  558. NoOutline(w1)
  559. local sz = Vector3.new(0.2, width, len1)
  560. w1.Size = sz
  561. local sp = Instance.new("SpecialMesh",w1)
  562. sp.MeshType = "Wedge"
  563. sp.Scale = Vector3.new(0,1,1) * sz/w1.Size
  564. w1:BreakJoints()
  565. w1.Anchored = true
  566. w1.Parent = workspace
  567. w1.Transparency = 0.7
  568. table.insert(Effects,{w1,"Disappear",.01})
  569. w1.CFrame = maincf*CFrame.Angles(math.pi,0,math.pi/2)*CFrame.new(0,width/2,len1/2)
  570. table.insert(list,w1)
  571. end
  572.  
  573. if len2 > 0.01 then
  574. local w2 = Instance.new('WedgePart', m)
  575. game:GetService("Debris"):AddItem(w2,5)
  576. w2.Material = "SmoothPlastic"
  577. w2.FormFactor = 'Custom'
  578. w2.BrickColor = BrickColor.new("Toothpaste")
  579. w2.Transparency = 0
  580. w2.Reflectance = 0
  581. w2.Material = "SmoothPlastic"
  582. w2.CanCollide = false
  583. NoOutline(w2)
  584. local sz = Vector3.new(0.2, width, len2)
  585. w2.Size = sz
  586. local sp = Instance.new("SpecialMesh",w2)
  587. sp.MeshType = "Wedge"
  588. sp.Scale = Vector3.new(0,1,1) * sz/w2.Size
  589. w2:BreakJoints()
  590. w2.Anchored = true
  591. w2.Parent = workspace
  592. w2.Transparency = 0.7
  593. table.insert(Effects,{w2,"Disappear",.01})
  594. w2.CFrame = maincf*CFrame.Angles(math.pi,math.pi,-math.pi/2)*CFrame.new(0,width/2,-len1 - len2/2)
  595. table.insert(list,w2)
  596. end
  597. return unpack(list)
  598. end
  599.  
  600. function NoOutline(Part)
  601. Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
  602. end
  603.  
  604. local Handle = Instance.new("Part", m)
  605. Handle:BreakJoints()
  606. Handle.TopSurface = "Smooth"
  607. Handle.Material = "SmoothPlastic"
  608. Handle.Name = 'Handle'
  609. Handle.Transparency = '0'
  610. Handle.BottomSurface = "Smooth"
  611. Handle.FormFactor = "Custom" Handle.CanCollide = false
  612. Handle.BrickColor = BrickColor.new("Really black")
  613. Handle.Size = Vector3.new(0.347999871, 0.696000099, 0.232000008)
  614. local Handleweld = Instance.new("ManualWeld")
  615. Handleweld.Part0 = Character["Right Arm"]
  616. Handleweld.Part1 = Handle Handleweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  617. Handleweld.C1 = CFrame.new(0.987845421, -0.306541443, -0.0906600952, -1.08667452e-020, 0.999992371, -2.05761918e-011, 1.13746401e-010, -2.04624998e-011, -1, -0.99999249, -9.1779009e-021, -1.14058374e-010)
  618. Handleweld.Parent = Character["Right Arm"]
  619.  
  620. local HandleMesh = Instance.new("CylinderMesh",Handle)
  621. HandleMesh.Name = "Mesh"
  622. HandleMesh.Offset = Vector3.new(0, 0, 0)
  623. HandleMesh.Scale = Vector3.new(1, 1, 1)
  624.  
  625. local EnergyBlade = Instance.new("Part", m)
  626. EnergyBlade:BreakJoints()
  627. EnergyBlade.TopSurface = "Smooth"
  628. EnergyBlade.Material = "SmoothPlastic"
  629. EnergyBlade.Transparency = '0.30000001192093'
  630. EnergyBlade.Name = 'EnergyBlade'
  631. EnergyBlade.BottomSurface = "Smooth"
  632. EnergyBlade.FormFactor = "Custom" EnergyBlade.CanCollide = false
  633. EnergyBlade.BrickColor = BrickColor.new("Toothpaste")
  634. EnergyBlade.Size = Vector3.new(0.347999871, 2.204, 0.200000003)
  635. local EnergyBladeweld = Instance.new("ManualWeld")
  636. EnergyBladeweld.Part0 = Handle EnergyBladeweld.Part1 = EnergyBlade EnergyBladeweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  637. EnergyBladeweld.C1 = CFrame.new(-0.115883589, -2.02999496, -0.0057220459, 0.999984741, -2.81582917e-012, -7.16509824e-021, 3.0434856e-012, 1, -1.32355987e-010, 1.59434039e-020, 1.32983319e-010, 0.99998498)
  638. EnergyBladeweld.Parent = EnergyBlade
  639. local EnergyBladeMesh = Instance.new("BlockMesh",EnergyBlade)
  640. EnergyBladeMesh.Name = "Mesh"
  641. EnergyBladeMesh.Offset = Vector3.new(0, 0, 0)
  642. EnergyBladeMesh.Scale = Vector3.new(1, 1, 0.579999983)
  643.  
  644. local EnergyBlade = Instance.new("Part", m)
  645. EnergyBlade:BreakJoints()
  646. EnergyBlade.TopSurface = "Smooth"
  647. EnergyBlade.Material = "SmoothPlastic"
  648. EnergyBlade.Transparency = '0.5'
  649. EnergyBlade.Name = 'EnergyBlade'
  650. EnergyBlade.BottomSurface = "Smooth"
  651. EnergyBlade.FormFactor = "Custom" EnergyBlade.CanCollide = false
  652. EnergyBlade.BrickColor = BrickColor.new("Toothpaste")
  653. EnergyBlade.Size = Vector3.new(0.463999867, 0.232000053, 0.200000003)
  654. local EnergyBladeweld = Instance.new("ManualWeld")
  655. EnergyBladeweld.Part0 = Handle EnergyBladeweld.Part1 = EnergyBlade EnergyBladeweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  656. EnergyBladeweld.C1 = CFrame.new(-0.637008905, -2.55199051, -0.00542831421, 0.999984741, -3.22502476e-011, 1.42107378e-014, 3.24776907e-011, 1, 4.27509764e-011, -7.10536002e-015, -4.21135973e-011, 0.99998498)
  657. EnergyBladeweld.Parent = EnergyBlade
  658. local EnergyBladeMesh = Instance.new("BlockMesh",EnergyBlade)
  659. EnergyBladeMesh.Name = "Mesh"
  660. EnergyBladeMesh.Offset = Vector3.new(0, 0, 0)
  661. EnergyBladeMesh.Scale = Vector3.new(1, 1, 0.579999983)
  662.  
  663. local EnergyBlade = Instance.new("Part", m)
  664. EnergyBlade:BreakJoints()
  665. EnergyBlade.TopSurface = "Smooth"
  666. EnergyBlade.Material = "SmoothPlastic"
  667. EnergyBlade.Transparency = '0.5'
  668. EnergyBlade.Name = 'EnergyBlade'
  669. EnergyBlade.BottomSurface = "Smooth"
  670. EnergyBlade.FormFactor = "Custom" EnergyBlade.CanCollide = false
  671. EnergyBlade.BrickColor = BrickColor.new("Cyan")
  672. EnergyBlade.Size = Vector3.new(0.347999871, 2.204, 0.200000003)
  673. local EnergyBladeweld = Instance.new("ManualWeld")
  674. EnergyBladeweld.Part0 = Handle EnergyBladeweld.Part1 = EnergyBlade EnergyBladeweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  675. EnergyBladeweld.C1 = CFrame.new(0.232154608, -2.02999496, -0.00569915771, 0.999984741, -3.41856231e-012, -7.23384551e-021, 3.6462118e-012, 1, -8.98658647e-011, 1.50691127e-020, 9.04928563e-011, 0.99998498)
  676. EnergyBladeweld.Parent = EnergyBlade
  677. local EnergyBladeMesh = Instance.new("BlockMesh",EnergyBlade)
  678. EnergyBladeMesh.Name = "Mesh"
  679. EnergyBladeMesh.Offset = Vector3.new(0, 0, 0)
  680. EnergyBladeMesh.Scale = Vector3.new(1, 1, 0.579999983)
  681.  
  682. local EnergyBlade = Instance.new("Part", m)
  683. EnergyBlade:BreakJoints()
  684. EnergyBlade.TopSurface = "Smooth"
  685. EnergyBlade.Material = "SmoothPlastic"
  686. EnergyBlade.Transparency = '0.5'
  687. EnergyBlade.Name = 'EnergyBlade'
  688. EnergyBlade.BottomSurface = "Smooth"
  689. EnergyBlade.FormFactor = "Custom" EnergyBlade.CanCollide = false
  690. EnergyBlade.BrickColor = BrickColor.new("Toothpaste")
  691. EnergyBlade.Size = Vector3.new(0.231999859, 0.232000053, 0.200000003)
  692. local EnergyBladeweld = Instance.new("ManualWeld")
  693. EnergyBladeweld.Part0 = Handle EnergyBladeweld.Part1 = EnergyBlade EnergyBladeweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  694. EnergyBladeweld.C1 = CFrame.new(-0.405785561, -3.01598358, -0.00569915771, 0.999984741, -6.75242154e-012, 4.26322389e-014, 6.98006149e-012, 1, -1.3368967e-010, -3.55268454e-014, 1.34328382e-010, 0.99998498)
  695. EnergyBladeweld.Parent = EnergyBlade
  696. local EnergyBladeMesh = Instance.new("BlockMesh",EnergyBlade)
  697. EnergyBladeMesh.Name = "Mesh"
  698. EnergyBladeMesh.Offset = Vector3.new(0, 0, 0)
  699. EnergyBladeMesh.Scale = Vector3.new(1, 1, 0.579999983)
  700.  
  701. local EnergyBlade = Instance.new("Part", m)
  702. EnergyBlade:BreakJoints()
  703. EnergyBlade.TopSurface = "Smooth"
  704. EnergyBlade.Material = "SmoothPlastic"
  705. EnergyBlade.Transparency = '0.5'
  706. EnergyBlade.Name = 'EnergyBlade'
  707. EnergyBlade.BottomSurface = "Smooth"
  708. EnergyBlade.FormFactor = "Custom" EnergyBlade.CanCollide = false
  709. EnergyBlade.BrickColor = BrickColor.new("Toothpaste")
  710. EnergyBlade.Size = Vector3.new(0.231999859, 0.232000053, 0.200000003)
  711. local EnergyBladeweld = Instance.new("ManualWeld")
  712. EnergyBladeweld.Part0 = Handle EnergyBladeweld.Part1 = EnergyBlade EnergyBladeweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  713. EnergyBladeweld.C1 = CFrame.new(-0.405785561, -2.08798981, -0.00569915771, 0.999984741, -5.92108654e-012, 4.26322389e-014, 6.14873343e-012, 1, -1.31955946e-010, -3.55268488e-014, 1.32594657e-010, 0.99998498)
  714. EnergyBladeweld.Parent = EnergyBlade
  715. local EnergyBladeMesh = Instance.new("BlockMesh",EnergyBlade)
  716. EnergyBladeMesh.Name = "Mesh"
  717. EnergyBladeMesh.Offset = Vector3.new(0, 0, 0)
  718. EnergyBladeMesh.Scale = Vector3.new(1, 1, 0.579999983)
  719.  
  720. local EnergyBlade = Instance.new("Part", m)
  721. EnergyBlade:BreakJoints()
  722. EnergyBlade.TopSurface = "Smooth"
  723. EnergyBlade.Material = "SmoothPlastic"
  724. EnergyBlade.Transparency = '0.5'
  725. EnergyBlade.Name = 'EnergyBlade'
  726. EnergyBlade.BottomSurface = "Smooth"
  727. EnergyBlade.FormFactor = "Custom" EnergyBlade.CanCollide = false
  728. EnergyBlade.BrickColor = BrickColor.new("Cyan")
  729. EnergyBlade.Size = Vector3.new(0.463999867, 0.580000103, 0.200000003)
  730. local EnergyBladeweld = Instance.new("ManualWeld")
  731. EnergyBladeweld.Part0 = Handle EnergyBladeweld.Part1 = EnergyBlade EnergyBladeweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  732. EnergyBladeweld.C1 = CFrame.new(-0.0576572418, -3.42163086, -0.00572967529, 0.999984741, -3.41856231e-012, -7.23384551e-021, 3.6462118e-012, 1, -8.98658647e-011, 1.50691127e-020, 9.04928563e-011, 0.99998498)
  733. EnergyBladeweld.Parent = EnergyBlade
  734. local EnergyBladeMesh = Instance.new("BlockMesh",EnergyBlade)
  735. EnergyBladeMesh.Name = "Mesh"
  736. EnergyBladeMesh.Offset = Vector3.new(0, 0, 0)
  737. EnergyBladeMesh.Scale = Vector3.new(1, 1, 0.579999983)
  738.  
  739. local Hitbox = Instance.new("Part", m)
  740. Hitbox:BreakJoints()
  741. Hitbox.TopSurface = "Smooth"
  742. Hitbox.Material = "SmoothPlastic"
  743. Hitbox.Transparency = '1'
  744. Hitbox.Name = 'Hitbox'
  745. Hitbox.BottomSurface = "Smooth"
  746. Hitbox.FormFactor = "Custom" Hitbox.CanCollide = false
  747. Hitbox.BrickColor = BrickColor.new("Toothpaste")
  748. Hitbox.Size = Vector3.new(1.39199984, 2.78399992, 0.200000003)
  749. local Hitboxweld = Instance.new("ManualWeld")
  750. Hitboxweld.Part0 = Handle Hitboxweld.Part1 = Hitbox Hitboxweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  751. Hitboxweld.C1 = CFrame.new(-0.173881292, -2.78398895, -0.0057220459, 0.999984741, -2.81582917e-012, -7.16509824e-021, 3.0434856e-012, 1, -1.32355987e-010, 1.59434039e-020, 1.32983319e-010, 0.99998498)
  752. Hitboxweld.Parent = Hitbox
  753. local HitboxMesh = Instance.new("BlockMesh",Hitbox)
  754. HitboxMesh.Name = "Mesh"
  755. HitboxMesh.Offset = Vector3.new(0, 0, 0)
  756. HitboxMesh.Scale = Vector3.new(1, 1, 0.579999983)
  757.  
  758. local Part = Instance.new("Part", m)
  759. Part:BreakJoints()
  760. Part.TopSurface = "Smooth"
  761. Part.Material = "SmoothPlastic"
  762. Part.Transparency = '0.5'
  763. Part.Name = 'Part'
  764. Part.BottomSurface = "Smooth"
  765. Part.FormFactor = "Custom" Part.CanCollide = false
  766. Part.BrickColor = BrickColor.new("Cyan")
  767. Part.Size = Vector3.new(0.347999871, 0.232000083, 0.463999987)
  768. local Partweld = Instance.new("ManualWeld")
  769. Partweld.Part0 = Handle Partweld.Part1 = Part Partweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  770. Partweld.C1 = CFrame.new(0.000555276871, 1.27599716, 0.000175476074, 0.999984741, -9.42173162e-012, 6.34746155e-020, 9.64937852e-012, 1, 7.94176322e-011, -5.70437063e-020, -7.87930068e-011, 0.99998498)
  771. Partweld.Parent = Part
  772. local PartMesh = Instance.new("CylinderMesh",Part)
  773. PartMesh.Name = "Mesh"
  774. PartMesh.Offset = Vector3.new(0, 0, 0)
  775. PartMesh.Scale = Vector3.new(1, 1, 1)
  776.  
  777. local Part = Instance.new("Part", m)
  778. Part:BreakJoints()
  779. Part.TopSurface = "Smooth"
  780. Part.Material = "SmoothPlastic"
  781. Part.Transparency = '0'
  782. Part.Name = 'Part'
  783. Part.BottomSurface = "Smooth"
  784. Part.FormFactor = "Custom" Part.CanCollide = false
  785. Part.BrickColor = BrickColor.new("Cyan")
  786. Part.Size = Vector3.new(0.347999871, 0.348000079, 0.232000008)
  787. local Partweld = Instance.new("ManualWeld")
  788. Partweld.Part0 = Handle Partweld.Part1 = Part Partweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  789. Partweld.C1 = CFrame.new(0.000479221344, 0.521999359, 0.000118255615, 0.999984741, 1.34131739e-007, -2.7346955e-018, -1.34129465e-007, 1, 7.85025447e-011, 1.32724314e-017, -7.78780651e-011, 0.99998498)
  790. Partweld.Parent = Part
  791. local PartMesh = Instance.new("CylinderMesh",Part)
  792. PartMesh.Name = "Mesh"
  793. PartMesh.Offset = Vector3.new(0, 0, 0)
  794. PartMesh.Scale = Vector3.new(1, 1, 1)
  795.  
  796. local Part = Instance.new("Part", m)
  797. Part:BreakJoints()
  798. Part.TopSurface = "Smooth"
  799. Part.Material = "SmoothPlastic"
  800. Part.Transparency = '0'
  801. Part.Name = 'Part'
  802. Part.BottomSurface = "Smooth"
  803. Part.FormFactor = "Custom" Part.CanCollide = false
  804. Part.BrickColor = BrickColor.new("Really black")
  805. Part.Size = Vector3.new(0.200000003, 0.580000043, 0.232000008)
  806. local Partweld = Instance.new("ManualWeld")
  807. Partweld.Part0 = Handle Partweld.Part1 = Part Partweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  808. Partweld.C1 = CFrame.new(0.465114594, 0.048664093, -0.00578308105, 0.583923936, 0.811801791, 5.05349096e-011, -0.811789036, 0.583932638, 6.63551367e-011, 2.43582585e-011, -7.91467031e-011, 0.99998498)
  809. Partweld.Parent = Part
  810. local PartMesh = Instance.new("CylinderMesh",Part)
  811. PartMesh.Name = "Mesh"
  812. PartMesh.Offset = Vector3.new(0, 0, 0)
  813. PartMesh.Scale = Vector3.new(0.579999983, 1, 1)
  814.  
  815. local Part = Instance.new("Part", m)
  816. Part:BreakJoints()
  817. Part.TopSurface = "Smooth"
  818. Part.Material = "SmoothPlastic"
  819. Part.Transparency = '0'
  820. Part.Name = 'Part'
  821. Part.BottomSurface = "Smooth"
  822. Part.FormFactor = "Custom" Part.CanCollide = false
  823. Part.BrickColor = BrickColor.new("Really black")
  824. Part.Size = Vector3.new(0.347999871, 0.348000079, 0.232000008)
  825. local Partweld = Instance.new("ManualWeld")
  826. Partweld.Part0 = Handle Partweld.Part1 = Part Partweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  827. Partweld.C1 = CFrame.new(0.000507593155, 0.869998932, 0.00012588501, 0.999984503, 1.34133558e-007, -2.68759253e-018, -1.34131255e-007, 1, 8.30204516e-011, 1.38314673e-017, -8.23960414e-011, 0.99998498)
  828. Partweld.Parent = Part
  829. local PartMesh = Instance.new("CylinderMesh",Part)
  830. PartMesh.Name = "Mesh"
  831. PartMesh.Offset = Vector3.new(0, 0, 0)
  832. PartMesh.Scale = Vector3.new(1, 1, 1)
  833.  
  834. local Part = Instance.new("Part", m)
  835. Part:BreakJoints()
  836. Part.TopSurface = "Smooth"
  837. Part.Material = "SmoothPlastic"
  838. Part.Transparency = '0'
  839. Part.Name = 'Part'
  840. Part.BottomSurface = "Smooth"
  841. Part.FormFactor = "Custom" Part.CanCollide = false
  842. Part.BrickColor = BrickColor.new("Cyan")
  843. Part.Size = Vector3.new(0.347999871, 0.348000079, 0.232000008)
  844. local Partweld = Instance.new("ManualWeld")
  845. Partweld.Part0 = Handle Partweld.Part1 = Part Partweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  846. Partweld.C1 = CFrame.new(-4.72068787e-005, -0.521999359, -1.52587891e-005, 0.999984741, 1.02261602e-012, -5.88345014e-021, -7.94905808e-013, 1, -1.77614451e-011, 1.39408044e-020, 1.8387368e-011, 0.99998498)
  847. Partweld.Parent = Part
  848. local PartMesh = Instance.new("CylinderMesh",Part)
  849. PartMesh.Name = "Mesh"
  850. PartMesh.Offset = Vector3.new(0, 0, 0)
  851. PartMesh.Scale = Vector3.new(1, 1, 1)
  852.  
  853. local Part = Instance.new("Part", m)
  854. Part:BreakJoints()
  855. Part.TopSurface = "Smooth"
  856. Part.Material = "SmoothPlastic"
  857. Part.Transparency = '0'
  858. Part.Name = 'Part'
  859. Part.BottomSurface = "Smooth"
  860. Part.FormFactor = "Custom" Part.CanCollide = false
  861. Part.BrickColor = BrickColor.new("Really black")
  862. Part.Size = Vector3.new(0.200000003, 0.811999977, 0.34799999)
  863. local Partweld = Instance.new("ManualWeld")
  864. Partweld.Part0 = Handle Partweld.Part1 = Part Partweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  865. Partweld.C1 = CFrame.new(0.464137435, -1.33398819, -0.00573730469, 0.999984741, 4.12598775e-012, -6.37332645e-021, -3.89826366e-012, 1, -1.18157345e-010, 7.10538797e-015, 1.18781679e-010, 0.99998498)
  866. Partweld.Parent = Part
  867. local PartMesh = Instance.new("BlockMesh",Part)
  868. PartMesh.Name = "Mesh"
  869. PartMesh.Offset = Vector3.new(0, 0, 0)
  870. PartMesh.Scale = Vector3.new(0.579999983, 1, 1)
  871.  
  872. local Part = Instance.new("Part", m)
  873. Part:BreakJoints()
  874. Part.TopSurface = "Smooth"
  875. Part.Material = "SmoothPlastic"
  876. Part.Transparency = '0'
  877. Part.Name = 'Part'
  878. Part.BottomSurface = "Smooth"
  879. Part.FormFactor = "Custom" Part.CanCollide = false
  880. Part.BrickColor = BrickColor.new("Really black")
  881. Part.Size = Vector3.new(0.34799999, 0.34799999, 0.34799999)
  882. local Partweld = Instance.new("ManualWeld")
  883. Partweld.Part0 = Handle Partweld.Part1 = Part Partweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  884. Partweld.C1 = CFrame.new(0.000649213791, 1.37459946, 0.000183105469, 0.999984741, -5.89520099e-012, -2.52691724e-018, 6.1229008e-012, 1, 8.39504716e-011, 2.53063356e-018, -8.33259087e-011, 0.99998498)
  885. Partweld.Parent = Part
  886. local PartMesh = Instance.new("SpecialMesh",Part)
  887. PartMesh.MeshId = ""
  888. PartMesh.MeshType = Enum.MeshType.Sphere PartMesh.Name = "Mesh"
  889. PartMesh.Offset = Vector3.new(0, 0, 0)
  890. PartMesh.Scale = Vector3.new(1, 1, 1)
  891.  
  892. local Part = Instance.new("Part", m)
  893. Part:BreakJoints()
  894. Part.TopSurface = "Smooth"
  895. Part.Material = "SmoothPlastic"
  896. Part.Transparency = '0'
  897. Part.Name = 'Part'
  898. Part.BottomSurface = "Smooth"
  899. Part.FormFactor = "Custom" Part.CanCollide = false
  900. Part.BrickColor = BrickColor.new("Really black")
  901. Part.Size = Vector3.new(0.200000003, 0.200000003, 0.200000003)
  902. local Partweld = Instance.new("ManualWeld")
  903. Partweld.Part0 = Handle Partweld.Part1 = Part Partweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  904. Partweld.C1 = CFrame.new(0.464072108, 0.243598938, -0.00573730469, 0.999984741, -1.23941309e-011, -1.74296799e-018, 1.26217274e-011, 1, 9.18617266e-011, 1.74603993e-018, -9.12373926e-011, 0.99998498)
  905. Partweld.Parent = Part
  906. local PartMesh = Instance.new("SpecialMesh",Part)
  907. PartMesh.MeshId = ""
  908. PartMesh.MeshType = Enum.MeshType.Sphere PartMesh.Name = "Mesh"
  909. PartMesh.Offset = Vector3.new(0, 0, 0)
  910. PartMesh.Scale = Vector3.new(0.579999983, 0.579999983, 0.579999983)
  911.  
  912. local Part = Instance.new("Part", m)
  913. Part:BreakJoints()
  914. Part.TopSurface = "Smooth"
  915. Part.Material = "SmoothPlastic"
  916. Part.Transparency = '0'
  917. Part.Name = 'Part'
  918. Part.BottomSurface = "Smooth"
  919. Part.FormFactor = "Custom" Part.CanCollide = false
  920. Part.BrickColor = BrickColor.new("Really black")
  921. Part.Size = Vector3.new(1.04399991, 0.200000003, 0.34799999)
  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(7.74860382e-005, -0.869998932, -0.00573348999, 0.999984503, -1.97238059e-015, -2.50205131e-021, 2.29675653e-013, 1, -8.74495337e-011, 1.05936116e-020, 8.80765114e-011, 0.99998498)
  925. Partweld.Parent = Part
  926. local PartMesh = Instance.new("BlockMesh",Part)
  927. PartMesh.Name = "Mesh"
  928. PartMesh.Offset = Vector3.new(0, 0, 0)
  929. PartMesh.Scale = Vector3.new(1, 0.580000103, 1)
  930.  
  931. local Part = Instance.new("Part", m)
  932. Part:BreakJoints()
  933. Part.TopSurface = "Smooth"
  934. Part.Material = "SmoothPlastic"
  935. Part.Transparency = '0'
  936. Part.Name = 'Part'
  937. Part.BottomSurface = "Smooth"
  938. Part.FormFactor = "Custom" Part.CanCollide = false
  939. Part.BrickColor = BrickColor.new("Cyan")
  940. Part.Size = Vector3.new(0.232000008, 0.232000083, 0.232000008)
  941. local Partweld = Instance.new("ManualWeld")
  942. Partweld.Part0 = Handle Partweld.Part1 = Part Partweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  943. Partweld.C1 = CFrame.new(-0.00512361526, 1.27599716, 0.000205993652, 0.999984741, -1.28453255e-011, -2.6103748e-018, 1.30729186e-011, 1, 9.06156192e-011, 2.61342048e-018, -8.99911604e-011, 0.99998498)
  944. Partweld.Parent = Part
  945. local PartMesh = Instance.new("SpecialMesh",Part)
  946. PartMesh.MeshId = ""
  947. PartMesh.MeshType = Enum.MeshType.Sphere PartMesh.Name = "Mesh"
  948. PartMesh.Offset = Vector3.new(0, 0, 0)
  949. PartMesh.Scale = Vector3.new(1, 1, 1)
  950.  
  951. local Part = Instance.new("Part", m)
  952. Part:BreakJoints()
  953. Part.TopSurface = "Smooth"
  954. Part.Material = "SmoothPlastic"
  955. Part.Transparency = '0'
  956. Part.Name = 'Part'
  957. Part.BottomSurface = "Smooth"
  958. Part.FormFactor = "Custom" Part.CanCollide = false
  959. Part.BrickColor = BrickColor.new("Really black")
  960. Part.Size = Vector3.new(0.200000003, 1.04400003, 0.34799999)
  961. local Partweld = Instance.new("ManualWeld")
  962. Partweld.Part0 = Handle Partweld.Part1 = Part Partweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  963. Partweld.C1 = CFrame.new(0.463974833, -0.290000916, -0.00576782227, 0.999984503, 2.97894065e-008, -2.86348202e-011, -2.97887173e-008, 1, 1.01521291e-010, 2.86348098e-011, -1.00897159e-010, 0.99998498)
  964. Partweld.Parent = Part
  965. local PartMesh = Instance.new("CylinderMesh",Part)
  966. PartMesh.Name = "Mesh"
  967. PartMesh.Offset = Vector3.new(0, 0, 0)
  968. PartMesh.Scale = Vector3.new(0.579999983, 1, 1)
  969.  
  970. local Part = Instance.new("Part", m)
  971. Part:BreakJoints()
  972. Part.TopSurface = "Smooth"
  973. Part.Material = "SmoothPlastic"
  974. Part.Transparency = '0'
  975. Part.Name = 'Part'
  976. Part.BottomSurface = "Smooth"
  977. Part.FormFactor = "Custom" Part.CanCollide = false
  978. Part.BrickColor = BrickColor.new("Really black")
  979. Part.Size = Vector3.new(0.347999871, 0.200000003, 0.34799999)
  980. local Partweld = Instance.new("ManualWeld")
  981. Partweld.Part0 = Handle Partweld.Part1 = Part Partweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  982. Partweld.C1 = CFrame.new(-0.000164270401, -0.753997803, -3.81469727e-005, 0.999984503, 3.06888716e-012, -1.38834606e-017, -2.8411544e-012, 1, -1.97783734e-011, 1.38918019e-017, 2.04043379e-011, 0.99998498)
  983. Partweld.Parent = Part
  984. local PartMesh = Instance.new("CylinderMesh",Part)
  985. PartMesh.Name = "Mesh"
  986. PartMesh.Offset = Vector3.new(0, 0, 0)
  987. PartMesh.Scale = Vector3.new(1, 0.579999983, 1)
  988.  
  989. local Part = Instance.new("Part", m)
  990. Part:BreakJoints()
  991. Part.TopSurface = "Smooth"
  992. Part.Material = "SmoothPlastic"
  993. Part.Transparency = '0'
  994. Part.Name = 'Part'
  995. Part.BottomSurface = "Smooth"
  996. Part.FormFactor = "Custom" Part.CanCollide = false
  997. Part.BrickColor = BrickColor.new("Really black")
  998. Part.Size = Vector3.new(0.811999977, 0.463999987, 0.34799999)
  999. local Partweld = Instance.new("ManualWeld")
  1000. Partweld.Part0 = Handle Partweld.Part1 = Part Partweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1001. Partweld.C1 = CFrame.new(0.116131306, -1.15999222, -0.00574874878, 0.999984741, 3.94835206e-012, -6.39358713e-021, -3.72062797e-012, 1, -1.16199814e-010, 7.10538797e-015, 1.16820581e-010, 0.99998498)
  1002. Partweld.Parent = Part
  1003. local Part = Instance.new("Part", m)
  1004. Part:BreakJoints()
  1005. Part.TopSurface = "Smooth"
  1006. Part.Material = "SmoothPlastic"
  1007. Part.Transparency = '0'
  1008. Part.Name = 'Part'
  1009. Part.BottomSurface = "Smooth"
  1010. Part.FormFactor = "Custom" Part.CanCollide = false
  1011. Part.BrickColor = BrickColor.new("Really black")
  1012. Part.Size = Vector3.new(0.34799999, 0.34799999, 0.34799999)
  1013. local Partweld = Instance.new("ManualWeld")
  1014. Partweld.Part0 = Handle Partweld.Part1 = Part Partweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1015. Partweld.C1 = CFrame.new(0.000649213791, 1.14260101, 0.000183105469, 0.999984741, -5.89520099e-012, -2.52691724e-018, 6.1229008e-012, 1, 8.39504716e-011, 2.53063356e-018, -8.33259087e-011, 0.99998498)
  1016. Partweld.Parent = Part
  1017. local PartMesh = Instance.new("SpecialMesh",Part)
  1018. PartMesh.MeshId = ""
  1019. PartMesh.MeshType = Enum.MeshType.Sphere PartMesh.Name = "Mesh"
  1020. PartMesh.Offset = Vector3.new(0, 0, 0)
  1021. PartMesh.Scale = Vector3.new(1, 1, 1)
  1022.  
  1023. local EnergyBlade = Instance.new("WedgePart", m)
  1024. EnergyBlade:BreakJoints()
  1025. EnergyBlade.TopSurface = "Smooth"
  1026. EnergyBlade.Material = "SmoothPlastic"
  1027. EnergyBlade.Transparency = '0.5'
  1028. EnergyBlade.Name = 'EnergyBlade'
  1029. EnergyBlade.BottomSurface = "Smooth"
  1030. EnergyBlade.FormFactor = "Custom" EnergyBlade.CanCollide = false
  1031. EnergyBlade.BrickColor = BrickColor.new("Toothpaste")
  1032. EnergyBlade.Size = Vector3.new(0.200000003, 0.232000098, 0.232000053)
  1033. local EnergyBladeweld = Instance.new("ManualWeld")
  1034. EnergyBladeweld.Part0 = Handle EnergyBladeweld.Part1 = EnergyBlade EnergyBladeweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1035. EnergyBladeweld.C1 = CFrame.new(-0.00545501709, -2.78398895, 0.752885342, 1.0430734e-007, 9.23484151e-008, 0.99998498, -4.76255479e-008, 1, -9.2346383e-008, -0.999984741, -4.7626493e-008, 1.04307368e-007)
  1036. EnergyBladeweld.Parent = EnergyBlade
  1037. local EnergyBladeMesh = Instance.new("SpecialMesh",EnergyBlade)
  1038. EnergyBladeMesh.MeshId = ""
  1039. EnergyBladeMesh.MeshType = Enum.MeshType.Wedge EnergyBladeMesh.Name = "Mesh"
  1040. EnergyBladeMesh.Offset = Vector3.new(0, 0, 0)
  1041. EnergyBladeMesh.Scale = Vector3.new(0.579999983, 1, 1)
  1042.  
  1043. local EnergyBlade = Instance.new("WedgePart", m)
  1044. EnergyBlade:BreakJoints()
  1045. EnergyBlade.TopSurface = "Smooth"
  1046. EnergyBlade.Material = "SmoothPlastic"
  1047. EnergyBlade.Transparency = '0.5'
  1048. EnergyBlade.Name = 'EnergyBlade'
  1049. EnergyBlade.BottomSurface = "Smooth"
  1050. EnergyBlade.FormFactor = "Custom" EnergyBlade.CanCollide = false
  1051. EnergyBlade.BrickColor = BrickColor.new("Cyan")
  1052. EnergyBlade.Size = Vector3.new(0.200000003, 0.580000043, 0.34800005)
  1053. local EnergyBladeweld = Instance.new("ManualWeld")
  1054. EnergyBladeweld.Part0 = Handle EnergyBladeweld.Part1 = EnergyBlade EnergyBladeweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1055. EnergyBladeweld.C1 = CFrame.new(0.00572967529, -3.42163086, 0.348280907, 3.85203647e-010, -3.42899966e-007, -0.99998498, -5.29177049e-012, 1, -3.42894168e-007, 0.999984741, 5.5196854e-012, 3.85203758e-010)
  1056. EnergyBladeweld.Parent = EnergyBlade
  1057. local EnergyBladeMesh = Instance.new("SpecialMesh",EnergyBlade)
  1058. EnergyBladeMesh.MeshId = ""
  1059. EnergyBladeMesh.MeshType = Enum.MeshType.Wedge EnergyBladeMesh.Name = "Mesh"
  1060. EnergyBladeMesh.Offset = Vector3.new(0, 0, 0)
  1061. EnergyBladeMesh.Scale = Vector3.new(0.579999983, 1, 1)
  1062.  
  1063. local EnergyBlade = Instance.new("WedgePart", m)
  1064. EnergyBlade:BreakJoints()
  1065. EnergyBlade.TopSurface = "Smooth"
  1066. EnergyBlade.Material = "SmoothPlastic"
  1067. EnergyBlade.Transparency = '0.5'
  1068. EnergyBlade.Name = 'EnergyBlade'
  1069. EnergyBlade.BottomSurface = "Smooth"
  1070. EnergyBlade.FormFactor = "Custom" EnergyBlade.CanCollide = false
  1071. EnergyBlade.BrickColor = BrickColor.new("Cyan")
  1072. EnergyBlade.Size = Vector3.new(0.200000003, 0.464000076, 0.464000016)
  1073. local EnergyBladeweld = Instance.new("ManualWeld")
  1074. EnergyBladeweld.Part0 = Handle EnergyBladeweld.Part1 = EnergyBlade EnergyBladeweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1075. EnergyBladeweld.C1 = CFrame.new(0.00566864014, -3.94353485, -0.0578434467, 3.85203536e-010, -3.42944759e-007, -0.99998498, 1.11812989e-012, 1, -3.42938961e-007, 0.999984741, -8.90444023e-013, 3.85210752e-010)
  1076. EnergyBladeweld.Parent = EnergyBlade
  1077. local EnergyBladeMesh = Instance.new("SpecialMesh",EnergyBlade)
  1078. EnergyBladeMesh.MeshId = ""
  1079. EnergyBladeMesh.MeshType = Enum.MeshType.Wedge EnergyBladeMesh.Name = "Mesh"
  1080. EnergyBladeMesh.Offset = Vector3.new(0, 0, 0)
  1081. EnergyBladeMesh.Scale = Vector3.new(0.579999983, 1, 1)
  1082.  
  1083. local EnergyBlade = Instance.new("WedgePart", m)
  1084. EnergyBlade:BreakJoints()
  1085. EnergyBlade.TopSurface = "Smooth"
  1086. EnergyBlade.Material = "SmoothPlastic"
  1087. EnergyBlade.Transparency = '0.5'
  1088. EnergyBlade.Name = 'EnergyBlade'
  1089. EnergyBlade.BottomSurface = "Smooth"
  1090. EnergyBlade.FormFactor = "Custom" EnergyBlade.CanCollide = false
  1091. EnergyBlade.BrickColor = BrickColor.new("Cyan")
  1092. EnergyBlade.Size = Vector3.new(0.200000003, 2.204, 0.200000003)
  1093. local EnergyBladeweld = Instance.new("ManualWeld")
  1094. EnergyBladeweld.Part0 = Handle EnergyBladeweld.Part1 = EnergyBlade EnergyBladeweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1095. EnergyBladeweld.C1 = CFrame.new(-0.0057144165, 2.02999496, 0.464220524, 1.38043432e-009, 3.13060639e-007, 0.99998498, -3.24347216e-010, -1, 3.13055295e-007, 0.999984741, -3.24124921e-010, -1.38043454e-009)
  1096. EnergyBladeweld.Parent = EnergyBlade
  1097. local EnergyBladeMesh = Instance.new("SpecialMesh",EnergyBlade)
  1098. EnergyBladeMesh.MeshId = ""
  1099. EnergyBladeMesh.MeshType = Enum.MeshType.Wedge EnergyBladeMesh.Name = "Mesh"
  1100. EnergyBladeMesh.Offset = Vector3.new(0, 0, 0)
  1101. EnergyBladeMesh.Scale = Vector3.new(0.579999983, 1, 0.579999983)
  1102.  
  1103. local EnergyBlade = Instance.new("WedgePart", m)
  1104. EnergyBlade:BreakJoints()
  1105. EnergyBlade.TopSurface = "Smooth"
  1106. EnergyBlade.Material = "SmoothPlastic"
  1107. EnergyBlade.Transparency = '0.5'
  1108. EnergyBlade.Name = 'EnergyBlade'
  1109. EnergyBlade.BottomSurface = "Smooth"
  1110. EnergyBlade.FormFactor = "Custom" EnergyBlade.CanCollide = false
  1111. EnergyBlade.BrickColor = BrickColor.new("Toothpaste")
  1112. EnergyBlade.Size = Vector3.new(0.200000003, 0.232000098, 0.232000053)
  1113. local EnergyBladeweld = Instance.new("ManualWeld")
  1114. EnergyBladeweld.Part0 = Handle EnergyBladeweld.Part1 = EnergyBlade EnergyBladeweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1115. EnergyBladeweld.C1 = CFrame.new(-0.00545501709, 2.31999969, -0.520918846, 3.8519643e-010, 2.97935088e-007, 0.99998498, -3.43321933e-011, -1, 2.97929887e-007, 0.999984741, -3.41047642e-011, -3.85189436e-010)
  1116. EnergyBladeweld.Parent = EnergyBlade
  1117. local EnergyBladeMesh = Instance.new("SpecialMesh",EnergyBlade)
  1118. EnergyBladeMesh.MeshId = ""
  1119. EnergyBladeMesh.MeshType = Enum.MeshType.Wedge EnergyBladeMesh.Name = "Mesh"
  1120. EnergyBladeMesh.Offset = Vector3.new(0, 0, 0)
  1121. EnergyBladeMesh.Scale = Vector3.new(0.579999983, 1, 1)
  1122.  
  1123. local EnergyBlade = Instance.new("WedgePart", m)
  1124. EnergyBlade:BreakJoints()
  1125. EnergyBlade.TopSurface = "Smooth"
  1126. EnergyBlade.Material = "SmoothPlastic"
  1127. EnergyBlade.Transparency = '0.5'
  1128. EnergyBlade.Name = 'EnergyBlade'
  1129. EnergyBlade.BottomSurface = "Smooth"
  1130. EnergyBlade.FormFactor = "Custom" EnergyBlade.CanCollide = false
  1131. EnergyBlade.BrickColor = BrickColor.new("Toothpaste")
  1132. EnergyBlade.Size = Vector3.new(0.200000003, 0.232000098, 0.232000053)
  1133. local EnergyBladeweld = Instance.new("ManualWeld")
  1134. EnergyBladeweld.Part0 = Handle EnergyBladeweld.Part1 = EnergyBlade EnergyBladeweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1135. EnergyBladeweld.C1 = CFrame.new(0.00545501709, 2.31999969, 0.752884865, 1.04307404e-007, -1.48921103e-007, -0.99998498, -4.7686104e-008, -1, 1.48918247e-007, -0.999984741, 4.76865942e-008, -1.04307446e-007)
  1136. EnergyBladeweld.Parent = EnergyBlade
  1137. local EnergyBladeMesh = Instance.new("SpecialMesh",EnergyBlade)
  1138. EnergyBladeMesh.MeshId = ""
  1139. EnergyBladeMesh.MeshType = Enum.MeshType.Wedge EnergyBladeMesh.Name = "Mesh"
  1140. EnergyBladeMesh.Offset = Vector3.new(0, 0, 0)
  1141. EnergyBladeMesh.Scale = Vector3.new(0.579999983, 1, 1)
  1142.  
  1143. local EnergyBlade = Instance.new("WedgePart", m)
  1144. EnergyBlade:BreakJoints()
  1145. EnergyBlade.TopSurface = "Smooth"
  1146. EnergyBlade.Material = "SmoothPlastic"
  1147. EnergyBlade.Transparency = '0.5'
  1148. EnergyBlade.Name = 'EnergyBlade'
  1149. EnergyBlade.BottomSurface = "Smooth"
  1150. EnergyBlade.FormFactor = "Custom" EnergyBlade.CanCollide = false
  1151. EnergyBlade.BrickColor = BrickColor.new("Toothpaste")
  1152. EnergyBlade.Size = Vector3.new(0.200000003, 0.232000098, 0.232000053)
  1153. local EnergyBladeweld = Instance.new("ManualWeld")
  1154. EnergyBladeweld.Part0 = Handle EnergyBladeweld.Part1 = EnergyBlade EnergyBladeweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1155. EnergyBladeweld.C1 = CFrame.new(0.00545501709, -2.78398895, -0.52090168, 3.85210641e-010, -3.42831441e-007, -0.99998498, 2.68004976e-011, 1, -3.42825587e-007, 0.999984741, -2.65730112e-011, 3.85189436e-010)
  1156. EnergyBladeweld.Parent = EnergyBlade
  1157. local EnergyBladeMesh = Instance.new("SpecialMesh",EnergyBlade)
  1158. EnergyBladeMesh.MeshId = ""
  1159. EnergyBladeMesh.MeshType = Enum.MeshType.Wedge EnergyBladeMesh.Name = "Mesh"
  1160. EnergyBladeMesh.Offset = Vector3.new(0, 0, 0)
  1161. EnergyBladeMesh.Scale = Vector3.new(0.579999983, 1, 1)
  1162.  
  1163. local EnergyBlade = Instance.new("WedgePart", m)
  1164. EnergyBlade:BreakJoints()
  1165. EnergyBlade.TopSurface = "Smooth"
  1166. EnergyBlade.Material = "SmoothPlastic"
  1167. EnergyBlade.Transparency = '0.5'
  1168. EnergyBlade.Name = 'EnergyBlade'
  1169. EnergyBlade.BottomSurface = "Smooth"
  1170. EnergyBlade.FormFactor = "Custom" EnergyBlade.CanCollide = false
  1171. EnergyBlade.BrickColor = BrickColor.new("Toothpaste")
  1172. EnergyBlade.Size = Vector3.new(0.200000003, 0.232000098, 0.232000053)
  1173. local EnergyBladeweld = Instance.new("ManualWeld")
  1174. EnergyBladeweld.Part0 = Handle EnergyBladeweld.Part1 = EnergyBlade EnergyBladeweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1175. EnergyBladeweld.C1 = CFrame.new(0.00572967529, 2.78398895, 0.405653715, 1.04307418e-007, -1.49098511e-007, -0.99998498, -4.76609436e-008, -1, 1.49095641e-007, -0.999984741, 4.76614339e-008, -1.0430746e-007)
  1176. EnergyBladeweld.Parent = EnergyBlade
  1177. local EnergyBladeMesh = Instance.new("SpecialMesh",EnergyBlade)
  1178. EnergyBladeMesh.MeshId = ""
  1179. EnergyBladeMesh.MeshType = Enum.MeshType.Wedge EnergyBladeMesh.Name = "Mesh"
  1180. EnergyBladeMesh.Offset = Vector3.new(0, 0, 0)
  1181. EnergyBladeMesh.Scale = Vector3.new(0.579999983, 1, 1)
  1182.  
  1183. local EnergyBlade = Instance.new("WedgePart", m)
  1184. EnergyBlade:BreakJoints()
  1185. EnergyBlade.TopSurface = "Smooth"
  1186. EnergyBlade.Material = "SmoothPlastic"
  1187. EnergyBlade.Transparency = '0.5'
  1188. EnergyBlade.Name = 'EnergyBlade'
  1189. EnergyBlade.BottomSurface = "Smooth"
  1190. EnergyBlade.FormFactor = "Custom" EnergyBlade.CanCollide = false
  1191. EnergyBlade.BrickColor = BrickColor.new("Toothpaste")
  1192. EnergyBlade.Size = Vector3.new(0.200000003, 0.232000098, 0.232000053)
  1193. local EnergyBladeweld = Instance.new("ManualWeld")
  1194. EnergyBladeweld.Part0 = Handle EnergyBladeweld.Part1 = EnergyBlade EnergyBladeweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1195. EnergyBladeweld.C1 = CFrame.new(-0.00572967529, -2.31999969, 0.405654192, 1.04307325e-007, 9.2525454e-008, 0.99998498, -4.76508113e-008, 1, -9.25234218e-008, -0.999984741, -4.76517563e-008, 1.04307354e-007)
  1196. EnergyBladeweld.Parent = EnergyBlade
  1197. local EnergyBladeMesh = Instance.new("SpecialMesh",EnergyBlade)
  1198. EnergyBladeMesh.MeshId = ""
  1199. EnergyBladeMesh.MeshType = Enum.MeshType.Wedge EnergyBladeMesh.Name = "Mesh"
  1200. EnergyBladeMesh.Offset = Vector3.new(0, 0, 0)
  1201. EnergyBladeMesh.Scale = Vector3.new(0.579999983, 1, 1)
  1202.  
  1203. local EnergyBlade = Instance.new("WedgePart", m)
  1204. EnergyBlade:BreakJoints()
  1205. EnergyBlade.TopSurface = "Smooth"
  1206. EnergyBlade.Material = "SmoothPlastic"
  1207. EnergyBlade.Transparency = '0.5'
  1208. EnergyBlade.Name = 'EnergyBlade'
  1209. EnergyBlade.BottomSurface = "Smooth"
  1210. EnergyBlade.FormFactor = "Custom" EnergyBlade.CanCollide = false
  1211. EnergyBlade.BrickColor = BrickColor.new("Toothpaste")
  1212. EnergyBlade.Size = Vector3.new(0.200000003, 0.232000098, 0.232000053)
  1213. local EnergyBladeweld = Instance.new("ManualWeld")
  1214. EnergyBladeweld.Part0 = Handle EnergyBladeweld.Part1 = EnergyBlade EnergyBladeweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1215. EnergyBladeweld.C1 = CFrame.new(-0.00572967529, -3.24771881, 0.405654192, 1.04307325e-007, 9.25271877e-008, 0.99998498, -4.764998e-008, 1, -9.25251555e-008, -0.999984741, -4.7650925e-008, 1.04307354e-007)
  1216. EnergyBladeweld.Parent = EnergyBlade
  1217. local EnergyBladeMesh = Instance.new("SpecialMesh",EnergyBlade)
  1218. EnergyBladeMesh.MeshId = ""
  1219. EnergyBladeMesh.MeshType = Enum.MeshType.Wedge EnergyBladeMesh.Name = "Mesh"
  1220. EnergyBladeMesh.Offset = Vector3.new(0, 0, 0)
  1221. EnergyBladeMesh.Scale = Vector3.new(0.579999983, 1, 1)
  1222.  
  1223. local Wedge = Instance.new("WedgePart", m)
  1224. Wedge:BreakJoints()
  1225. Wedge.TopSurface = "Smooth"
  1226. Wedge.Material = "SmoothPlastic"
  1227. Wedge.Transparency = '0'
  1228. Wedge.Name = 'Wedge'
  1229. Wedge.BottomSurface = "Smooth"
  1230. Wedge.FormFactor = "Custom" Wedge.CanCollide = false
  1231. Wedge.BrickColor = BrickColor.new("Really black")
  1232. Wedge.Size = Vector3.new(0.347999871, 0.463999987, 0.232000008)
  1233. local Wedgeweld = Instance.new("ManualWeld")
  1234. Wedgeweld.Part0 = Handle Wedgeweld.Part1 = Wedge Wedgeweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1235. Wedgeweld.C1 = CFrame.new(-0.00574874878, -1.15999222, 0.4057827, 5.96037637e-008, 4.00195148e-008, 0.99998498, 3.54902951e-008, 1, -4.00182927e-008, -0.999984741, 3.54906078e-008, 5.96037779e-008)
  1236. Wedgeweld.Parent = Wedge
  1237. local Wedge = Instance.new("WedgePart", m)
  1238. Wedge:BreakJoints()
  1239. Wedge.TopSurface = "Smooth"
  1240. Wedge.Material = "SmoothPlastic"
  1241. Wedge.Transparency = '0'
  1242. Wedge.Name = 'Wedge'
  1243. Wedge.BottomSurface = "Smooth"
  1244. Wedge.FormFactor = "Custom" Wedge.CanCollide = false
  1245. Wedge.BrickColor = BrickColor.new("Really black")
  1246. Wedge.Size = Vector3.new(0.347999871, 0.812000036, 0.580000043)
  1247. local Wedgeweld = Instance.new("ManualWeld")
  1248. Wedgeweld.Part0 = Handle Wedgeweld.Part1 = Wedge Wedgeweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1249. Wedgeweld.C1 = CFrame.new(-0.00572967529, -1.33398819, -0.116147518, 5.96037637e-008, 4.00212343e-008, 0.99998498, 3.54923806e-008, 1, -4.00200122e-008, -0.999984741, 3.54926932e-008, 5.96037779e-008)
  1250. Wedgeweld.Parent = Wedge
  1251. local Wedge = Instance.new("WedgePart", m)
  1252. Wedge:BreakJoints()
  1253. Wedge.TopSurface = "Smooth"
  1254. Wedge.Material = "SmoothPlastic"
  1255. Wedge.Transparency = '0.5'
  1256. Wedge.Name = 'Wedge'
  1257. Wedge.BottomSurface = "Smooth"
  1258. Wedge.FormFactor = "Custom" Wedge.CanCollide = false
  1259. Wedge.BrickColor = BrickColor.new("Toothpaste")
  1260. Wedge.Size = Vector3.new(0.200000003, 0.232000098, 0.232000053)
  1261. local Wedgeweld = Instance.new("ManualWeld")
  1262. Wedgeweld.Part0 = Handle Wedgeweld.Part1 = Wedge Wedgeweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1263. Wedgeweld.C1 = CFrame.new(0.00572967529, 1.85600281, 0.405664921, 1.04307418e-007, -1.49096778e-007, -0.99998498, -4.76601052e-008, -1, 1.49093907e-007, -0.999984741, 4.76605955e-008, -1.0430746e-007)
  1264. Wedgeweld.Parent = Wedge
  1265. local WedgeMesh = Instance.new("SpecialMesh",Wedge)
  1266. WedgeMesh.MeshId = ""
  1267. WedgeMesh.MeshType = Enum.MeshType.Wedge WedgeMesh.Name = "Mesh"
  1268. WedgeMesh.Offset = Vector3.new(0, 0, 0)
  1269. WedgeMesh.Scale = Vector3.new(0.579999983, 1, 1)
  1270.  
  1271. function Cloak()
  1272. Face.Parent=nil
  1273. cloaked=true
  1274. for _,v in pairs(Torso.Parent:children()) do
  1275. if v.className=="Part" and v.Name~="HumanoidRootPart" then
  1276. coroutine.resume(coroutine.create(function()
  1277. for i=0,1,0.2 do
  1278. wait()
  1279. v.Transparency=i
  1280. end
  1281. v.Transparency=1
  1282. end))
  1283. end
  1284. if v.className=="Hat" then
  1285. hatp=v.Handle
  1286. coroutine.resume(coroutine.create(function(derp)
  1287. for i=0,1,0.2 do
  1288. wait()
  1289. derp.Transparency=i
  1290. end
  1291. derp.Transparency=1
  1292. end),hatp)
  1293. end
  1294. end
  1295. for _,v in pairs(blocks) do
  1296. if v.className=="Part" then
  1297. coroutine.resume(coroutine.create(function()
  1298. for i=0,1,0.2 do
  1299. wait()
  1300. v.Transparency=i
  1301. end
  1302. v.Transparency=1
  1303. end))
  1304. end
  1305. end
  1306. end
  1307.  
  1308. Damagefunc=function(hit,minim,maxim,knockback,Type,Property,Delay,KnockbackType,decreaseblock)
  1309. if hit.Parent==nil then
  1310. return
  1311. end
  1312. h=hit.Parent:FindFirstChild("Humanoid")
  1313. for _,v in pairs(hit.Parent:children()) do
  1314. if v:IsA("Humanoid") then
  1315. h=v
  1316. end
  1317. end
  1318. if hit.Parent.Parent:FindFirstChild("Torso")~=nil then
  1319. h=hit.Parent.Parent:FindFirstChild("Humanoid")
  1320. end
  1321. if hit.Parent.className=="Hat" then
  1322. hit=hit.Parent.Parent:findFirstChild("Head")
  1323. end
  1324. if h~=nil and hit.Parent.Name~=Character.Name and hit.Parent:FindFirstChild("Torso")~=nil then
  1325. if hit.Parent:findFirstChild("DebounceHit")~=nil then if hit.Parent.DebounceHit.Value==true then return end end
  1326. --[[ if game.Players:GetPlayerFromCharacter(hit.Parent)~=nil then
  1327. return
  1328. end]]
  1329. -- hs(hit,1.2)
  1330. c=Instance.new("ObjectValue")
  1331. c.Name="creator"
  1332. c.Value=game:service("Players").LocalPlayer
  1333. c.Parent=h
  1334. game:GetService("Debris"):AddItem(c,.5)
  1335. Damage=math.random(minim,maxim)
  1336. -- h:TakeDamage(Damage)
  1337. blocked=false
  1338. block=hit.Parent:findFirstChild("Block")
  1339. if block~=nil then
  1340. print(block.className)
  1341. if block.className=="NumberValue" then
  1342. if block.Value>0 then
  1343. blocked=true
  1344. if decreaseblock==nil then
  1345. block.Value=block.Value-1
  1346. end
  1347. end
  1348. end
  1349. if block.className=="IntValue" then
  1350. if block.Value>0 then
  1351. blocked=true
  1352. if decreaseblock~=nil then
  1353. block.Value=block.Value-1
  1354. end
  1355. end
  1356. end
  1357. end
  1358. if blocked==false then
  1359. -- h:TakeDamage(Damage)
  1360. h.Health=h.Health-Damage
  1361. showDamage(hit.Parent,Damage,.5,BrickColor.new("Navy blue"))
  1362. else
  1363. h.Health=h.Health-(Damage/2)
  1364. showDamage(hit.Parent,Damage/2,.5,BrickColor.new("Bright blue"))
  1365. end
  1366. if Type=="Knockdown" then
  1367. hum=hit.Parent.Humanoid
  1368. hum.PlatformStand=true
  1369. coroutine.resume(coroutine.create(function(HHumanoid)
  1370. swait(1)
  1371. HHumanoid.PlatformStand=false
  1372. end),hum)
  1373. local angle=(hit.Position-(Property.Position+Vector3.new(0,0,0))).unit
  1374. --hit.CFrame=CFrame.new(hit.Position,Vector3.new(angle.x,hit.Position.y,angle.z))*CFrame.fromEulerAnglesXYZ(math.pi/4,0,0)
  1375. local bodvol=Instance.new("BodyVelocity")
  1376. bodvol.velocity=angle*knockback
  1377. bodvol.P=5000
  1378. bodvol.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
  1379. bodvol.Parent=hit
  1380. rl=Instance.new("BodyAngularVelocity")
  1381. rl.P=3000
  1382. rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000
  1383. rl.angularvelocity=Vector3.new(math.random(-10,10),math.random(-10,10),math.random(-10,10))
  1384. rl.Parent=hit
  1385. game:GetService("Debris"):AddItem(bodvol,.5)
  1386. game:GetService("Debris"):AddItem(rl,.5)
  1387. elseif Type=="Normal" then
  1388. vp=Instance.new("BodyVelocity")
  1389. vp.P=500
  1390. vp.maxForce=Vector3.new(math.huge,0,math.huge)
  1391. -- vp.velocity=Character.Torso.CFrame.lookVector*Knockback
  1392. if KnockbackType==1 then
  1393. vp.velocity=Property.CFrame.lookVector*knockback+Property.Velocity/1.05
  1394. elseif KnockbackType==2 then
  1395. vp.velocity=Property.CFrame.lookVector*knockback
  1396. end
  1397. if knockback>0 then
  1398. vp.Parent=hit.Parent.Torso
  1399. end
  1400. game:GetService("Debris"):AddItem(vp,.5)
  1401. elseif Type=="Up" then
  1402. local bodyVelocity=Instance.new("BodyVelocity")
  1403. bodyVelocity.velocity=vt(0,60,0)
  1404. bodyVelocity.P=5000
  1405. bodyVelocity.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
  1406. bodyVelocity.Parent=hit
  1407. game:GetService("Debris"):AddItem(bodyVelocity,1)
  1408. rl=Instance.new("BodyAngularVelocity")
  1409. rl.P=3000
  1410. rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000
  1411. rl.angularvelocity=Vector3.new(math.random(-30,30),math.random(-30,30),math.random(-30,30))
  1412. rl.Parent=hit
  1413. game:GetService("Debris"):AddItem(rl,.5)
  1414. elseif Type=="Snare" then
  1415. bp=Instance.new("BodyPosition")
  1416. bp.P=2000
  1417. bp.D=100
  1418. bp.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  1419. bp.position=hit.Parent.Torso.Position
  1420. bp.Parent=hit.Parent.Torso
  1421. game:GetService("Debris"):AddItem(bp,1)
  1422. elseif Type=="Target" then
  1423. if Targetting==false then
  1424. ZTarget=hit.Parent.Torso
  1425. coroutine.resume(coroutine.create(function(Part)
  1426. so("http://www.roblox.com/asset/?id=15666462",Part,1,1.5)
  1427. swait(5)
  1428. so("http://www.roblox.com/asset/?id=15666462",Part,1,1.5)
  1429. end),ZTarget)
  1430. TargHum=ZTarget.Parent:findFirstChild("Humanoid")
  1431. targetgui=Instance.new("BillboardGui")
  1432. targetgui.Parent=ZTarget
  1433. targetgui.Size=UDim2.new(10,100,10,100)
  1434. targ=Instance.new("ImageLabel")
  1435. targ.Parent=targetgui
  1436. targ.BackgroundTransparency=1
  1437. targ.Image="rbxassetid://4834067"
  1438. targ.Size=UDim2.new(1,0,1,0)
  1439. cam.CameraType="Scriptable"
  1440. cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
  1441. dir=Vector3.new(cam.CoordinateFrame.lookVector.x,0,cam.CoordinateFrame.lookVector.z)
  1442. workspace.CurrentCamera.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
  1443. Targetting=true
  1444. RocketTarget=ZTarget
  1445. for i=1,Property do
  1446. --while Targetting==true and Humanoid.Health>0 and Character.Parent~=nil do
  1447. if Humanoid.Health>0 and Character.Parent~=nil and TargHum.Health>0 and TargHum.Parent~=nil and Targetting==true then
  1448. swait()
  1449. end
  1450. --workspace.CurrentCamera.CoordinateFrame=CFrame.new(Head.CFrame.p,Head.CFrame.p+rmdir*100)
  1451. cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
  1452. dir=Vector3.new(cam.CoordinateFrame.lookVector.x,0,cam.CoordinateFrame.lookVector.z)
  1453. cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)*cf(0,5,10)*euler(-0.3,0,0)
  1454. end
  1455. Targetting=false
  1456. RocketTarget=nil
  1457. targetgui.Parent=nil
  1458. cam.CameraType="Custom"
  1459. end
  1460. end
  1461. debounce=Instance.new("BoolValue")
  1462. debounce.Name="DebounceHit"
  1463. debounce.Parent=hit.Parent
  1464. debounce.Value=true
  1465. game:GetService("Debris"):AddItem(debounce,Delay)
  1466. c=Instance.new("ObjectValue")
  1467. c.Name="creator"
  1468. c.Value=Player
  1469. c.Parent=h
  1470. game:GetService("Debris"):AddItem(c,.5)
  1471. CRIT=false
  1472. hitDeb=true
  1473. AttackPos=6
  1474. end
  1475. end
  1476.  
  1477. showDamage=function(Char,Dealt,du,Color)
  1478. m=Instance.new("Model")
  1479. m.Name=tostring(Dealt)
  1480. h=Instance.new("Humanoid")
  1481. h.Health=0
  1482. h.MaxHealth=0
  1483. h.Parent=m
  1484. c=Instance.new("Part")
  1485. c.Transparency=0
  1486. c.BrickColor=Color
  1487. c.Name="Head"
  1488. c.TopSurface=0
  1489. c.BottomSurface=0
  1490. c.formFactor="Plate"
  1491. c.Size=Vector3.new(1,.4,1)
  1492. ms=Instance.new("CylinderMesh")
  1493. ms.Scale=Vector3.new(.8,.8,.8)
  1494. if CRIT==true then
  1495. ms.Scale=Vector3.new(1,1.25,1)
  1496. end
  1497. ms.Parent=c
  1498. c.Reflectance=0
  1499. Instance.new("BodyGyro").Parent=c
  1500. c.Parent=m
  1501. if Char:findFirstChild("Head")~=nil then
  1502. c.CFrame=CFrame.new(Char["Head"].CFrame.p+Vector3.new(0,1.5,0))
  1503. elseif Char.Parent:findFirstChild("Head")~=nil then
  1504. c.CFrame=CFrame.new(Char.Parent["Head"].CFrame.p+Vector3.new(0,1.5,0))
  1505. end
  1506. f=Instance.new("BodyPosition")
  1507. f.P=2000
  1508. f.D=100
  1509. f.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  1510. f.position=c.Position+Vector3.new(0,3,0)
  1511. f.Parent=c
  1512. game:GetService("Debris"):AddItem(m,.5+du)
  1513. c.CanCollide=false
  1514. m.Parent=workspace
  1515. c.CanCollide=false
  1516. end
  1517.  
  1518. function UnCloak()
  1519. so("http://roblox.com/asset/?id=2767090",Torso,1,1.1)
  1520. Face.Parent=Head
  1521. cloaked=false
  1522. for _,v in pairs(Torso.Parent:children()) do
  1523. if v.className=="Part" and v.Name~="HumanoidRootPart" then
  1524. coroutine.resume(coroutine.create(function()
  1525. for i=0,1,0.1 do
  1526. wait()
  1527. v.Transparency=v.Transparency-0.1
  1528. end
  1529. v.Transparency=0
  1530. end))
  1531. end
  1532. if v.className=="Hat" then
  1533. hatp=v.Handle
  1534. coroutine.resume(coroutine.create(function(derp)
  1535. for i=0,1,0.1 do
  1536. wait()
  1537. derp.Transparency=derp.Transparency-0.1
  1538. end
  1539. derp.Transparency=0
  1540. end),hatp)
  1541. end
  1542. end
  1543. for _,v in pairs(blocks) do
  1544. if v.className=="Part" and v.Name~="Hitbox" and v.Name~='tip' then
  1545. coroutine.resume(coroutine.create(function()
  1546. for i=0,1,0.1 do
  1547. wait()
  1548. v.Transparency=v.Transparency-0.1
  1549. end
  1550. v.Transparency=0
  1551. end))
  1552. v.Transparency=0
  1553. end
  1554. end
  1555. end
  1556. meshids = {["penguin"] = 15853464, ["ring"] = 3270017,
  1557. ["spike"] = 1033714,["cone"] = 1082802,["crown"] = 20329976,["crossbow"] = 15886761,
  1558. ["cloud"] = 1095708,["mjolnir"] = 1279013,["diamond"] = 9756362, ["hand"] = 37241605,
  1559. ["fist"] = 65322375,["skull"] = 36869983,["totem"] = 35624068,["spikeb"] = 9982590,["dragon"] = 58430372,["fish"] = 31221717, ["coffee"] = 15929962,["spiral"] = 1051557,
  1560. ["ramen"] = 19380188,["lightning"] = 72583597,["bullet"]=2697549}---some meshids
  1561. textureids = {["cone"] = 1082804,["rainbow"] = 28488599,["fish"] = 31221733, ["coffee"] = 24181455,["monster"] = 33366441,["ramen"] = 19380153}
  1562. soundids = {["bell"] = 20005706,["flintlock"] = 13510352,["falcon"] = 1387390,['sensa'] = 4700455,
  1563. ['midas'] = 17385513;
  1564. ['spark'] = 10756118;
  1565. ['boom'] = 10730819;
  1566. ['plank'] = 10548112;
  1567. ['harmonica1'] = 33069371;
  1568. ['harmonica2'] = 33069412;
  1569. ['thump'] = 10730819;
  1570. }
  1571.  
  1572. cfn,ang,v3n,ud2n,V2 = CFrame.new,CFrame.Angles,Vector3.new,UDim2.new,Vector2.new
  1573.  
  1574. M = {["R"] = function(a,b) return math.random(a,b) end,
  1575. ["Cos"] = function(a) return math.cos(a) end,
  1576. ["Sin"] = function(a) return math.sin(a) end,
  1577. ["D"] = function(a) return math.rad(a) end
  1578. }
  1579.  
  1580. T = {["P"] = function(x,y,z,color,transparency,cancollide,anchored,parent,typee)
  1581. if typee == 'wedge' then
  1582. c = Instance.new("WedgePart",m)
  1583. elseif typee == 'seat' then
  1584. c = Instance.new("Seat",m)
  1585. elseif typee == 'vseat' then
  1586. c = Instance.new("VehicleSeat",m)
  1587. else
  1588. c = Instance.new("Part",m)
  1589. end
  1590. c.TopSurface,c.BottomSurface = 0,0
  1591. c.Locked = true
  1592. c.formFactor = "Custom"
  1593. c.Size = Vector3.new(x,y,z)
  1594. if color ~= "random" then
  1595. c.BrickColor = BrickColor.new(color)
  1596. else c.BrickColor = BrickColor:random()
  1597. end
  1598. c.Transparency = transparency
  1599. c.CanCollide = cancollide
  1600. if anchored ~= nil then c.Anchored = anchored end
  1601. if parent ~= nil then c.Parent = parent end
  1602. return c
  1603. end
  1604. ,
  1605. ["C"] = function(func) coroutine.resume(coroutine.create(func)) end
  1606. ,
  1607. ["W"] = function(part0,part1,x,y,z,rx,ry,rz,parent)
  1608. w = Instance.new("Motor",m)
  1609. if parent ~= nil then w.Parent = parent end
  1610. w.Part0,w.Part1 = part0,part1
  1611. w.C1 = CFrame.new(x,y,z) * CFrame.Angles(rx,ry,rz)
  1612. return w
  1613. end
  1614. ,
  1615. ["BG"] = function(parent)
  1616. local c = Instance.new("BodyGyro",parent)
  1617. c.P = 20e+003
  1618. c.cframe = parent.CFrame
  1619. c.maxTorque = Vector3.new(c.P,c.P,c.P)
  1620. return c
  1621. end
  1622. ,
  1623. ["BP"] = function(parent,position)
  1624. local bp = Instance.new("BodyPosition",parent)
  1625. bp.maxForce = Vector3.new()*math.huge
  1626. bp.position = position
  1627. return bp
  1628. end
  1629. ,
  1630. ["F"] = function(parent,size,heat,color,secondcolor,enabled)
  1631. f = Instance.new("Fire",parent)
  1632. f.Size = size
  1633. f.Heat = heat
  1634. if enabled ~= nil then f.Enabled = enabled end
  1635. if color ~= nil then f.Color = BrickColor.new(color).Color end
  1636. if secondcolor ~= nil then f.SecondaryColor = BrickColor.new(secondcolor).Color end
  1637. return f
  1638. end
  1639. ,
  1640. ["FM"] = function(parent,meshid,x,y,z,meshtexture)
  1641. if meshid == "cylinder" then
  1642. mesh = Instance.new("CylinderMesh",parent)
  1643. mesh.Scale = Vector3.new(x,y,z)
  1644. return mesh
  1645. elseif meshid == 'block' then
  1646. mesh = Instance.new("BlockMesh",parent)
  1647. mesh.Scale = Vector3.new(x,y,z)
  1648. return mesh
  1649. end
  1650. mesh = Instance.new("SpecialMesh",parent)
  1651. if meshid == 'wedge' then
  1652. mesh.MeshType = 'Wedge'
  1653. elseif meshid == 'sphere' then
  1654. mesh.MeshType = 3
  1655. elseif type(meshid) == "number" then
  1656. mesh.MeshId = "rbxassetid://"..meshid
  1657. else
  1658. mesh.MeshId = "rbxassetid://"..meshids[meshid]
  1659. end
  1660. mesh.Scale = Vector3.new(x,y,z)
  1661. if meshtexture then
  1662. if type(meshtexture) == "number" then mesh.TextureId = "rbxassetid://"..meshtexture else
  1663. mesh.TextureId = "rbxassetid://"..textureids[meshtexture] end
  1664. end
  1665. return mesh
  1666. end,
  1667. ["Dec"] = function(parent,face,id,transparency)
  1668. c = Instance.new("Decal",parent)
  1669. c.Face = face
  1670. c.Texture = id
  1671. if transparency then c.Transparency = transparency end
  1672. return c
  1673. end,
  1674. ["S"] = function(id,pitch,volume,parent)
  1675. cur = nil
  1676. found = false
  1677. if type(id) == 'string' then
  1678. for i,v in pairs(char.Head:children()) do
  1679. if v:IsA("Sound") and v.Name == id and not found then
  1680. cur = v
  1681. if parent then cur = v:Clone() cur.Parent = parent end
  1682. cur.Pitch = pitch
  1683. if volume then cur.Volume = volume end
  1684. cur:Play()
  1685. found = true
  1686. return cur
  1687. end
  1688. end
  1689. elseif type(id) == 'number' then
  1690. local a = char.Head:FindFirstChild('exteo')
  1691. a.SoundId = 'rbxassetid://'..id
  1692. a.Pitch = pitch
  1693. if volume then a.Volume = volume end
  1694. a:Play()
  1695. return a
  1696. end
  1697. end
  1698. }
  1699.  
  1700. function damage(hit,amount,delay)
  1701. for i,v in pairs(hit:children()) do
  1702. if v:IsA("Humanoid") and v.Parent ~= char then
  1703. if delay then
  1704. local found = v:FindFirstChild('tag')
  1705. if not found then
  1706. local a = Instance.new("StringValue",v)
  1707. a.Name = 'tag ur it'
  1708. game:service'Debris':AddItem(a,delay)
  1709. v.Health = v.Health - amount
  1710. end
  1711. else v.Health = v.Health - amount
  1712. end
  1713. end
  1714. end
  1715. end
  1716.  
  1717. function lightning(startpos,endpos,times,offse,livetime,col,dmg)
  1718. local curpos = startpos
  1719. for i = 1,times do
  1720. local mag = (startpos-endpos).magnitude
  1721. local offs = {-offse,offse}
  1722. local offset = v3n(offs[M.R(1,2)],offs[M.R(1,2)],offs[M.R(1,2)])
  1723. laz = T.P(.1,.1,mag/times,col,0,false,true,m)
  1724. laz.Parent=m
  1725. laz.Transparency=.5
  1726. if dmg then laz.Touched:connect(function(hit) dmgstart(laz,5) end) end
  1727. local apos = (cfn(curpos,endpos)*cfn(0,0,-mag/times)).p+offset
  1728. if times == i then
  1729. local mag2 = (curpos-endpos).magnitude
  1730. laz.Size = v3n(.1,.1,mag2)
  1731. laz.CFrame = cfn(curpos,endpos)*cfn(0,0,-mag2/2)
  1732. else
  1733. laz.CFrame = cfn(curpos,apos)*cfn(0,0,-mag/times/2)
  1734. end
  1735. curpos = laz.CFrame*cfn(0,0,-mag/times/2).p game:service'Debris':AddItem(laz,livetime)
  1736. pcall(function()
  1737. dmgstop()
  1738. end)
  1739. end
  1740. end
  1741.  
  1742. mouse.Button1Down:connect(function()
  1743. if attack==false then
  1744. if attacktype==1 then
  1745. attack=true
  1746. attacktype=2
  1747. attackone()
  1748. elseif attacktype==2 then
  1749. attack=true
  1750. attacktype=3
  1751. attacktwo()
  1752. elseif attacktype==3 then
  1753. attack=true
  1754. attacktype=1
  1755. attackthree()
  1756. end
  1757. end
  1758. end)
  1759.  
  1760. mouse.KeyDown:connect(function(k)
  1761. k=k:lower()
  1762. if k=='q' then
  1763. if attack==false then
  1764. Bash()
  1765. end
  1766. elseif k=='e' then
  1767. if attack==false then
  1768. Impulse()
  1769. end
  1770. end
  1771. end)
  1772. function Impulse()
  1773. attack=true
  1774. Humanoid.Jump=true
  1775. for i=0,1,0.2 do
  1776. swait()
  1777. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,0),.45)
  1778. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0.5,0),.45)
  1779. RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*euler(1.5,-1.5,0)*euler(.5,0,0),.45)
  1780. LW.C0=clerp(LW.C0,cf(0,0.5,-0.7)*euler(1.5,-1.5,0)*euler(.7,0,0),.45)
  1781. RH.C0=clerp(RH.C0,RHC0*euler(-.2,0,0),.45)
  1782. LH.C0=clerp(LH.C0,LHC0*euler(-.2,0,0),.45)
  1783. end
  1784. blcf=nil
  1785. scfr=nil
  1786. so("http://roblox.com/asset/?id=231917801",Hitbox,1,1)
  1787. con1=Hitbox.Touched:connect(function(hit) Damagefunc(hit,30,50,math.random(10,20),"Normal",RootPart,.2,1) end)
  1788. for i=1,2 do
  1789. for i=0,1,0.1 do
  1790. swait()
  1791. local blcf = Hitbox.CFrame*CFrame.new(0,.5,0)
  1792. if scfr and (Hitbox.Position-scfr.p).magnitude > .1 then
  1793. local h = 5
  1794. local a,b = Triangle((scfr*CFrame.new(0,h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p,(blcf*CFrame.new(0,h/2,0)).p)
  1795. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  1796. local a,b = Triangle((blcf*CFrame.new(0,h/2,0)).p,(blcf*CFrame.new(0,-h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p)
  1797. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  1798. scfr = blcf
  1799. elseif not scfr then
  1800. scfr = blcf
  1801. end
  1802. RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*euler(1.5,-1.5,0)*euler(-.5,0,0),.3)
  1803. LW.C0=clerp(LW.C0,cf(-1,0.5,-0.5)*euler(1.5,-1.5,0)*euler(.5,0,0),.3)
  1804. RootJoint.C0=RootCF*euler(0,0.5,6.6*i)
  1805. end
  1806. end
  1807. attack = false
  1808. con1:disconnect()
  1809. end
  1810.  
  1811. function Bash()
  1812. attack=true
  1813. for i=0,1,0.1 do
  1814. swait()
  1815. --wld1.C0=clerp(wld1.C0,euler(1.1,0,0)*cf(0,1,-0.4),.3)
  1816. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,1)*euler(0.5,0,0),.3)
  1817. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,-1.4),.3)
  1818. RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*euler(1.4,-1.4,0)*euler(-.6,0,0),.3)
  1819. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(1,-1,0)*euler(.5,0,0),.3)
  1820. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0,2.5,0),.3)
  1821. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(0,-1,0),.3)
  1822. end
  1823. Torso.Velocity=RootPart.CFrame.lookVector*200
  1824. so("http://roblox.com/asset/?id=200632211",Torso,1,.8)
  1825. hit=nil
  1826. for i=1,20 do
  1827. if hit==nil then
  1828. swait()
  1829. end
  1830. end
  1831. Torso.Velocity=RootPart.CFrame.lookVector*0
  1832. Humanoid.WalkSpeed=0
  1833. con1=Hitbox.Touched:connect(function(hit) Damagefunc(hit,30,50,math.random(10,20),"Normal",RootPart,.2,1) end)
  1834. for i=0,1,0.1 do
  1835. swait()
  1836. --wld1.C0=clerp(wld1.C0,euler(1.1,0,0)*cf(0,1,-0.4),.3)
  1837. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,1.4)*euler(-0.2,0,0),.3)
  1838. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,-1.4),.3)
  1839. RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*euler(3,-1.4,0)*euler(-.6,0,0),.3)
  1840. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(2.3,-1.4,0)*euler(.5,0,0),.3)
  1841. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0,1.57,0),.3)
  1842. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(0,-1.57,0),.3)
  1843. end
  1844. so("http://roblox.com/asset/?id=200632136",Hitbox,1,0.9)
  1845. blcf=nil
  1846. scfr=nil
  1847. for i=0,1,0.2 do
  1848. swait()
  1849. local blcf = Hitbox.CFrame*CFrame.new(0,.5,0)
  1850. if scfr and (Hitbox.Position-scfr.p).magnitude > .1 then
  1851. local h = 5
  1852. local a,b = Triangle((scfr*CFrame.new(0,h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p,(blcf*CFrame.new(0,h/2,0)).p)
  1853. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  1854. local a,b = Triangle((blcf*CFrame.new(0,h/2,0)).p,(blcf*CFrame.new(0,-h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p)
  1855. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  1856. scfr = blcf
  1857. elseif not scfr then
  1858. scfr = blcf
  1859. end
  1860. --wld1.C0=clerp(wld1.C0,euler(2.2,0,0)*cf(0,.8,-0.3),.45)
  1861. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,1.4)*euler(0.4,0,0),.45)
  1862. --RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-1.3)*euler(0,0,-1.4),.45)
  1863. RW.C0=clerp(RW.C0,cf(.5,0.2,-0.5)*euler(3,-1.4,0)*euler(-2.7,0,0),.45)
  1864. LW.C0=clerp(LW.C0,cf(-1.2,0.1,-0.3)*euler(0,-1.4,0)*euler(.5,0,0),.45)
  1865. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0,1.57,0),.3)
  1866. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(0,-1.57,0),.3)
  1867. end
  1868. swait(50)
  1869. Humanoid.WalkSpeed=16
  1870. con1:disconnect()
  1871. attack=false
  1872. end
  1873.  
  1874.  
  1875. function attackone()
  1876. attack=true
  1877. for i=0,1,0.2 do
  1878. swait()
  1879. Neck.C0=clerp(Neck.C0,necko*euler(.2,0,.5),.4)
  1880. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,-.5),.4)
  1881. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(2,0,1),.4)
  1882. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.4)
  1883. LW.C0=clerp(LW.C0,cf(-1.3,0.5,-.3)*euler(.4,0,.2)*euler(0,-.2,0),.4)
  1884. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.4)
  1885. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0,1.57,0)*euler(0,.5,0),.4)
  1886. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(0,-1.57,0)*euler(0,.5,0),.4)
  1887. end
  1888. con1=Hitbox.Touched:connect(function(hit) Damagefunc(hit,20,30,math.random(10,20),"Normal",RootPart,.2,1) end)
  1889. for i=0,1,0.3 do
  1890. swait()
  1891. local blcf = Hitbox.CFrame
  1892. if scfr and (Hitbox.Position-scfr.p).magnitude > .1 then
  1893. local h = 5
  1894. local a,b = Triangle((scfr*CFrame.new(0,h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p,(blcf*CFrame.new(0,h/2,0)).p)
  1895. if a then game.Debris:AddItem(a,trispeed) end if b then game.Debris:AddItem(b,trispeed) end
  1896. local a,b = Triangle((blcf*CFrame.new(0,h/2,0)).p,(blcf*CFrame.new(0,-h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p)
  1897. if a then game.Debris:AddItem(a,trispeed) end if b then game.Debris:AddItem(b,trispeed) end
  1898. scfr = blcf
  1899. elseif not scfr then
  1900. scfr = blcf
  1901. end
  1902. Neck.C0=clerp(Neck.C0,necko*euler(0,0,-.5)*euler(.2,0,0),.4)
  1903. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,.5),.4)
  1904. RW.C0=clerp(RW.C0,cf(1.2,0.5,-.3)*euler(.2,0,-.2)*euler(0,-.5,0),.4)
  1905. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.4)
  1906. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-.4,0,-.2),.4)
  1907. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.4)
  1908. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0,1.57,0)*euler(0,-.5,0),.4)
  1909. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(0,-1.57,0)*euler(0,-.5,0),.4)
  1910. end
  1911. so("http://roblox.com/asset/?id=233856140",Hitbox,1,1)
  1912. for i=0,1,0.2 do
  1913. swait()
  1914. local blcf = Hitbox.CFrame
  1915. if scfr and (Hitbox.Position-scfr.p).magnitude > .1 then
  1916. local h = 5
  1917. local a,b = Triangle((scfr*CFrame.new(0,h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p,(blcf*CFrame.new(0,h/2,0)).p)
  1918. if a then game.Debris:AddItem(a,trispeed) end if b then game.Debris:AddItem(b,trispeed) end
  1919. local a,b = Triangle((blcf*CFrame.new(0,h/2,0)).p,(blcf*CFrame.new(0,-h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p)
  1920. if a then game.Debris:AddItem(a,trispeed) end if b then game.Debris:AddItem(b,trispeed) end
  1921. scfr = blcf
  1922. elseif not scfr then
  1923. scfr = blcf
  1924. end
  1925. Neck.C0=clerp(Neck.C0,necko*euler(0,0,-.5)*euler(.2,0,0),.4)
  1926. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,.5),.4)
  1927. RW.C0=clerp(RW.C0,cf(1,0.5,-.5)*euler(.6,0,-1)*euler(0,-.7,0),.4)
  1928. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.4)
  1929. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-.4,0,-.2),.4)
  1930. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.4)
  1931. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0,1.57,0)*euler(0,-.5,0),.4)
  1932. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(0,-1.57,0)*euler(0,-.5,0),.4)
  1933. end
  1934. attack=false
  1935. con1:disconnect()
  1936. end
  1937.  
  1938. function attacktwo()
  1939. attack=true
  1940. for i=0,1,0.1 do
  1941. swait()
  1942. local blcf = Hitbox.CFrame
  1943. if scfr and (Hitbox.Position-scfr.p).magnitude > .1 then
  1944. local h = 5
  1945. local a,b = Triangle((scfr*CFrame.new(0,h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p,(blcf*CFrame.new(0,h/2,0)).p)
  1946. if a then game.Debris:AddItem(a,trispeed) end if b then game.Debris:AddItem(b,trispeed) end
  1947. local a,b = Triangle((blcf*CFrame.new(0,h/2,0)).p,(blcf*CFrame.new(0,-h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p)
  1948. if a then game.Debris:AddItem(a,trispeed) end if b then game.Debris:AddItem(b,trispeed) end
  1949. scfr = blcf
  1950. elseif not scfr then
  1951. scfr = blcf
  1952. end
  1953. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0.1,0,-1.2),.3)
  1954. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,1.2),.3)
  1955. RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*euler(.5,1.8,1.5),.3)
  1956. LW.C0=clerp(LW.C0,cf(-1,0.5,-0.5)*euler(1.5,-0.5,.8),.3)
  1957. RH.C0=clerp(RH.C0,RHC0*euler(-.2,0,0),.3)
  1958. LH.C0=clerp(LH.C0,LHC0*euler(-.2,0,0),.3)
  1959. end
  1960. so("http://roblox.com/asset/?id=233856146",Hitbox,1,1)
  1961. con1=Hitbox.Touched:connect(function(hit) Damagefunc(hit,20,30,math.random(10,20),"Normal",RootPart,.2,1) end)
  1962. for i=0,1,0.1 do
  1963. swait()
  1964. local blcf = Hitbox.CFrame
  1965. if scfr and (Hitbox.Position-scfr.p).magnitude > .1 then
  1966. local h = 5
  1967. local a,b = Triangle((scfr*CFrame.new(0,h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p,(blcf*CFrame.new(0,h/2,0)).p)
  1968. if a then game.Debris:AddItem(a,trispeed) end if b then game.Debris:AddItem(b,trispeed) end
  1969. local a,b = Triangle((blcf*CFrame.new(0,h/2,0)).p,(blcf*CFrame.new(0,-h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p)
  1970. if a then game.Debris:AddItem(a,trispeed) end if b then game.Debris:AddItem(b,trispeed) end
  1971. scfr = blcf
  1972. elseif not scfr then
  1973. scfr = blcf
  1974. end
  1975. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0.1,0,1),.3)
  1976. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,-1),.3)
  1977. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(1.2,1.2,0)*euler(-1.5,0,0),.3)
  1978. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(.2,-.2,-1.4),.3)
  1979. end
  1980. attack=false
  1981. con1:disconnect()
  1982. end
  1983.  
  1984. function attackthree()
  1985. attack=true
  1986. for i=0,1,0.2 do
  1987. swait()
  1988. Neck.C0=clerp(Neck.C0,necko*euler(0,0,.2),.4)
  1989. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,-.3),.4)
  1990. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(1,0,1.2)*euler(0,-2,0),.4)
  1991. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.4)
  1992. LW.C0=clerp(LW.C0,cf(-1.4,0.5,-.2)*euler(.7,0,.1)*euler(0,-.4,0),.4)
  1993. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.4)
  1994. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0,1.57,0)*euler(0,.3,0),.4)
  1995. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(0,-1.57,0)*euler(0,.3,0),.4)
  1996. end
  1997. so("http://roblox.com/asset/?id=233856140",Hitbox,1,0.9)
  1998. con1=Hitbox.Touched:connect(function(hit) Damagefunc(hit,20,30,math.random(10,20),"Normal",RootPart,.2,1) end)
  1999. for i=0,1,0.1 do
  2000. swait()
  2001. local blcf = Hitbox.CFrame
  2002. if scfr and (Hitbox.Position-scfr.p).magnitude > .1 then
  2003. local h = 5
  2004. local a,b = Triangle((scfr*CFrame.new(0,h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p,(blcf*CFrame.new(0,h/2,0)).p)
  2005. if a then game.Debris:AddItem(a,trispeed) end if b then game.Debris:AddItem(b,trispeed) end
  2006. local a,b = Triangle((blcf*CFrame.new(0,h/2,0)).p,(blcf*CFrame.new(0,-h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p)
  2007. if a then game.Debris:AddItem(a,trispeed) end if b then game.Debris:AddItem(b,trispeed) end
  2008. scfr = blcf
  2009. elseif not scfr then
  2010. scfr = blcf
  2011. end
  2012. Neck.C0=clerp(Neck.C0,necko*euler(.2,0,-.6),.35)
  2013. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,.6),.35)
  2014. RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*euler(1.2,0,-1.2)*euler(0,-1.2,0),.35)
  2015. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.35)
  2016. LW.C0=clerp(LW.C0,cf(-1.4,0.5,-.2)*euler(-.4,0,-.7)*euler(0,0,0),.35)
  2017. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.35)
  2018. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0,1.57,0)*euler(0,-.6,0),.35)
  2019. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(0,-1.57,0)*euler(0,-.6,0),.35)
  2020. end
  2021. attack=false
  2022. con1:disconnect()
  2023. end
  2024.  
  2025. local sine = 0
  2026. local change = 1
  2027. local val = 0
  2028.  
  2029. while true do
  2030. swait()
  2031. sine = sine + change
  2032. local torvel=(RootPart.Velocity*Vector3.new(1,0,1)).magnitude
  2033. local velderp=RootPart.Velocity.y
  2034. hitfloor,posfloor=rayCast(RootPart.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,4,Character)
  2035. if equipped==true or equipped==false then
  2036. if attack==false then
  2037. idle=idle+1
  2038. else
  2039. idle=0
  2040. end
  2041. if idle>=500 then
  2042. if attack==false then
  2043. --Sheath()
  2044. end
  2045. end
  2046. if RootPart.Velocity.y > 1 and hitfloor==nil then
  2047. Anim="Jump"
  2048. if attack==false then
  2049. Neck.C0=clerp(Neck.C0,necko*euler(-0.2,0,0),.3)
  2050. Neck.C1=clerp(Neck.C1,necko2*euler(0,0,0),.3)
  2051. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,0),.3)
  2052. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-.5,0,0.5),.3)
  2053. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  2054. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-.5,0,-0.5),.3)
  2055. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  2056. RH.C0=clerp(RH.C0,cf(1,-1,-.3)*euler(-0.5,1.57,0)*euler(-.2,0,0),.2)
  2057. LH.C0=clerp(LH.C0,cf(-1,-1,-.3)*euler(-0.5,-1.57,0)*euler(-.2,0,0),.2)
  2058. Handleweld.C0=clerp(Handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  2059. end
  2060. elseif RootPart.Velocity.y < -1 and hitfloor==nil then
  2061. Anim="Fall"
  2062. if attack==false then
  2063. Neck.C0=clerp(Neck.C0,necko*euler(0.4,0,0),.3)
  2064. Neck.C1=clerp(Neck.C1,necko2*euler(0,0,0),.3)
  2065. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,0),.3)
  2066. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(0.3,0,0.2),.3)
  2067. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  2068. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(0.3,0,-0.2),.3)
  2069. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  2070. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0.4,1.57,0),.2)
  2071. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(-0.2,-1.57,0),.2)
  2072. Handleweld.C0=clerp(Handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  2073. end
  2074. elseif torvel<1 and hitfloor~=nil then
  2075. Anim="Idle"
  2076. if attack==false then
  2077. RootJoint.C0=clerp(RootJoint.C0,RootCF*angles(math.rad(0),math.rad(0),math.rad(-45)),.3)
  2078. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(45)),.3)
  2079. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-2),math.rad(-25),math.rad(15)),.3)
  2080. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-5)),.3)
  2081. 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)
  2082. 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)
  2083. Handleweld.C0=clerp(Handleweld.C0,cf(0,0,0)*angles(math.rad(-15),math.rad(0),math.rad(0)),.3)
  2084. end
  2085. elseif torvel>2 and torvel<22 and hitfloor~=nil then
  2086. local idleanim=0
  2087. Anim="Walk"
  2088. if attack==false then
  2089. change=3
  2090. --[[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)
  2091. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-30),math.rad(0),math.rad(0)),.3)
  2092. 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)
  2093. 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)
  2094. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0)),.3)
  2095. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0)),.3)
  2096. Handleweld.C0=clerp(Handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)]]--
  2097. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,0),.2)
  2098. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0.1,0,0),.2)
  2099. --RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-0.1,0,0.2),.2)
  2100. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-5),math.rad(-25),math.rad(20)),.3)
  2101. LW.C0=clerp(LW.C0,cf(-1,0.5,-0.5)*euler(1.57,-(idleanim/2),1.3-(idleanim/2)),.2)
  2102. RH.C0=clerp(RH.C0,RHC0,.3)
  2103. LH.C0=clerp(LH.C0,LHC0,.3)
  2104. end
  2105. elseif torvel>=22 and hitfloor~=nil then
  2106. Anim="Run"
  2107. if attack==false then
  2108. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(45),math.rad(0),math.rad(0)),.3)
  2109. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-40),math.rad(0),math.rad(0)),.3)
  2110. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-60),math.rad(0),math.rad(0)),.3)
  2111. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-60),math.rad(0),math.rad(0)),.3)
  2112. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0)),.3)
  2113. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0)),.3)
  2114. Handleweld.C0=clerp(Handleweld.C0,cf(0,-.5,-.7)*angles(math.rad(-75),math.rad(0),math.rad(0)),.3)
  2115. end
  2116. end
  2117. end
  2118. end
  2119. --156434034
Add Comment
Please, Sign In to add comment