xx_g

roblox hexblade 2.0

Apr 29th, 2017
174
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 87.38 KB | None | 0 0
  1. Player=game:GetService("Players").LocalPlayer
  2. Character=Player.Character
  3. PlayerGui=Player.PlayerGui
  4. Backpack=Player.Backpack
  5. Torso=Character.Torso
  6. Head=Character.Head
  7. Humanoid=Character.Humanoid
  8. m=Instance.new('Model',Character)
  9. LeftArm=Character["Left Arm"]
  10. LeftLeg=Character["Left Leg"]
  11. RightArm=Character["Right Arm"]
  12. RightLeg=Character["Right Leg"]
  13. LS=Torso["Left Shoulder"]
  14. LH=Torso["Left Hip"]
  15. RS=Torso["Right Shoulder"]
  16. RH=Torso["Right Hip"]
  17. Face = Head.face
  18. Neck=Torso.Neck
  19. it=Instance.new
  20. attacktype=1
  21. vt=Vector3.new
  22. cf=CFrame.new
  23. euler=CFrame.fromEulerAnglesXYZ
  24. angles=CFrame.Angles
  25. cloaked=false
  26. necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  27. necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  28. LHC0=cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0)
  29. LHC1=cf(-0.5,1,0,-0,-0,-1,0,1,0,1,0,0)
  30. RHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0)
  31. RHC1=cf(0.5,1,0,0,0,1,0,1,0,-1,-0,-0)
  32. RootPart=Character.HumanoidRootPart
  33. RootJoint=RootPart.RootJoint
  34. RootCF=euler(-1.57,0,3.14)
  35. attack = false
  36. attackdebounce = false
  37. deb=false
  38. equipped=true
  39. hand=false
  40. MMouse=nil
  41. combo=0
  42. mana=0
  43. trispeed=1
  44. pathtrans=.7
  45. attackmode='none'
  46. local idle=0
  47. local Anim="Idle"
  48. local Effects={}
  49. local gun=false
  50. local shoot=false
  51. player=nil
  52. cloak=false
  53. lightcolor='Bright blue'
  54.  
  55. mouse=Player:GetMouse()
  56. --save shoulders
  57. RSH, LSH=nil, nil
  58. --welds
  59. RW, LW=Instance.new("Weld"), Instance.new("Weld")
  60. RW.Name="Right Shoulder" LW.Name="Left Shoulder"
  61. LH=Torso["Left Hip"]
  62. RH=Torso["Right Hip"]
  63. TorsoColor=Torso.BrickColor
  64. function NoOutline(Part)
  65. Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
  66. end
  67. player=Player
  68. ch=Character
  69. RSH=ch.Torso["Right Shoulder"]
  70. LSH=ch.Torso["Left Shoulder"]
  71. --
  72. RSH.Parent=nil
  73. LSH.Parent=nil
  74. --
  75. RW.Name="Right Shoulder"
  76. RW.Part0=ch.Torso
  77. RW.C0=cf(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5)
  78. RW.C1=cf(0, 0.5, 0)
  79. RW.Part1=ch["Right Arm"]
  80. RW.Parent=ch.Torso
  81. --
  82. LW.Name="Left Shoulder"
  83. LW.Part0=ch.Torso
  84. LW.C0=cf(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8)
  85. LW.C1=cf(0, 0.5, 0)
  86. LW.Part1=ch["Left Arm"]
  87. LW.Parent=ch.Torso
  88.  
  89. local fengui=it("GuiMain")
  90. fengui.Parent=Player.PlayerGui
  91. fengui.Name="WeaponGUI"
  92. local fenframe=it("Frame")
  93. fenframe.Parent=fengui
  94. fenframe.BackgroundColor3=Color3.new(255,255,255)
  95. fenframe.BackgroundTransparency=1
  96. fenframe.BorderColor3=Color3.new(17,17,17)
  97. fenframe.Size=UDim2.new(0.0500000007, 0, 0.100000001, 0)
  98. fenframe.Position=UDim2.new(0.4,0,0.1,0)
  99. local fenbarmana1=it("TextLabel")
  100. fenbarmana1.Parent=fenframe
  101. fenbarmana1.Text=" "
  102. fenbarmana1.BackgroundTransparency=0
  103. fenbarmana1.BackgroundColor3=Color3.new(0,0,0)
  104. fenbarmana1.SizeConstraint="RelativeXY"
  105. fenbarmana1.TextXAlignment="Center"
  106. fenbarmana1.TextYAlignment="Center"
  107. fenbarmana1.Position=UDim2.new(0,0,0,0)
  108. fenbarmana1.Size=UDim2.new(4,0,0.2,0)
  109. local fenbarmana2=it("TextLabel")
  110. fenbarmana2.Parent=fenframe
  111. fenbarmana2.Text=" "
  112. fenbarmana2.BackgroundTransparency=0
  113. fenbarmana2.BackgroundColor3=Torso.Color
  114. fenbarmana2.SizeConstraint="RelativeXY"
  115. fenbarmana2.TextXAlignment="Center"
  116. fenbarmana2.TextYAlignment="Center"
  117. fenbarmana2.Position=UDim2.new(0,0,0,0)
  118. fenbarmana2.Size=UDim2.new(4*mana/100,0,0.2,0)
  119. local fenbarmana3=it("TextLabel")
  120. fenbarmana3.Parent=fenframe
  121. fenbarmana3.Text=" "
  122. fenbarmana3.BackgroundTransparency=0
  123. fenbarmana3.BackgroundColor3=Color3.new(Col1,Col2,Col3)
  124. fenbarmana3.SizeConstraint="RelativeXY"
  125. fenbarmana3.TextXAlignment="Center"
  126. fenbarmana3.TextYAlignment="Center"
  127. fenbarmana3.Position=UDim2.new(0,0,0,0)
  128. fenbarmana3.Size=UDim2.new(0,0,0.2,0)
  129. local fenbarmana4=it("TextLabel")
  130. fenbarmana4.Parent=fenframe
  131. fenbarmana4.Text="Loading interface"
  132. fenbarmana4.BackgroundTransparency=1
  133. fenbarmana4.BackgroundColor3=Color3.new(0,0,0)
  134. fenbarmana4.SizeConstraint="RelativeXY"
  135. fenbarmana4.TextXAlignment="Center"
  136. fenbarmana4.TextYAlignment="Center"
  137. fenbarmana4.Position=UDim2.new(0,0,-0.3,0)
  138. fenbarmana4.Size=UDim2.new(4,0,0.2,0)
  139. fenbarmana4.FontSize="Size9"
  140. fenbarmana4.TextStrokeTransparency=0
  141. fenbarmana4.TextColor=BrickColor.new("White")
  142.  
  143. function part(formfactor,parent,reflectance,transparency,brickcolor,name,size)
  144. local fp=it("Part")
  145. fp.formFactor=formfactor
  146. fp.Parent=parent
  147. fp.Reflectance=reflectance
  148. fp.Transparency=transparency
  149. fp.CanCollide=false
  150. fp.Locked=true
  151. fp.BrickColor=brickcolor
  152. fp.Name=name
  153. fp.Size=size
  154. fp.Position=Torso.Position
  155. NoOutline(fp)
  156. fp.Material="SmoothPlastic"
  157. fp:BreakJoints()
  158. return fp
  159. end
  160.  
  161. function mesh(Mesh,part,meshtype,meshid,offset,scale)
  162. local mesh=it(Mesh)
  163. mesh.Parent=part
  164. if Mesh=="SpecialMesh" then
  165. mesh.MeshType=meshtype
  166. if meshid~="nil" then
  167. mesh.MeshId="http://www.roblox.com/asset/?id="..meshid
  168. end
  169. end
  170. mesh.Offset=offset
  171. mesh.Scale=scale
  172. return mesh
  173. end
  174.  
  175. function weld(parent,part0,part1,c0)
  176. local weld=it("Weld")
  177. weld.Parent=parent
  178. weld.Part0=part0
  179. weld.Part1=part1
  180. weld.C0=c0
  181. return weld
  182. end
  183.  
  184. local Color1=Torso.BrickColor
  185.  
  186. local bodvel=Instance.new("BodyVelocity")
  187. local bg=Instance.new("BodyGyro")
  188.  
  189. function swait(num)
  190. if num==0 or num==nil then
  191. game:service'RunService'.Stepped:wait(0)
  192. else
  193. for i=0,num do
  194. game:service'RunService'.Stepped:wait(0)
  195. end
  196. end
  197. end
  198.  
  199.  
  200. so = function(id,par,vol,pit)
  201. coroutine.resume(coroutine.create(function()
  202. local sou = Instance.new("Sound",par or workspace)
  203. sou.Volume=vol
  204. sou.Pitch=pit or 1
  205. sou.SoundId=id
  206. swait()
  207. sou:play()
  208. game:GetService("Debris"):AddItem(sou,6)
  209. end))
  210. end
  211.  
  212. function clerp(a,b,t)
  213. local qa = {QuaternionFromCFrame(a)}
  214. local qb = {QuaternionFromCFrame(b)}
  215. local ax, ay, az = a.x, a.y, a.z
  216. local bx, by, bz = b.x, b.y, b.z
  217. local _t = 1-t
  218. return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t))
  219. end
  220.  
  221. function QuaternionFromCFrame(cf)
  222. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  223. local trace = m00 + m11 + m22
  224. if trace > 0 then
  225. local s = math.sqrt(1 + trace)
  226. local recip = 0.5/s
  227. return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5
  228. else
  229. local i = 0
  230. if m11 > m00 then
  231. i = 1
  232. end
  233. if m22 > (i == 0 and m00 or m11) then
  234. i = 2
  235. end
  236. if i == 0 then
  237. local s = math.sqrt(m00-m11-m22+1)
  238. local recip = 0.5/s
  239. return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip
  240. elseif i == 1 then
  241. local s = math.sqrt(m11-m22-m00+1)
  242. local recip = 0.5/s
  243. return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip
  244. elseif i == 2 then
  245. local s = math.sqrt(m22-m00-m11+1)
  246. local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip
  247. end
  248. end
  249. end
  250.  
  251. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  252. local xs, ys, zs = x + x, y + y, z + z
  253. local wx, wy, wz = w*xs, w*ys, w*zs
  254. local xx = x*xs
  255. local xy = x*ys
  256. local xz = x*zs
  257. local yy = y*ys
  258. local yz = y*zs
  259. local zz = z*zs
  260. 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))
  261. end
  262.  
  263. function QuaternionSlerp(a, b, t)
  264. local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4]
  265. local startInterp, finishInterp;
  266. if cosTheta >= 0.0001 then
  267. if (1 - cosTheta) > 0.0001 then
  268. local theta = math.acos(cosTheta)
  269. local invSinTheta = 1/math.sin(theta)
  270. startInterp = math.sin((1-t)*theta)*invSinTheta
  271. finishInterp = math.sin(t*theta)*invSinTheta
  272. else
  273. startInterp = 1-t
  274. finishInterp = t
  275. end
  276. else
  277. if (1+cosTheta) > 0.0001 then
  278. local theta = math.acos(-cosTheta)
  279. local invSinTheta = 1/math.sin(theta)
  280. startInterp = math.sin((t-1)*theta)*invSinTheta
  281. finishInterp = math.sin(t*theta)*invSinTheta
  282. else
  283. startInterp = t-1
  284. finishInterp = t
  285. end
  286. end
  287. 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
  288. end
  289.  
  290. function rayCast(Pos, Dir, Max, Ignore) -- Origin Position , Direction, MaxDistance , IgnoreDescendants
  291. return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  292. end
  293.  
  294. function SkullEffect(brickcolor,cframe,x1,y1,z1,delay)
  295. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  296. prt.Anchored=true
  297. prt.CFrame=cframe
  298. local msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=4770583",vt(0,0,0),vt(x1,y1,z1))
  299. --http://www.roblox.com/asset/?id=4770560
  300. game:GetService("Debris"):AddItem(prt,2)
  301. CF=prt.CFrame
  302. coroutine.resume(coroutine.create(function(Part,Mesh,TehCF)
  303. for i=0,1,0.2 do
  304. wait()
  305. Part.CFrame=CF*cf(0,0,-0.4)
  306. end
  307. for i=0,1,delay do
  308. wait()
  309. --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)
  310. Mesh.Scale=Mesh.Scale
  311. end
  312. for i=0,1,0.1 do
  313. wait()
  314. Part.Transparency=i
  315. end
  316. Part.Parent=nil
  317. end),prt,msh,CF)
  318. end
  319.  
  320. function MagicBlock(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  321. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  322. prt.Anchored=true
  323. prt.CFrame=cframe
  324. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  325. game:GetService("Debris"):AddItem(prt,5)
  326. coroutine.resume(coroutine.create(function(Part,Mesh)
  327. for i=0,1,delay do
  328. wait()
  329. Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  330. Part.Transparency=i
  331. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  332. end
  333. Part.Parent=nil
  334. end),prt,msh)
  335. end
  336.  
  337. function MagicBlock2(brickcolor,cframe,Parent,x1,y1,z1,x3,y3,z3,delay)
  338. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  339. prt.Anchored=false
  340. prt.CFrame=cframe
  341. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  342. local wld=weld(prt,prt,Parent,cframe)
  343. game:GetService("Debris"):AddItem(prt,5)
  344. coroutine.resume(coroutine.create(function(Part,Mesh,Weld)
  345. for i=0,1,delay do
  346. wait()
  347. Weld.C0=euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))*cframe
  348. --Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  349. Part.Transparency=i
  350. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  351. end
  352. Part.Parent=nil
  353. end),prt,msh,wld)
  354. end
  355.  
  356. function MagicBlock3(brickcolor,cframe,Parent,x1,y1,z1,x3,y3,z3,delay)
  357. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  358. prt.Anchored=false
  359. prt.CFrame=cframe
  360. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  361. local wld=weld(prt,prt,Parent,euler(0,0,0)*cf(0,0,0))
  362. game:GetService("Debris"):AddItem(prt,5)
  363. coroutine.resume(coroutine.create(function(Part,Mesh,Weld)
  364. for i=0,1,delay do
  365. wait()
  366. Weld.C0=euler(i*20,0,0)
  367. --Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  368. Part.Transparency=i
  369. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  370. end
  371. Part.Parent=nil
  372. end),prt,msh,wld)
  373. end
  374.  
  375. function MagicCircle2(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  376. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  377. prt.Anchored=true
  378. prt.CFrame=cframe
  379. local msh=mesh("CylinderMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  380. game:GetService("Debris"):AddItem(prt,2)
  381. coroutine.resume(coroutine.create(function(Part,Mesh)
  382. for i=0,1,delay do
  383. wait()
  384. Part.CFrame=Part.CFrame
  385. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  386. local prt2=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  387. prt2.Anchored=true
  388. prt2.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  389. local msh2=mesh("SpecialMesh",prt2,"Sphere","",vt(0,0,0),vt(0.5,0.5,0.5))
  390. game:GetService("Debris"):AddItem(prt2,2)
  391. coroutine.resume(coroutine.create(function(Part,Mesh)
  392. for i=0,1,0.1 do
  393. wait()
  394. Part.CFrame=Part.CFrame*cf(0,0.5,0)
  395. end
  396. Part.Parent=nil
  397. end),prt2,msh2)
  398. end
  399. for i=0,1,delay*2 do
  400. wait()
  401. Part.CFrame=Part.CFrame
  402. Mesh.Scale=vt((x1+x3)-(x1+x3)*i,(y1+y3)-(y1+y3)*i,(z1+z3)-(z1+z3)*i)
  403. end
  404. Part.Parent=nil
  405. end),prt,msh)
  406. end
  407.  
  408. function MagicCircle(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  409. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  410. prt.Anchored=true
  411. prt.CFrame=cframe
  412. local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  413. game:GetService("Debris"):AddItem(prt,2)
  414. coroutine.resume(coroutine.create(function(Part,Mesh)
  415. for i=0,1,delay do
  416. wait()
  417. Part.CFrame=Part.CFrame
  418. Part.Transparency=i
  419. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  420. end
  421. Part.Parent=nil
  422. end),prt,msh)
  423. end
  424.  
  425. function MagicRing(brickcolor,cframe,x1,y1,z1,x2,y2,z2,x3,y3,z3)
  426. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  427. prt.Anchored=true
  428. prt.CFrame=cframe*euler(x2,y2,z2)
  429. --"http://www.roblox.com/asset/?id=168892465"
  430. local msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=3270017",vt(0,0,0),vt(x1,y1,z1))
  431. game:GetService("Debris"):AddItem(prt,2)
  432. coroutine.resume(coroutine.create(function(Part,Mesh)
  433. for i=0,1,0.03 do
  434. wait()
  435. Part.CFrame=Part.CFrame
  436. Part.Transparency=i
  437. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  438. end
  439. Part.Parent=nil
  440. end),prt,msh)
  441. end
  442.  
  443. function BreakEffect(brickcolor,cframe,x1,y1,z1)
  444. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  445. prt.Anchored=true
  446. prt.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  447. local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  448. game:GetService("Debris"):AddItem(prt,2)
  449. coroutine.resume(coroutine.create(function(Part,CF,Numbb,randnumb)
  450. CF=Part.CFrame
  451. Numbb=0
  452. randnumb=math.random()/10
  453. rand1=math.random()/10
  454. for i=0,1,rand1 do
  455. wait()
  456. CF=CF*cf(0,math.random()/2,0)
  457. --Part.CFrame=Part.CFrame*euler(0.5,0,0)*cf(0,1,0)
  458. Part.CFrame=CF*euler(Numbb,0,0)
  459. Part.Transparency=i
  460. Numbb=Numbb+randnumb
  461. end
  462. Part.Parent=nil
  463. end),prt,CF,Numbb,randnumb)
  464. end
  465.  
  466. function MagicWaveThing(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  467. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  468. prt.Anchored=true
  469. prt.CFrame=cframe
  470. msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=1051557",vt(0,0,0),vt(x1,y1,z1))
  471. game:GetService("Debris"):AddItem(prt,5)
  472. coroutine.resume(coroutine.create(function(Part,Mesh)
  473. for i=0,1,delay do
  474. wait()
  475. Part.CFrame=Part.CFrame*euler(0,0.7,0)
  476. Part.Transparency=i
  477. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  478. end
  479. Part.Parent=nil
  480. end),prt,msh)
  481. end
  482.  
  483. function WaveEffect(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  484. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  485. prt.Anchored=true
  486. prt.CFrame=cframe
  487. msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=20329976",vt(0,0,0),vt(x1,y1,z1))
  488. game:GetService("Debris"):AddItem(prt,2)
  489. coroutine.resume(coroutine.create(function(Part,Mesh)
  490. for i=0,1,delay do
  491. wait()
  492. Part.CFrame=Part.CFrame*cf(0,y3/2,0)
  493. Part.Transparency=i
  494. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  495. end
  496. Part.Parent=nil
  497. end),prt,msh)
  498. end
  499.  
  500. function StravEffect(brickcolor,cframe,x,y,z,x1,y1,z1,delay)
  501. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  502. prt.Anchored=true
  503. prt.CFrame=cframe*cf(x,y,z)
  504. msh=mesh("SpecialMesh",prt,"FileMesh","rbxassetid://168892363",vt(0,0,0),vt(x1,y1,z1))
  505. game:GetService("Debris"):AddItem(prt,5)
  506. coroutine.resume(coroutine.create(function(Part,Mesh,ex,why,zee)
  507. local num=math.random()
  508. local num2=math.random(-3,2)+math.random()
  509. local numm=0
  510. for i=0,1,delay*2 do
  511. swait()
  512. Part.CFrame=cframe*euler(0,numm*num*10,0)*cf(ex,why,zee)*cf(-i*10,num2,0)
  513. Part.Transparency=i
  514. numm=numm+0.01
  515. end
  516. Part.Parent=nil
  517. Mesh.Parent=nil
  518. end),prt,msh,x,y,z)
  519. end
  520.  
  521. function dmgstart(dmg,what)
  522. hitcon = what.Touched:connect(function(hit)
  523. local hum = hit.Parent:FindFirstChild("Humanoid")
  524. if hum and not hum:IsDescendantOf(Character) then
  525. hum:TakeDamage(dmg)
  526. end
  527. end)
  528. end
  529.  
  530. function dmgstop()
  531. hitcon:disconnect()
  532. end
  533.  
  534. user=game.Players.localPlayer
  535. char=user.Character
  536. mouse=user:GetMouse()
  537. m=Instance.new('Model',char)
  538.  
  539. blocks = {}
  540. function Part(Type, Parent, Name, Transparency, Reflectance, Size, CFrame, Material, BrickColor3)
  541. prt = Instance.new(Type,Parent)
  542. prt.Name = Name
  543. prt.FormFactor = "Custom"
  544. prt.Transparency = Transparency
  545. prt.Reflectance = Reflectance
  546. prt.Size = Size
  547. prt.CFrame = CFrame
  548. prt.Material = Material
  549. prt.TopSurface = 'SmoothNoOutlines'
  550. prt.BottomSurface = 'SmoothNoOutlines'
  551. prt.LeftSurface = 'SmoothNoOutlines'
  552. prt.RightSurface = 'SmoothNoOutlines'
  553. prt.FrontSurface = 'SmoothNoOutlines'
  554. prt.BackSurface = 'SmoothNoOutlines'
  555. prt.BrickColor = BrickColor.new(tostring(BrickColor3))
  556. prt.Anchored = false
  557. prt.CanCollide = false
  558. table.insert(blocks, prt)
  559. return #blocks
  560. end
  561.  
  562. function weldBetween(a, b)
  563. weld = Instance.new("ManualWeld")
  564. weld.Part0 = a
  565. weld.Part1 = b
  566. weld.C0 = CFrame.new()
  567. weld.C1 = b.CFrame:inverse() * a.CFrame
  568. weld.Parent = a
  569. return weld;
  570. end
  571.  
  572. local function CFrameFromTopBack(at, top, back)
  573. local right = top:Cross(back)
  574. return CFrame.new(at.x, at.y, at.z,
  575. right.x, top.x, back.x,
  576. right.y, top.y, back.y,
  577. right.z, top.z, back.z)
  578. end
  579.  
  580. function Triangle(a, b, c)
  581. local edg1 = (c-a):Dot((b-a).unit)
  582. local edg2 = (a-b):Dot((c-b).unit)
  583. local edg3 = (b-c):Dot((a-c).unit)
  584. if edg1 <= (b-a).magnitude and edg1 >= 0 then
  585. a, b, c = a, b, c
  586. elseif edg2 <= (c-b).magnitude and edg2 >= 0 then
  587. a, b, c = b, c, a
  588. elseif edg3 <= (a-c).magnitude and edg3 >= 0 then
  589. a, b, c = c, a, b
  590. else
  591. assert(false, "unreachable")
  592. end
  593.  
  594. local len1 = (c-a):Dot((b-a).unit)
  595. local len2 = (b-a).magnitude - len1
  596. local width = (a + (b-a).unit*len1 - c).magnitude
  597.  
  598. local maincf = CFrameFromTopBack(a, (b-a):Cross(c-b).unit, -(b-a).unit)
  599.  
  600. local list = {}
  601.  
  602. if len1 > 0.01 then
  603. local w1 = Instance.new('WedgePart', m)
  604. game:GetService("Debris"):AddItem(w1,5)
  605. w1.Material = "SmoothPlastic"
  606. w1.FormFactor = 'Custom'
  607. w1.BrickColor = TorsoColor
  608. w1.Transparency = 0
  609. w1.Reflectance = 0
  610. w1.Material = "SmoothPlastic"
  611. w1.CanCollide = false
  612. NoOutline(w1)
  613. local sz = Vector3.new(0.2, width, len1)
  614. w1.Size = sz
  615. local sp = Instance.new("SpecialMesh",w1)
  616. sp.MeshType = "Wedge"
  617. sp.Scale = Vector3.new(0,1,1) * sz/w1.Size
  618. w1:BreakJoints()
  619. w1.Anchored = true
  620. w1.Parent = workspace
  621. w1.Transparency = 0.7
  622. table.insert(Effects,{w1,"Disappear",.01})
  623. w1.CFrame = maincf*CFrame.Angles(math.pi,0,math.pi/2)*CFrame.new(0,width/2,len1/2)
  624. table.insert(list,w1)
  625. end
  626.  
  627. if len2 > 0.01 then
  628. local w2 = Instance.new('WedgePart', m)
  629. game:GetService("Debris"):AddItem(w2,5)
  630. w2.Material = "SmoothPlastic"
  631. w2.FormFactor = 'Custom'
  632. w2.BrickColor = TorsoColor
  633. w2.Transparency = 0
  634. w2.Reflectance = 0
  635. w2.Material = "SmoothPlastic"
  636. w2.CanCollide = false
  637. NoOutline(w2)
  638. local sz = Vector3.new(0.2, width, len2)
  639. w2.Size = sz
  640. local sp = Instance.new("SpecialMesh",w2)
  641. sp.MeshType = "Wedge"
  642. sp.Scale = Vector3.new(0,1,1) * sz/w2.Size
  643. w2:BreakJoints()
  644. w2.Anchored = true
  645. w2.Parent = workspace
  646. w2.Transparency = 0.7
  647. table.insert(Effects,{w2,"Disappear",.01})
  648. w2.CFrame = maincf*CFrame.Angles(math.pi,math.pi,-math.pi/2)*CFrame.new(0,width/2,-len1 - len2/2)
  649. table.insert(list,w2)
  650. end
  651. return unpack(list)
  652. end
  653.  
  654. function NoOutline(Part)
  655. Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
  656. end
  657.  
  658. local Handle = Instance.new("Part", m)
  659. Handle:BreakJoints()
  660. Handle.TopSurface = "Smooth"
  661. Handle.Material = "SmoothPlastic"
  662. Handle.Name = 'Handle'
  663. Handle.Transparency = '0'
  664. Handle.BottomSurface = "Smooth"
  665. Handle.FormFactor = "Custom" Handle.CanCollide = false
  666. Handle.BrickColor = BrickColor.new("Really black")
  667. Handle.Size = Vector3.new(0.347999871, 0.696000099, 0.232000008)
  668. local Handleweld = Instance.new("ManualWeld")
  669. Handleweld.Part0 = Character["Right Arm"]
  670. Handleweld.Part1 = Handle Handleweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  671. 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)
  672. Handleweld.Parent = Character["Right Arm"]
  673.  
  674. local HandleMesh = Instance.new("CylinderMesh",Handle)
  675. HandleMesh.Name = "Mesh"
  676. HandleMesh.Offset = Vector3.new(0, 0, 0)
  677. HandleMesh.Scale = Vector3.new(1, 1, 1)
  678.  
  679. local EnergyBlade = Instance.new("Part", m)
  680. EnergyBlade:BreakJoints()
  681. EnergyBlade.TopSurface = "Smooth"
  682. EnergyBlade.Material = "SmoothPlastic"
  683. EnergyBlade.Transparency = '0.5'
  684. EnergyBlade.Name = 'EnergyBlade'
  685. EnergyBlade.BottomSurface = "Smooth"
  686. EnergyBlade.FormFactor = "Custom" EnergyBlade.CanCollide = false
  687. EnergyBlade.BrickColor = TorsoColor
  688. EnergyBlade.Size = Vector3.new(0.347999871, 2.204, 0.200000003)
  689. local EnergyBladeweld = Instance.new("ManualWeld")
  690. EnergyBladeweld.Part0 = Handle EnergyBladeweld.Part1 = EnergyBlade EnergyBladeweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  691. 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)
  692. EnergyBladeweld.Parent = EnergyBlade
  693. local EnergyBladeMesh = Instance.new("BlockMesh",EnergyBlade)
  694. EnergyBladeMesh.Name = "Mesh"
  695. EnergyBladeMesh.Offset = Vector3.new(0, 0, 0)
  696. EnergyBladeMesh.Scale = Vector3.new(1, 1, 0.579999983)
  697.  
  698. local EnergyBlade = Instance.new("Part", m)
  699. EnergyBlade:BreakJoints()
  700. EnergyBlade.TopSurface = "Smooth"
  701. EnergyBlade.Material = "SmoothPlastic"
  702. EnergyBlade.Transparency = '0.5'
  703. EnergyBlade.Name = 'EnergyBlade'
  704. EnergyBlade.BottomSurface = "Smooth"
  705. EnergyBlade.FormFactor = "Custom" EnergyBlade.CanCollide = false
  706. EnergyBlade.BrickColor = TorsoColor
  707. EnergyBlade.Size = Vector3.new(0.463999867, 0.232000053, 0.200000003)
  708. local EnergyBladeweld = Instance.new("ManualWeld")
  709. EnergyBladeweld.Part0 = Handle EnergyBladeweld.Part1 = EnergyBlade EnergyBladeweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  710. 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)
  711. EnergyBladeweld.Parent = EnergyBlade
  712. local EnergyBladeMesh = Instance.new("BlockMesh",EnergyBlade)
  713. EnergyBladeMesh.Name = "Mesh"
  714. EnergyBladeMesh.Offset = Vector3.new(0, 0, 0)
  715. EnergyBladeMesh.Scale = Vector3.new(1, 1, 0.579999983)
  716.  
  717. local EnergyBlade = Instance.new("Part", m)
  718. EnergyBlade:BreakJoints()
  719. EnergyBlade.TopSurface = "Smooth"
  720. EnergyBlade.Material = "SmoothPlastic"
  721. EnergyBlade.Transparency = '0.5'
  722. EnergyBlade.Name = 'EnergyBlade'
  723. EnergyBlade.BottomSurface = "Smooth"
  724. EnergyBlade.FormFactor = "Custom" EnergyBlade.CanCollide = false
  725. EnergyBlade.BrickColor = TorsoColor
  726. EnergyBlade.Size = Vector3.new(0.347999871, 2.204, 0.200000003)
  727. local EnergyBladeweld = Instance.new("ManualWeld")
  728. EnergyBladeweld.Part0 = Handle EnergyBladeweld.Part1 = EnergyBlade EnergyBladeweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  729. 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)
  730. EnergyBladeweld.Parent = EnergyBlade
  731. local EnergyBladeMesh = Instance.new("BlockMesh",EnergyBlade)
  732. EnergyBladeMesh.Name = "Mesh"
  733. EnergyBladeMesh.Offset = Vector3.new(0, 0, 0)
  734. EnergyBladeMesh.Scale = Vector3.new(1, 1, 0.579999983)
  735.  
  736. local EnergyBlade = Instance.new("Part", m)
  737. EnergyBlade:BreakJoints()
  738. EnergyBlade.TopSurface = "Smooth"
  739. EnergyBlade.Material = "SmoothPlastic"
  740. EnergyBlade.Transparency = '0.5'
  741. EnergyBlade.Name = 'EnergyBlade'
  742. EnergyBlade.BottomSurface = "Smooth"
  743. EnergyBlade.FormFactor = "Custom" EnergyBlade.CanCollide = false
  744. EnergyBlade.BrickColor = TorsoColor
  745. EnergyBlade.Size = Vector3.new(0.231999859, 0.232000053, 0.200000003)
  746. local EnergyBladeweld = Instance.new("ManualWeld")
  747. EnergyBladeweld.Part0 = Handle EnergyBladeweld.Part1 = EnergyBlade EnergyBladeweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  748. 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)
  749. EnergyBladeweld.Parent = EnergyBlade
  750. local EnergyBladeMesh = Instance.new("BlockMesh",EnergyBlade)
  751. EnergyBladeMesh.Name = "Mesh"
  752. EnergyBladeMesh.Offset = Vector3.new(0, 0, 0)
  753. EnergyBladeMesh.Scale = Vector3.new(1, 1, 0.579999983)
  754.  
  755. local EnergyBlade = Instance.new("Part", m)
  756. EnergyBlade:BreakJoints()
  757. EnergyBlade.TopSurface = "Smooth"
  758. EnergyBlade.Material = "SmoothPlastic"
  759. EnergyBlade.Transparency = '0.5'
  760. EnergyBlade.Name = 'EnergyBlade'
  761. EnergyBlade.BottomSurface = "Smooth"
  762. EnergyBlade.FormFactor = "Custom" EnergyBlade.CanCollide = false
  763. EnergyBlade.BrickColor = TorsoColor
  764. EnergyBlade.Size = Vector3.new(0.231999859, 0.232000053, 0.200000003)
  765. local EnergyBladeweld = Instance.new("ManualWeld")
  766. EnergyBladeweld.Part0 = Handle EnergyBladeweld.Part1 = EnergyBlade EnergyBladeweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  767. 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)
  768. EnergyBladeweld.Parent = EnergyBlade
  769. local EnergyBladeMesh = Instance.new("BlockMesh",EnergyBlade)
  770. EnergyBladeMesh.Name = "Mesh"
  771. EnergyBladeMesh.Offset = Vector3.new(0, 0, 0)
  772. EnergyBladeMesh.Scale = Vector3.new(1, 1, 0.579999983)
  773.  
  774. local EnergyBlade = Instance.new("Part", m)
  775. EnergyBlade:BreakJoints()
  776. EnergyBlade.TopSurface = "Smooth"
  777. EnergyBlade.Material = "SmoothPlastic"
  778. EnergyBlade.Transparency = '0.5'
  779. EnergyBlade.Name = 'EnergyBlade'
  780. EnergyBlade.BottomSurface = "Smooth"
  781. EnergyBlade.FormFactor = "Custom" EnergyBlade.CanCollide = false
  782. EnergyBlade.BrickColor = TorsoColor
  783. EnergyBlade.Size = Vector3.new(0.463999867, 0.580000103, 0.200000003)
  784. local EnergyBladeweld = Instance.new("ManualWeld")
  785. EnergyBladeweld.Part0 = Handle EnergyBladeweld.Part1 = EnergyBlade EnergyBladeweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  786. 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)
  787. EnergyBladeweld.Parent = EnergyBlade
  788. local EnergyBladeMesh = Instance.new("BlockMesh",EnergyBlade)
  789. EnergyBladeMesh.Name = "Mesh"
  790. EnergyBladeMesh.Offset = Vector3.new(0, 0, 0)
  791. EnergyBladeMesh.Scale = Vector3.new(1, 1, 0.579999983)
  792.  
  793. local Hitbox = Instance.new("Part", m)
  794. Hitbox:BreakJoints()
  795. Hitbox.TopSurface = "Smooth"
  796. Hitbox.Material = "SmoothPlastic"
  797. Hitbox.Transparency = '1'
  798. Hitbox.Name = 'Hitbox'
  799. Hitbox.BottomSurface = "Smooth"
  800. Hitbox.FormFactor = "Custom" Hitbox.CanCollide = false
  801. Hitbox.BrickColor = TorsoColor
  802. Hitbox.Size = Vector3.new(1.39199984, 2.78399992, 0.200000003)
  803. local Hitboxweld = Instance.new("ManualWeld")
  804. Hitboxweld.Part0 = Handle Hitboxweld.Part1 = Hitbox Hitboxweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  805. 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)
  806. Hitboxweld.Parent = Hitbox
  807. local HitboxMesh = Instance.new("BlockMesh",Hitbox)
  808. HitboxMesh.Name = "Mesh"
  809. HitboxMesh.Offset = Vector3.new(0, 0, 0)
  810. HitboxMesh.Scale = Vector3.new(1, 1, 0.579999983)
  811.  
  812. local Part = Instance.new("Part", m)
  813. Part:BreakJoints()
  814. Part.TopSurface = "Smooth"
  815. Part.Material = "SmoothPlastic"
  816. Part.Transparency = '0'
  817. Part.Name = 'Part'
  818. Part.BottomSurface = "Smooth"
  819. Part.FormFactor = "Custom" Part.CanCollide = false
  820. Part.BrickColor = TorsoColor
  821. Part.Size = Vector3.new(0.347999871, 0.232000083, 0.463999987)
  822. local Partweld = Instance.new("ManualWeld")
  823. Partweld.Part0 = Handle Partweld.Part1 = Part Partweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  824. 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)
  825. Partweld.Parent = Part
  826. local PartMesh = Instance.new("CylinderMesh",Part)
  827. PartMesh.Name = "Mesh"
  828. PartMesh.Offset = Vector3.new(0, 0, 0)
  829. PartMesh.Scale = Vector3.new(1, 1, 1)
  830.  
  831. local Part = Instance.new("Part", m)
  832. Part:BreakJoints()
  833. Part.TopSurface = "Smooth"
  834. Part.Material = "SmoothPlastic"
  835. Part.Transparency = '0'
  836. Part.Name = 'Part'
  837. Part.BottomSurface = "Smooth"
  838. Part.FormFactor = "Custom" Part.CanCollide = false
  839. Part.BrickColor = TorsoColor
  840. Part.Size = Vector3.new(0.347999871, 0.348000079, 0.232000008)
  841. local Partweld = Instance.new("ManualWeld")
  842. Partweld.Part0 = Handle Partweld.Part1 = Part Partweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  843. 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)
  844. Partweld.Parent = Part
  845. local PartMesh = Instance.new("CylinderMesh",Part)
  846. PartMesh.Name = "Mesh"
  847. PartMesh.Offset = Vector3.new(0, 0, 0)
  848. PartMesh.Scale = Vector3.new(1, 1, 1)
  849.  
  850. local Part = Instance.new("Part", m)
  851. Part:BreakJoints()
  852. Part.TopSurface = "Smooth"
  853. Part.Material = "SmoothPlastic"
  854. Part.Transparency = '0'
  855. Part.Name = 'Part'
  856. Part.BottomSurface = "Smooth"
  857. Part.FormFactor = "Custom" Part.CanCollide = false
  858. Part.BrickColor = BrickColor.new("Really black")
  859. Part.Size = Vector3.new(0.200000003, 0.580000043, 0.232000008)
  860. local Partweld = Instance.new("ManualWeld")
  861. Partweld.Part0 = Handle Partweld.Part1 = Part Partweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  862. 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)
  863. Partweld.Parent = Part
  864. local PartMesh = Instance.new("CylinderMesh",Part)
  865. PartMesh.Name = "Mesh"
  866. PartMesh.Offset = Vector3.new(0, 0, 0)
  867. PartMesh.Scale = Vector3.new(0.579999983, 1, 1)
  868.  
  869. local Part = Instance.new("Part", m)
  870. Part:BreakJoints()
  871. Part.TopSurface = "Smooth"
  872. Part.Material = "SmoothPlastic"
  873. Part.Transparency = '0'
  874. Part.Name = 'Part'
  875. Part.BottomSurface = "Smooth"
  876. Part.FormFactor = "Custom" Part.CanCollide = false
  877. Part.BrickColor = BrickColor.new("Really black")
  878. Part.Size = Vector3.new(0.347999871, 0.348000079, 0.232000008)
  879. local Partweld = Instance.new("ManualWeld")
  880. Partweld.Part0 = Handle Partweld.Part1 = Part Partweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  881. 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)
  882. Partweld.Parent = Part
  883. local PartMesh = Instance.new("CylinderMesh",Part)
  884. PartMesh.Name = "Mesh"
  885. PartMesh.Offset = Vector3.new(0, 0, 0)
  886. PartMesh.Scale = Vector3.new(1, 1, 1)
  887.  
  888. local Part = Instance.new("Part", m)
  889. Part:BreakJoints()
  890. Part.TopSurface = "Smooth"
  891. Part.Material = "SmoothPlastic"
  892. Part.Transparency = '0'
  893. Part.Name = 'Part'
  894. Part.BottomSurface = "Smooth"
  895. Part.FormFactor = "Custom" Part.CanCollide = false
  896. Part.BrickColor = TorsoColor
  897. Part.Size = Vector3.new(0.347999871, 0.348000079, 0.232000008)
  898. local Partweld = Instance.new("ManualWeld")
  899. Partweld.Part0 = Handle Partweld.Part1 = Part Partweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  900. 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)
  901. Partweld.Parent = Part
  902. local PartMesh = Instance.new("CylinderMesh",Part)
  903. PartMesh.Name = "Mesh"
  904. PartMesh.Offset = Vector3.new(0, 0, 0)
  905. PartMesh.Scale = Vector3.new(1, 1, 1)
  906.  
  907. local Part = Instance.new("Part", m)
  908. Part:BreakJoints()
  909. Part.TopSurface = "Smooth"
  910. Part.Material = "SmoothPlastic"
  911. Part.Transparency = '0'
  912. Part.Name = 'Part'
  913. Part.BottomSurface = "Smooth"
  914. Part.FormFactor = "Custom" Part.CanCollide = false
  915. Part.BrickColor = BrickColor.new("Really black")
  916. Part.Size = Vector3.new(0.200000003, 0.811999977, 0.34799999)
  917. local Partweld = Instance.new("ManualWeld")
  918. Partweld.Part0 = Handle Partweld.Part1 = Part Partweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  919. 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)
  920. Partweld.Parent = Part
  921. local PartMesh = Instance.new("BlockMesh",Part)
  922. PartMesh.Name = "Mesh"
  923. PartMesh.Offset = Vector3.new(0, 0, 0)
  924. PartMesh.Scale = Vector3.new(0.579999983, 1, 1)
  925.  
  926. local Part = Instance.new("Part", m)
  927. Part:BreakJoints()
  928. Part.TopSurface = "Smooth"
  929. Part.Material = "SmoothPlastic"
  930. Part.Transparency = '0'
  931. Part.Name = 'Part'
  932. Part.BottomSurface = "Smooth"
  933. Part.FormFactor = "Custom" Part.CanCollide = false
  934. Part.BrickColor = BrickColor.new("Really black")
  935. Part.Size = Vector3.new(0.34799999, 0.34799999, 0.34799999)
  936. local Partweld = Instance.new("ManualWeld")
  937. Partweld.Part0 = Handle Partweld.Part1 = Part Partweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  938. 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)
  939. Partweld.Parent = Part
  940. local PartMesh = Instance.new("SpecialMesh",Part)
  941. PartMesh.MeshId = ""
  942. PartMesh.MeshType = Enum.MeshType.Sphere PartMesh.Name = "Mesh"
  943. PartMesh.Offset = Vector3.new(0, 0, 0)
  944. PartMesh.Scale = Vector3.new(1, 1, 1)
  945.  
  946. local Part = Instance.new("Part", m)
  947. Part:BreakJoints()
  948. Part.TopSurface = "Smooth"
  949. Part.Material = "SmoothPlastic"
  950. Part.Transparency = '0'
  951. Part.Name = 'Part'
  952. Part.BottomSurface = "Smooth"
  953. Part.FormFactor = "Custom" Part.CanCollide = false
  954. Part.BrickColor = BrickColor.new("Really black")
  955. Part.Size = Vector3.new(0.200000003, 0.200000003, 0.200000003)
  956. local Partweld = Instance.new("ManualWeld")
  957. Partweld.Part0 = Handle Partweld.Part1 = Part Partweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  958. 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)
  959. Partweld.Parent = Part
  960. local PartMesh = Instance.new("SpecialMesh",Part)
  961. PartMesh.MeshId = ""
  962. PartMesh.MeshType = Enum.MeshType.Sphere PartMesh.Name = "Mesh"
  963. PartMesh.Offset = Vector3.new(0, 0, 0)
  964. PartMesh.Scale = Vector3.new(0.579999983, 0.579999983, 0.579999983)
  965.  
  966. local Part = Instance.new("Part", m)
  967. Part:BreakJoints()
  968. Part.TopSurface = "Smooth"
  969. Part.Material = "SmoothPlastic"
  970. Part.Transparency = '0'
  971. Part.Name = 'Part'
  972. Part.BottomSurface = "Smooth"
  973. Part.FormFactor = "Custom" Part.CanCollide = false
  974. Part.BrickColor = BrickColor.new("Really black")
  975. Part.Size = Vector3.new(1.04399991, 0.200000003, 0.34799999)
  976. local Partweld = Instance.new("ManualWeld")
  977. Partweld.Part0 = Handle Partweld.Part1 = Part Partweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  978. 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)
  979. Partweld.Parent = Part
  980. local PartMesh = Instance.new("BlockMesh",Part)
  981. PartMesh.Name = "Mesh"
  982. PartMesh.Offset = Vector3.new(0, 0, 0)
  983. PartMesh.Scale = Vector3.new(1, 0.580000103, 1)
  984.  
  985. local Part = Instance.new("Part", m)
  986. Part:BreakJoints()
  987. Part.TopSurface = "Smooth"
  988. Part.Material = "SmoothPlastic"
  989. Part.Transparency = '0'
  990. Part.Name = 'Part'
  991. Part.BottomSurface = "Smooth"
  992. Part.FormFactor = "Custom" Part.CanCollide = false
  993. Part.BrickColor = TorsoColor
  994. Part.Size = Vector3.new(0.232000008, 0.232000083, 0.232000008)
  995. local Partweld = Instance.new("ManualWeld")
  996. Partweld.Part0 = Handle Partweld.Part1 = Part Partweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  997. 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)
  998. Partweld.Parent = Part
  999. local PartMesh = Instance.new("SpecialMesh",Part)
  1000. PartMesh.MeshId = ""
  1001. PartMesh.MeshType = Enum.MeshType.Sphere PartMesh.Name = "Mesh"
  1002. PartMesh.Offset = Vector3.new(0, 0, 0)
  1003. PartMesh.Scale = Vector3.new(1, 1, 1)
  1004.  
  1005. local Part = Instance.new("Part", m)
  1006. Part:BreakJoints()
  1007. Part.TopSurface = "Smooth"
  1008. Part.Material = "SmoothPlastic"
  1009. Part.Transparency = '0'
  1010. Part.Name = 'Part'
  1011. Part.BottomSurface = "Smooth"
  1012. Part.FormFactor = "Custom" Part.CanCollide = false
  1013. Part.BrickColor = BrickColor.new("Really black")
  1014. Part.Size = Vector3.new(0.200000003, 1.04400003, 0.34799999)
  1015. local Partweld = Instance.new("ManualWeld")
  1016. Partweld.Part0 = Handle Partweld.Part1 = Part Partweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1017. 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)
  1018. Partweld.Parent = Part
  1019. local PartMesh = Instance.new("CylinderMesh",Part)
  1020. PartMesh.Name = "Mesh"
  1021. PartMesh.Offset = Vector3.new(0, 0, 0)
  1022. PartMesh.Scale = Vector3.new(0.579999983, 1, 1)
  1023.  
  1024. local Part = Instance.new("Part", m)
  1025. Part:BreakJoints()
  1026. Part.TopSurface = "Smooth"
  1027. Part.Material = "SmoothPlastic"
  1028. Part.Transparency = '0'
  1029. Part.Name = 'Part'
  1030. Part.BottomSurface = "Smooth"
  1031. Part.FormFactor = "Custom" Part.CanCollide = false
  1032. Part.BrickColor = BrickColor.new("Really black")
  1033. Part.Size = Vector3.new(0.347999871, 0.200000003, 0.34799999)
  1034. local Partweld = Instance.new("ManualWeld")
  1035. Partweld.Part0 = Handle Partweld.Part1 = Part Partweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1036. 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)
  1037. Partweld.Parent = Part
  1038. local PartMesh = Instance.new("CylinderMesh",Part)
  1039. PartMesh.Name = "Mesh"
  1040. PartMesh.Offset = Vector3.new(0, 0, 0)
  1041. PartMesh.Scale = Vector3.new(1, 0.579999983, 1)
  1042.  
  1043. local Part = Instance.new("Part", m)
  1044. Part:BreakJoints()
  1045. Part.TopSurface = "Smooth"
  1046. Part.Material = "SmoothPlastic"
  1047. Part.Transparency = '0'
  1048. Part.Name = 'Part'
  1049. Part.BottomSurface = "Smooth"
  1050. Part.FormFactor = "Custom" Part.CanCollide = false
  1051. Part.BrickColor = BrickColor.new("Really black")
  1052. Part.Size = Vector3.new(0.811999977, 0.463999987, 0.34799999)
  1053. local Partweld = Instance.new("ManualWeld")
  1054. Partweld.Part0 = Handle Partweld.Part1 = Part Partweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1055. 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)
  1056. Partweld.Parent = Part
  1057. local Part = Instance.new("Part", m)
  1058. Part:BreakJoints()
  1059. Part.TopSurface = "Smooth"
  1060. Part.Material = "SmoothPlastic"
  1061. Part.Transparency = '0'
  1062. Part.Name = 'Part'
  1063. Part.BottomSurface = "Smooth"
  1064. Part.FormFactor = "Custom" Part.CanCollide = false
  1065. Part.BrickColor = BrickColor.new("Really black")
  1066. Part.Size = Vector3.new(0.34799999, 0.34799999, 0.34799999)
  1067. local Partweld = Instance.new("ManualWeld")
  1068. Partweld.Part0 = Handle Partweld.Part1 = Part Partweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1069. 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)
  1070. Partweld.Parent = Part
  1071. local PartMesh = Instance.new("SpecialMesh",Part)
  1072. PartMesh.MeshId = ""
  1073. PartMesh.MeshType = Enum.MeshType.Sphere PartMesh.Name = "Mesh"
  1074. PartMesh.Offset = Vector3.new(0, 0, 0)
  1075. PartMesh.Scale = Vector3.new(1, 1, 1)
  1076.  
  1077. local EnergyBlade = Instance.new("WedgePart", m)
  1078. EnergyBlade:BreakJoints()
  1079. EnergyBlade.TopSurface = "Smooth"
  1080. EnergyBlade.Material = "SmoothPlastic"
  1081. EnergyBlade.Transparency = '0.5'
  1082. EnergyBlade.Name = 'EnergyBlade'
  1083. EnergyBlade.BottomSurface = "Smooth"
  1084. EnergyBlade.FormFactor = "Custom" EnergyBlade.CanCollide = false
  1085. EnergyBlade.BrickColor = TorsoColor
  1086. EnergyBlade.Size = Vector3.new(0.200000003, 0.232000098, 0.232000053)
  1087. local EnergyBladeweld = Instance.new("ManualWeld")
  1088. EnergyBladeweld.Part0 = Handle EnergyBladeweld.Part1 = EnergyBlade EnergyBladeweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1089. 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)
  1090. EnergyBladeweld.Parent = EnergyBlade
  1091. local EnergyBladeMesh = Instance.new("SpecialMesh",EnergyBlade)
  1092. EnergyBladeMesh.MeshId = ""
  1093. EnergyBladeMesh.MeshType = Enum.MeshType.Wedge EnergyBladeMesh.Name = "Mesh"
  1094. EnergyBladeMesh.Offset = Vector3.new(0, 0, 0)
  1095. EnergyBladeMesh.Scale = Vector3.new(0.579999983, 1, 1)
  1096.  
  1097. local EnergyBlade = Instance.new("WedgePart", m)
  1098. EnergyBlade:BreakJoints()
  1099. EnergyBlade.TopSurface = "Smooth"
  1100. EnergyBlade.Material = "SmoothPlastic"
  1101. EnergyBlade.Transparency = '0.5'
  1102. EnergyBlade.Name = 'EnergyBlade'
  1103. EnergyBlade.BottomSurface = "Smooth"
  1104. EnergyBlade.FormFactor = "Custom" EnergyBlade.CanCollide = false
  1105. EnergyBlade.BrickColor = TorsoColor
  1106. EnergyBlade.Size = Vector3.new(0.200000003, 0.580000043, 0.34800005)
  1107. local EnergyBladeweld = Instance.new("ManualWeld")
  1108. EnergyBladeweld.Part0 = Handle EnergyBladeweld.Part1 = EnergyBlade EnergyBladeweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1109. 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)
  1110. EnergyBladeweld.Parent = EnergyBlade
  1111. local EnergyBladeMesh = Instance.new("SpecialMesh",EnergyBlade)
  1112. EnergyBladeMesh.MeshId = ""
  1113. EnergyBladeMesh.MeshType = Enum.MeshType.Wedge EnergyBladeMesh.Name = "Mesh"
  1114. EnergyBladeMesh.Offset = Vector3.new(0, 0, 0)
  1115. EnergyBladeMesh.Scale = Vector3.new(0.579999983, 1, 1)
  1116.  
  1117. local EnergyBlade = Instance.new("WedgePart", m)
  1118. EnergyBlade:BreakJoints()
  1119. EnergyBlade.TopSurface = "Smooth"
  1120. EnergyBlade.Material = "SmoothPlastic"
  1121. EnergyBlade.Transparency = '0.5'
  1122. EnergyBlade.Name = 'EnergyBlade'
  1123. EnergyBlade.BottomSurface = "Smooth"
  1124. EnergyBlade.FormFactor = "Custom" EnergyBlade.CanCollide = false
  1125. EnergyBlade.BrickColor = TorsoColor
  1126. EnergyBlade.Size = Vector3.new(0.200000003, 0.464000076, 0.464000016)
  1127. local EnergyBladeweld = Instance.new("ManualWeld")
  1128. EnergyBladeweld.Part0 = Handle EnergyBladeweld.Part1 = EnergyBlade EnergyBladeweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1129. 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)
  1130. EnergyBladeweld.Parent = EnergyBlade
  1131. local EnergyBladeMesh = Instance.new("SpecialMesh",EnergyBlade)
  1132. EnergyBladeMesh.MeshId = ""
  1133. EnergyBladeMesh.MeshType = Enum.MeshType.Wedge EnergyBladeMesh.Name = "Mesh"
  1134. EnergyBladeMesh.Offset = Vector3.new(0, 0, 0)
  1135. EnergyBladeMesh.Scale = Vector3.new(0.579999983, 1, 1)
  1136.  
  1137. local EnergyBlade = Instance.new("WedgePart", m)
  1138. EnergyBlade:BreakJoints()
  1139. EnergyBlade.TopSurface = "Smooth"
  1140. EnergyBlade.Material = "SmoothPlastic"
  1141. EnergyBlade.Transparency = '0.5'
  1142. EnergyBlade.Name = 'EnergyBlade'
  1143. EnergyBlade.BottomSurface = "Smooth"
  1144. EnergyBlade.FormFactor = "Custom" EnergyBlade.CanCollide = false
  1145. EnergyBlade.BrickColor = TorsoColor
  1146. EnergyBlade.Size = Vector3.new(0.200000003, 2.204, 0.200000003)
  1147. local EnergyBladeweld = Instance.new("ManualWeld")
  1148. EnergyBladeweld.Part0 = Handle EnergyBladeweld.Part1 = EnergyBlade EnergyBladeweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1149. 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)
  1150. EnergyBladeweld.Parent = EnergyBlade
  1151. local EnergyBladeMesh = Instance.new("SpecialMesh",EnergyBlade)
  1152. EnergyBladeMesh.MeshId = ""
  1153. EnergyBladeMesh.MeshType = Enum.MeshType.Wedge EnergyBladeMesh.Name = "Mesh"
  1154. EnergyBladeMesh.Offset = Vector3.new(0, 0, 0)
  1155. EnergyBladeMesh.Scale = Vector3.new(0.579999983, 1, 0.579999983)
  1156.  
  1157. local EnergyBlade = Instance.new("WedgePart", m)
  1158. EnergyBlade:BreakJoints()
  1159. EnergyBlade.TopSurface = "Smooth"
  1160. EnergyBlade.Material = "SmoothPlastic"
  1161. EnergyBlade.Transparency = '0.5'
  1162. EnergyBlade.Name = 'EnergyBlade'
  1163. EnergyBlade.BottomSurface = "Smooth"
  1164. EnergyBlade.FormFactor = "Custom" EnergyBlade.CanCollide = false
  1165. EnergyBlade.BrickColor = TorsoColor
  1166. EnergyBlade.Size = Vector3.new(0.200000003, 0.232000098, 0.232000053)
  1167. local EnergyBladeweld = Instance.new("ManualWeld")
  1168. EnergyBladeweld.Part0 = Handle EnergyBladeweld.Part1 = EnergyBlade EnergyBladeweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1169. 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)
  1170. EnergyBladeweld.Parent = EnergyBlade
  1171. local EnergyBladeMesh = Instance.new("SpecialMesh",EnergyBlade)
  1172. EnergyBladeMesh.MeshId = ""
  1173. EnergyBladeMesh.MeshType = Enum.MeshType.Wedge EnergyBladeMesh.Name = "Mesh"
  1174. EnergyBladeMesh.Offset = Vector3.new(0, 0, 0)
  1175. EnergyBladeMesh.Scale = Vector3.new(0.579999983, 1, 1)
  1176.  
  1177. local EnergyBlade = Instance.new("WedgePart", m)
  1178. EnergyBlade:BreakJoints()
  1179. EnergyBlade.TopSurface = "Smooth"
  1180. EnergyBlade.Material = "SmoothPlastic"
  1181. EnergyBlade.Transparency = '0.5'
  1182. EnergyBlade.Name = 'EnergyBlade'
  1183. EnergyBlade.BottomSurface = "Smooth"
  1184. EnergyBlade.FormFactor = "Custom" EnergyBlade.CanCollide = false
  1185. EnergyBlade.BrickColor = TorsoColor
  1186. EnergyBlade.Size = Vector3.new(0.200000003, 0.232000098, 0.232000053)
  1187. local EnergyBladeweld = Instance.new("ManualWeld")
  1188. EnergyBladeweld.Part0 = Handle EnergyBladeweld.Part1 = EnergyBlade EnergyBladeweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1189. 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)
  1190. EnergyBladeweld.Parent = EnergyBlade
  1191. local EnergyBladeMesh = Instance.new("SpecialMesh",EnergyBlade)
  1192. EnergyBladeMesh.MeshId = ""
  1193. EnergyBladeMesh.MeshType = Enum.MeshType.Wedge EnergyBladeMesh.Name = "Mesh"
  1194. EnergyBladeMesh.Offset = Vector3.new(0, 0, 0)
  1195. EnergyBladeMesh.Scale = Vector3.new(0.579999983, 1, 1)
  1196.  
  1197. local EnergyBlade = Instance.new("WedgePart", m)
  1198. EnergyBlade:BreakJoints()
  1199. EnergyBlade.TopSurface = "Smooth"
  1200. EnergyBlade.Material = "SmoothPlastic"
  1201. EnergyBlade.Transparency = '0.5'
  1202. EnergyBlade.Name = 'EnergyBlade'
  1203. EnergyBlade.BottomSurface = "Smooth"
  1204. EnergyBlade.FormFactor = "Custom" EnergyBlade.CanCollide = false
  1205. EnergyBlade.BrickColor = TorsoColor
  1206. EnergyBlade.Size = Vector3.new(0.200000003, 0.232000098, 0.232000053)
  1207. local EnergyBladeweld = Instance.new("ManualWeld")
  1208. EnergyBladeweld.Part0 = Handle EnergyBladeweld.Part1 = EnergyBlade EnergyBladeweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1209. 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)
  1210. EnergyBladeweld.Parent = EnergyBlade
  1211. local EnergyBladeMesh = Instance.new("SpecialMesh",EnergyBlade)
  1212. EnergyBladeMesh.MeshId = ""
  1213. EnergyBladeMesh.MeshType = Enum.MeshType.Wedge EnergyBladeMesh.Name = "Mesh"
  1214. EnergyBladeMesh.Offset = Vector3.new(0, 0, 0)
  1215. EnergyBladeMesh.Scale = Vector3.new(0.579999983, 1, 1)
  1216.  
  1217. local EnergyBlade = Instance.new("WedgePart", m)
  1218. EnergyBlade:BreakJoints()
  1219. EnergyBlade.TopSurface = "Smooth"
  1220. EnergyBlade.Material = "SmoothPlastic"
  1221. EnergyBlade.Transparency = '0.5'
  1222. EnergyBlade.Name = 'EnergyBlade'
  1223. EnergyBlade.BottomSurface = "Smooth"
  1224. EnergyBlade.FormFactor = "Custom" EnergyBlade.CanCollide = false
  1225. EnergyBlade.BrickColor = TorsoColor
  1226. EnergyBlade.Size = Vector3.new(0.200000003, 0.232000098, 0.232000053)
  1227. local EnergyBladeweld = Instance.new("ManualWeld")
  1228. EnergyBladeweld.Part0 = Handle EnergyBladeweld.Part1 = EnergyBlade EnergyBladeweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1229. 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)
  1230. EnergyBladeweld.Parent = EnergyBlade
  1231. local EnergyBladeMesh = Instance.new("SpecialMesh",EnergyBlade)
  1232. EnergyBladeMesh.MeshId = ""
  1233. EnergyBladeMesh.MeshType = Enum.MeshType.Wedge EnergyBladeMesh.Name = "Mesh"
  1234. EnergyBladeMesh.Offset = Vector3.new(0, 0, 0)
  1235. EnergyBladeMesh.Scale = Vector3.new(0.579999983, 1, 1)
  1236.  
  1237. local EnergyBlade = Instance.new("WedgePart", m)
  1238. EnergyBlade:BreakJoints()
  1239. EnergyBlade.TopSurface = "Smooth"
  1240. EnergyBlade.Material = "SmoothPlastic"
  1241. EnergyBlade.Transparency = '0.5'
  1242. EnergyBlade.Name = 'EnergyBlade'
  1243. EnergyBlade.BottomSurface = "Smooth"
  1244. EnergyBlade.FormFactor = "Custom" EnergyBlade.CanCollide = false
  1245. EnergyBlade.BrickColor = TorsoColor
  1246. EnergyBlade.Size = Vector3.new(0.200000003, 0.232000098, 0.232000053)
  1247. local EnergyBladeweld = Instance.new("ManualWeld")
  1248. EnergyBladeweld.Part0 = Handle EnergyBladeweld.Part1 = EnergyBlade EnergyBladeweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1249. 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)
  1250. EnergyBladeweld.Parent = EnergyBlade
  1251. local EnergyBladeMesh = Instance.new("SpecialMesh",EnergyBlade)
  1252. EnergyBladeMesh.MeshId = ""
  1253. EnergyBladeMesh.MeshType = Enum.MeshType.Wedge EnergyBladeMesh.Name = "Mesh"
  1254. EnergyBladeMesh.Offset = Vector3.new(0, 0, 0)
  1255. EnergyBladeMesh.Scale = Vector3.new(0.579999983, 1, 1)
  1256.  
  1257. local EnergyBlade = Instance.new("WedgePart", m)
  1258. EnergyBlade:BreakJoints()
  1259. EnergyBlade.TopSurface = "Smooth"
  1260. EnergyBlade.Material = "SmoothPlastic"
  1261. EnergyBlade.Transparency = '0.5'
  1262. EnergyBlade.Name = 'EnergyBlade'
  1263. EnergyBlade.BottomSurface = "Smooth"
  1264. EnergyBlade.FormFactor = "Custom" EnergyBlade.CanCollide = false
  1265. EnergyBlade.BrickColor = TorsoColor
  1266. EnergyBlade.Size = Vector3.new(0.200000003, 0.232000098, 0.232000053)
  1267. local EnergyBladeweld = Instance.new("ManualWeld")
  1268. EnergyBladeweld.Part0 = Handle EnergyBladeweld.Part1 = EnergyBlade EnergyBladeweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1269. 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)
  1270. EnergyBladeweld.Parent = EnergyBlade
  1271. local EnergyBladeMesh = Instance.new("SpecialMesh",EnergyBlade)
  1272. EnergyBladeMesh.MeshId = ""
  1273. EnergyBladeMesh.MeshType = Enum.MeshType.Wedge EnergyBladeMesh.Name = "Mesh"
  1274. EnergyBladeMesh.Offset = Vector3.new(0, 0, 0)
  1275. EnergyBladeMesh.Scale = Vector3.new(0.579999983, 1, 1)
  1276.  
  1277. local Wedge = Instance.new("WedgePart", m)
  1278. Wedge:BreakJoints()
  1279. Wedge.TopSurface = "Smooth"
  1280. Wedge.Material = "SmoothPlastic"
  1281. Wedge.Transparency = '0'
  1282. Wedge.Name = 'Wedge'
  1283. Wedge.BottomSurface = "Smooth"
  1284. Wedge.FormFactor = "Custom" Wedge.CanCollide = false
  1285. Wedge.BrickColor = BrickColor.new("Really black")
  1286. Wedge.Size = Vector3.new(0.347999871, 0.463999987, 0.232000008)
  1287. local Wedgeweld = Instance.new("ManualWeld")
  1288. Wedgeweld.Part0 = Handle Wedgeweld.Part1 = Wedge Wedgeweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1289. 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)
  1290. Wedgeweld.Parent = Wedge
  1291. local Wedge = Instance.new("WedgePart", m)
  1292. Wedge:BreakJoints()
  1293. Wedge.TopSurface = "Smooth"
  1294. Wedge.Material = "SmoothPlastic"
  1295. Wedge.Transparency = '0'
  1296. Wedge.Name = 'Wedge'
  1297. Wedge.BottomSurface = "Smooth"
  1298. Wedge.FormFactor = "Custom" Wedge.CanCollide = false
  1299. Wedge.BrickColor = BrickColor.new("Really black")
  1300. Wedge.Size = Vector3.new(0.347999871, 0.812000036, 0.580000043)
  1301. local Wedgeweld = Instance.new("ManualWeld")
  1302. Wedgeweld.Part0 = Handle Wedgeweld.Part1 = Wedge Wedgeweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1303. 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)
  1304. Wedgeweld.Parent = Wedge
  1305. local Wedge = Instance.new("WedgePart", m)
  1306. Wedge:BreakJoints()
  1307. Wedge.TopSurface = "Smooth"
  1308. Wedge.Material = "SmoothPlastic"
  1309. Wedge.Transparency = '0.5'
  1310. Wedge.Name = 'Wedge'
  1311. Wedge.BottomSurface = "Smooth"
  1312. Wedge.FormFactor = "Custom" Wedge.CanCollide = false
  1313. Wedge.BrickColor = TorsoColor
  1314. Wedge.Size = Vector3.new(0.200000003, 0.232000098, 0.232000053)
  1315. local Wedgeweld = Instance.new("ManualWeld")
  1316. Wedgeweld.Part0 = Handle Wedgeweld.Part1 = Wedge Wedgeweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1317. 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)
  1318. Wedgeweld.Parent = Wedge
  1319. local WedgeMesh = Instance.new("SpecialMesh",Wedge)
  1320. WedgeMesh.MeshId = ""
  1321. WedgeMesh.MeshType = Enum.MeshType.Wedge WedgeMesh.Name = "Mesh"
  1322. WedgeMesh.Offset = Vector3.new(0, 0, 0)
  1323. WedgeMesh.Scale = Vector3.new(0.579999983, 1, 1)
  1324.  
  1325. function Cloak()
  1326. Face.Parent=nil
  1327. cloaked=true
  1328. for _,v in pairs(Torso.Parent:children()) do
  1329. if v.className=="Part" and v.Name~="HumanoidRootPart" then
  1330. coroutine.resume(coroutine.create(function()
  1331. for i=0,1,0.2 do
  1332. wait()
  1333. v.Transparency=i
  1334. end
  1335. v.Transparency=1
  1336. end))
  1337. end
  1338. if v.className=="Hat" then
  1339. hatp=v.Handle
  1340. coroutine.resume(coroutine.create(function(derp)
  1341. for i=0,1,0.2 do
  1342. wait()
  1343. derp.Transparency=i
  1344. end
  1345. derp.Transparency=1
  1346. end),hatp)
  1347. end
  1348. end
  1349. for _,v in pairs(blocks) do
  1350. if v.className=="Part" then
  1351. coroutine.resume(coroutine.create(function()
  1352. for i=0,1,0.2 do
  1353. wait()
  1354. v.Transparency=i
  1355. end
  1356. v.Transparency=1
  1357. end))
  1358. end
  1359. end
  1360. end
  1361.  
  1362. Damagefunc=function(hit,minim,maxim,knockback,Type,Property,Delay,KnockbackType,decreaseblock)
  1363. if hit.Parent==nil then
  1364. return
  1365. end
  1366. h=hit.Parent:FindFirstChild("Humanoid")
  1367. for _,v in pairs(hit.Parent:children()) do
  1368. if v:IsA("Humanoid") then
  1369. h=v
  1370. end
  1371. end
  1372. if hit.Parent.Parent:FindFirstChild("Torso")~=nil then
  1373. h=hit.Parent.Parent:FindFirstChild("Humanoid")
  1374. end
  1375. if hit.Parent.className=="Hat" then
  1376. hit=hit.Parent.Parent:findFirstChild("Head")
  1377. end
  1378. if h~=nil and hit.Parent.Name~=Character.Name and hit.Parent:FindFirstChild("Torso")~=nil then
  1379. if hit.Parent:findFirstChild("DebounceHit")~=nil then if hit.Parent.DebounceHit.Value==true then return end end
  1380. --[[ if game.Players:GetPlayerFromCharacter(hit.Parent)~=nil then
  1381. return
  1382. end]]
  1383. -- hs(hit,1.2)
  1384. c=Instance.new("ObjectValue")
  1385. c.Name="creator"
  1386. c.Value=game:service("Players").LocalPlayer
  1387. c.Parent=h
  1388. game:GetService("Debris"):AddItem(c,.5)
  1389. Damage=math.random(minim,maxim)
  1390. -- h:TakeDamage(Damage)
  1391. blocked=false
  1392. block=hit.Parent:findFirstChild("Block")
  1393. if block~=nil then
  1394. print(block.className)
  1395. if block.className=="NumberValue" then
  1396. if block.Value>0 then
  1397. blocked=true
  1398. if decreaseblock==nil then
  1399. block.Value=block.Value-1
  1400. end
  1401. end
  1402. end
  1403. if block.className=="IntValue" then
  1404. if block.Value>0 then
  1405. blocked=true
  1406. if decreaseblock~=nil then
  1407. block.Value=block.Value-1
  1408. end
  1409. end
  1410. end
  1411. end
  1412. if blocked==false then
  1413. -- h:TakeDamage(Damage)
  1414. h.Health=h.Health-Damage
  1415. showDamage(hit.Parent,Damage,.5,TorsoColor)
  1416. else
  1417. h.Health=h.Health-(Damage/2)
  1418. showDamage(hit.Parent,Damage/2,.5,BrickColor.new("Bright blue"))
  1419. end
  1420. if Type=="Knockdown" then
  1421. hum=hit.Parent.Humanoid
  1422. hum.PlatformStand=true
  1423. coroutine.resume(coroutine.create(function(HHumanoid)
  1424. swait(1)
  1425. HHumanoid.PlatformStand=false
  1426. end),hum)
  1427. local angle=(hit.Position-(Property.Position+Vector3.new(0,0,0))).unit
  1428. --hit.CFrame=CFrame.new(hit.Position,Vector3.new(angle.x,hit.Position.y,angle.z))*CFrame.fromEulerAnglesXYZ(math.pi/4,0,0)
  1429. local bodvol=Instance.new("BodyVelocity")
  1430. bodvol.velocity=angle*knockback
  1431. bodvol.P=5000
  1432. bodvol.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
  1433. bodvol.Parent=hit
  1434. rl=Instance.new("BodyAngularVelocity")
  1435. rl.P=3000
  1436. rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000
  1437. rl.angularvelocity=Vector3.new(math.random(-10,10),math.random(-10,10),math.random(-10,10))
  1438. rl.Parent=hit
  1439. game:GetService("Debris"):AddItem(bodvol,.5)
  1440. game:GetService("Debris"):AddItem(rl,.5)
  1441. elseif Type=="Normal" then
  1442. vp=Instance.new("BodyVelocity")
  1443. vp.P=500
  1444. vp.maxForce=Vector3.new(math.huge,0,math.huge)
  1445. -- vp.velocity=Character.Torso.CFrame.lookVector*Knockback
  1446. if KnockbackType==1 then
  1447. vp.velocity=Property.CFrame.lookVector*knockback+Property.Velocity/1.05
  1448. elseif KnockbackType==2 then
  1449. vp.velocity=Property.CFrame.lookVector*knockback
  1450. end
  1451. if knockback>0 then
  1452. vp.Parent=hit.Parent.Torso
  1453. end
  1454. game:GetService("Debris"):AddItem(vp,.5)
  1455. elseif Type=="Up" then
  1456. local bodyVelocity=Instance.new("BodyVelocity")
  1457. bodyVelocity.velocity=vt(0,60,0)
  1458. bodyVelocity.P=5000
  1459. bodyVelocity.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
  1460. bodyVelocity.Parent=hit
  1461. game:GetService("Debris"):AddItem(bodyVelocity,1)
  1462. rl=Instance.new("BodyAngularVelocity")
  1463. rl.P=3000
  1464. rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000
  1465. rl.angularvelocity=Vector3.new(math.random(-30,30),math.random(-30,30),math.random(-30,30))
  1466. rl.Parent=hit
  1467. game:GetService("Debris"):AddItem(rl,.5)
  1468. elseif Type=="Snare" then
  1469. bp=Instance.new("BodyPosition")
  1470. bp.P=2000
  1471. bp.D=100
  1472. bp.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  1473. bp.position=hit.Parent.Torso.Position
  1474. bp.Parent=hit.Parent.Torso
  1475. game:GetService("Debris"):AddItem(bp,1)
  1476. elseif Type=="Target" then
  1477. if Targetting==false then
  1478. ZTarget=hit.Parent.Torso
  1479. coroutine.resume(coroutine.create(function(Part)
  1480. so("http://www.roblox.com/asset/?id=15666462",Part,1,1.5)
  1481. swait(5)
  1482. so("http://www.roblox.com/asset/?id=15666462",Part,1,1.5)
  1483. end),ZTarget)
  1484. TargHum=ZTarget.Parent:findFirstChild("Humanoid")
  1485. targetgui=Instance.new("BillboardGui")
  1486. targetgui.Parent=ZTarget
  1487. targetgui.Size=UDim2.new(10,100,10,100)
  1488. targ=Instance.new("ImageLabel")
  1489. targ.Parent=targetgui
  1490. targ.BackgroundTransparency=1
  1491. targ.Image="rbxassetid://4834067"
  1492. targ.Size=UDim2.new(1,0,1,0)
  1493. cam.CameraType="Scriptable"
  1494. cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
  1495. dir=Vector3.new(cam.CoordinateFrame.lookVector.x,0,cam.CoordinateFrame.lookVector.z)
  1496. workspace.CurrentCamera.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
  1497. Targetting=true
  1498. RocketTarget=ZTarget
  1499. for i=1,Property do
  1500. --while Targetting==true and Humanoid.Health>0 and Character.Parent~=nil do
  1501. if Humanoid.Health>0 and Character.Parent~=nil and TargHum.Health>0 and TargHum.Parent~=nil and Targetting==true then
  1502. swait()
  1503. end
  1504. --workspace.CurrentCamera.CoordinateFrame=CFrame.new(Head.CFrame.p,Head.CFrame.p+rmdir*100)
  1505. cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
  1506. dir=Vector3.new(cam.CoordinateFrame.lookVector.x,0,cam.CoordinateFrame.lookVector.z)
  1507. cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)*cf(0,5,10)*euler(-0.3,0,0)
  1508. end
  1509. Targetting=false
  1510. RocketTarget=nil
  1511. targetgui.Parent=nil
  1512. cam.CameraType="Custom"
  1513. end
  1514. end
  1515. debounce=Instance.new("BoolValue")
  1516. debounce.Name="DebounceHit"
  1517. debounce.Parent=hit.Parent
  1518. debounce.Value=true
  1519. game:GetService("Debris"):AddItem(debounce,Delay)
  1520. c=Instance.new("ObjectValue")
  1521. c.Name="creator"
  1522. c.Value=Player
  1523. c.Parent=h
  1524. game:GetService("Debris"):AddItem(c,.5)
  1525. CRIT=false
  1526. hitDeb=true
  1527. AttackPos=6
  1528. end
  1529. end
  1530.  
  1531. showDamage=function(Char,Dealt,du,Color)
  1532. m=Instance.new("Model")
  1533. m.Name=tostring(Dealt)
  1534. h=Instance.new("Humanoid")
  1535. h.Health=0
  1536. h.MaxHealth=0
  1537. h.Parent=m
  1538. c=Instance.new("Part")
  1539. c.Transparency=0
  1540. c.BrickColor=Color
  1541. c.Name="Head"
  1542. c.TopSurface=0
  1543. c.BottomSurface=0
  1544. c.formFactor="Plate"
  1545. c.Size=Vector3.new(1,.4,1)
  1546. ms=Instance.new("CylinderMesh")
  1547. ms.Scale=Vector3.new(.8,.8,.8)
  1548. if CRIT==true then
  1549. ms.Scale=Vector3.new(1,1.25,1)
  1550. end
  1551. ms.Parent=c
  1552. c.Reflectance=0
  1553. Instance.new("BodyGyro").Parent=c
  1554. c.Parent=m
  1555. if Char:findFirstChild("Head")~=nil then
  1556. c.CFrame=CFrame.new(Char["Head"].CFrame.p+Vector3.new(0,1.5,0))
  1557. elseif Char.Parent:findFirstChild("Head")~=nil then
  1558. c.CFrame=CFrame.new(Char.Parent["Head"].CFrame.p+Vector3.new(0,1.5,0))
  1559. end
  1560. f=Instance.new("BodyPosition")
  1561. f.P=2000
  1562. f.D=100
  1563. f.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  1564. f.position=c.Position+Vector3.new(0,3,0)
  1565. f.Parent=c
  1566. game:GetService("Debris"):AddItem(m,.5+du)
  1567. c.CanCollide=false
  1568. m.Parent=workspace
  1569. c.CanCollide=false
  1570. end
  1571.  
  1572. function UnCloak()
  1573. so("http://roblox.com/asset/?id=2767090",Torso,1,1.1)
  1574. Face.Parent=Head
  1575. cloaked=false
  1576. for _,v in pairs(Torso.Parent:children()) do
  1577. if v.className=="Part" and v.Name~="HumanoidRootPart" then
  1578. coroutine.resume(coroutine.create(function()
  1579. for i=0,1,0.1 do
  1580. wait()
  1581. v.Transparency=v.Transparency-0.1
  1582. end
  1583. v.Transparency=0
  1584. end))
  1585. end
  1586. if v.className=="Hat" then
  1587. hatp=v.Handle
  1588. coroutine.resume(coroutine.create(function(derp)
  1589. for i=0,1,0.1 do
  1590. wait()
  1591. derp.Transparency=derp.Transparency-0.1
  1592. end
  1593. derp.Transparency=0
  1594. end),hatp)
  1595. end
  1596. end
  1597. for _,v in pairs(blocks) do
  1598. if v.className=="Part" and v.Name~="Hitbox" and v.Name~='tip' then
  1599. coroutine.resume(coroutine.create(function()
  1600. for i=0,1,0.1 do
  1601. wait()
  1602. v.Transparency=v.Transparency-0.1
  1603. end
  1604. v.Transparency=0
  1605. end))
  1606. v.Transparency=0
  1607. end
  1608. end
  1609. end
  1610. meshids = {["penguin"] = 15853464, ["ring"] = 3270017,
  1611. ["spike"] = 1033714,["cone"] = 1082802,["crown"] = 20329976,["crossbow"] = 15886761,
  1612. ["cloud"] = 1095708,["mjolnir"] = 1279013,["diamond"] = 9756362, ["hand"] = 37241605,
  1613. ["fist"] = 65322375,["skull"] = 36869983,["totem"] = 35624068,["spikeb"] = 9982590,["dragon"] = 58430372,["fish"] = 31221717, ["coffee"] = 15929962,["spiral"] = 1051557,
  1614. ["ramen"] = 19380188,["lightning"] = 72583597,["bullet"]=2697549}---some meshids
  1615. textureids = {["cone"] = 1082804,["rainbow"] = 28488599,["fish"] = 31221733, ["coffee"] = 24181455,["monster"] = 33366441,["ramen"] = 19380153}
  1616. soundids = {["bell"] = 20005706,["flintlock"] = 13510352,["falcon"] = 1387390,['sensa'] = 4700455,
  1617. ['midas'] = 17385513;
  1618. ['spark'] = 10756118;
  1619. ['boom'] = 10730819;
  1620. ['plank'] = 10548112;
  1621. ['harmonica1'] = 33069371;
  1622. ['harmonica2'] = 33069412;
  1623. ['thump'] = 10730819;
  1624. }
  1625.  
  1626. cfn,ang,v3n,ud2n,V2 = CFrame.new,CFrame.Angles,Vector3.new,UDim2.new,Vector2.new
  1627.  
  1628. M = {["R"] = function(a,b) return math.random(a,b) end,
  1629. ["Cos"] = function(a) return math.cos(a) end,
  1630. ["Sin"] = function(a) return math.sin(a) end,
  1631. ["D"] = function(a) return math.rad(a) end
  1632. }
  1633.  
  1634. T = {["P"] = function(x,y,z,color,transparency,cancollide,anchored,parent,typee)
  1635. if typee == 'wedge' then
  1636. c = Instance.new("WedgePart",m)
  1637. elseif typee == 'seat' then
  1638. c = Instance.new("Seat",m)
  1639. elseif typee == 'vseat' then
  1640. c = Instance.new("VehicleSeat",m)
  1641. else
  1642. c = Instance.new("Part",m)
  1643. end
  1644. c.TopSurface,c.BottomSurface = 0,0
  1645. c.Locked = true
  1646. c.formFactor = "Custom"
  1647. c.Size = Vector3.new(x,y,z)
  1648. if color ~= "random" then
  1649. c.BrickColor = BrickColor.new(color)
  1650. else c.BrickColor = BrickColor:random()
  1651. end
  1652. c.Transparency = transparency
  1653. c.CanCollide = cancollide
  1654. if anchored ~= nil then c.Anchored = anchored end
  1655. if parent ~= nil then c.Parent = parent end
  1656. return c
  1657. end
  1658. ,
  1659. ["C"] = function(func) coroutine.resume(coroutine.create(func)) end
  1660. ,
  1661. ["W"] = function(part0,part1,x,y,z,rx,ry,rz,parent)
  1662. w = Instance.new("Motor",m)
  1663. if parent ~= nil then w.Parent = parent end
  1664. w.Part0,w.Part1 = part0,part1
  1665. w.C1 = CFrame.new(x,y,z) * CFrame.Angles(rx,ry,rz)
  1666. return w
  1667. end
  1668. ,
  1669. ["BG"] = function(parent)
  1670. local c = Instance.new("BodyGyro",parent)
  1671. c.P = 20e+003
  1672. c.cframe = parent.CFrame
  1673. c.maxTorque = Vector3.new(c.P,c.P,c.P)
  1674. return c
  1675. end
  1676. ,
  1677. ["BP"] = function(parent,position)
  1678. local bp = Instance.new("BodyPosition",parent)
  1679. bp.maxForce = Vector3.new()*math.huge
  1680. bp.position = position
  1681. return bp
  1682. end
  1683. ,
  1684. ["F"] = function(parent,size,heat,color,secondcolor,enabled)
  1685. f = Instance.new("Fire",parent)
  1686. f.Size = size
  1687. f.Heat = heat
  1688. if enabled ~= nil then f.Enabled = enabled end
  1689. if color ~= nil then f.Color = BrickColor.new(color).Color end
  1690. if secondcolor ~= nil then f.SecondaryColor = BrickColor.new(secondcolor).Color end
  1691. return f
  1692. end
  1693. ,
  1694. ["FM"] = function(parent,meshid,x,y,z,meshtexture)
  1695. if meshid == "cylinder" then
  1696. mesh = Instance.new("CylinderMesh",parent)
  1697. mesh.Scale = Vector3.new(x,y,z)
  1698. return mesh
  1699. elseif meshid == 'block' then
  1700. mesh = Instance.new("BlockMesh",parent)
  1701. mesh.Scale = Vector3.new(x,y,z)
  1702. return mesh
  1703. end
  1704. mesh = Instance.new("SpecialMesh",parent)
  1705. if meshid == 'wedge' then
  1706. mesh.MeshType = 'Wedge'
  1707. elseif meshid == 'sphere' then
  1708. mesh.MeshType = 3
  1709. elseif type(meshid) == "number" then
  1710. mesh.MeshId = "rbxassetid://"..meshid
  1711. else
  1712. mesh.MeshId = "rbxassetid://"..meshids[meshid]
  1713. end
  1714. mesh.Scale = Vector3.new(x,y,z)
  1715. if meshtexture then
  1716. if type(meshtexture) == "number" then mesh.TextureId = "rbxassetid://"..meshtexture else
  1717. mesh.TextureId = "rbxassetid://"..textureids[meshtexture] end
  1718. end
  1719. return mesh
  1720. end,
  1721. ["Dec"] = function(parent,face,id,transparency)
  1722. c = Instance.new("Decal",parent)
  1723. c.Face = face
  1724. c.Texture = id
  1725. if transparency then c.Transparency = transparency end
  1726. return c
  1727. end,
  1728. ["S"] = function(id,pitch,volume,parent)
  1729. cur = nil
  1730. found = false
  1731. if type(id) == 'string' then
  1732. for i,v in pairs(char.Head:children()) do
  1733. if v:IsA("Sound") and v.Name == id and not found then
  1734. cur = v
  1735. if parent then cur = v:Clone() cur.Parent = parent end
  1736. cur.Pitch = pitch
  1737. if volume then cur.Volume = volume end
  1738. cur:Play()
  1739. found = true
  1740. return cur
  1741. end
  1742. end
  1743. elseif type(id) == 'number' then
  1744. local a = char.Head:FindFirstChild('exteo')
  1745. a.SoundId = 'rbxassetid://'..id
  1746. a.Pitch = pitch
  1747. if volume then a.Volume = volume end
  1748. a:Play()
  1749. return a
  1750. end
  1751. end
  1752. }
  1753.  
  1754. function damage(hit,amount,delay)
  1755. for i,v in pairs(hit:children()) do
  1756. if v:IsA("Humanoid") and v.Parent ~= char then
  1757. if delay then
  1758. local found = v:FindFirstChild('tag')
  1759. if not found then
  1760. local a = Instance.new("StringValue",v)
  1761. a.Name = 'tag ur it'
  1762. game:service'Debris':AddItem(a,delay)
  1763. v.Health = v.Health - amount
  1764. end
  1765. else v.Health = v.Health - amount
  1766. end
  1767. end
  1768. end
  1769. end
  1770.  
  1771. function lightning(startpos,endpos,times,offse,livetime,col,dmg)
  1772. local curpos = startpos
  1773. for i = 1,times do
  1774. local mag = (startpos-endpos).magnitude
  1775. local offs = {-offse,offse}
  1776. local offset = v3n(offs[M.R(1,2)],offs[M.R(1,2)],offs[M.R(1,2)])
  1777. laz = T.P(.1,.1,mag/times,col,0,false,true,m)
  1778. laz.Parent=m
  1779. laz.Transparency=.5
  1780. if dmg then laz.Touched:connect(function(hit) dmgstart(laz,5) end) end
  1781. local apos = (cfn(curpos,endpos)*cfn(0,0,-mag/times)).p+offset
  1782. if times == i then
  1783. local mag2 = (curpos-endpos).magnitude
  1784. laz.Size = v3n(.1,.1,mag2)
  1785. laz.CFrame = cfn(curpos,endpos)*cfn(0,0,-mag2/2)
  1786. else
  1787. laz.CFrame = cfn(curpos,apos)*cfn(0,0,-mag/times/2)
  1788. end
  1789. curpos = laz.CFrame*cfn(0,0,-mag/times/2).p game:service'Debris':AddItem(laz,livetime)
  1790. pcall(function()
  1791. dmgstop()
  1792. end)
  1793. end
  1794. end
  1795.  
  1796. mouse.Button1Down:connect(function()
  1797. if attack==false then
  1798. if attacktype==1 then
  1799. attack=true
  1800. attacktype=2
  1801. attackone()
  1802. elseif attacktype==2 then
  1803. attack=true
  1804. attacktype=3
  1805. attacktwo()
  1806. elseif attacktype==3 then
  1807. attack=true
  1808. attacktype=4
  1809. attackthree()
  1810. elseif attacktype==4 then
  1811. attack=true
  1812. attacktype=1
  1813. attackfour()
  1814. end
  1815. end
  1816. end)
  1817.  
  1818. mouse.KeyDown:connect(function(k)
  1819. k=k:lower()
  1820. if k=='q' then
  1821. if attack==false and mana>=30 then
  1822. Bash()
  1823. end
  1824. elseif k=='e' then
  1825. if attack==false and mana>=50 then
  1826. Impulse()
  1827. end
  1828. elseif k=='0' then
  1829. if attack==false then
  1830. Humanoid.WalkSpeed = 32
  1831. end
  1832. end
  1833. end)
  1834. function Impulse()
  1835. mana=mana-50
  1836. attack=true
  1837. for i=0,1,0.1 do
  1838. swait()
  1839. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,1),.3)
  1840. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,-1.5),.3)
  1841. RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*euler(1.5,-1.5,0)*euler(-.5,0,0),.3)
  1842. LW.C0=clerp(LW.C0,cf(-1,0.5,-0.5)*euler(1.5,-1.5,0)*euler(.5,0,0),.3)
  1843. RH.C0=clerp(RH.C0,RHC0*euler(-.2,0,0),.3)
  1844. LH.C0=clerp(LH.C0,LHC0*euler(-.2,0,0),.3)
  1845. Handleweld.C0=clerp(Handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.5)
  1846. end
  1847. so("http://roblox.com/asset/?id=231917801",Hitbox,1,1)
  1848. con1=Hitbox.Touched:connect(function(hit) Damagefunc(hit,10,20,math.random(5,10),"Normal",RootPart,.2,1) end)
  1849. for i=1,2 do
  1850. for i=0,1,0.1 do
  1851. swait()
  1852. RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*euler(1.5,-1.5,0)*euler(-.5,0,0),.3)
  1853. LW.C0=clerp(LW.C0,cf(-1,0.5,-0.5)*euler(1.5,-1.5,0)*euler(.5,0,0),.3)
  1854. RootJoint.C0=RootCF*euler(0,0,6.6*i)
  1855. Handleweld.C0=clerp(Handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.5)
  1856. end
  1857. end
  1858. for i=0,1,0.1 do
  1859. swait()
  1860. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,-1),.4)
  1861. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,1.5),.3)
  1862. RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*euler(1.5,-1.5,0)*euler(-.5,0,0),.3)
  1863. LW.C0=clerp(LW.C0,cf(-1,0.5,-0.5)*euler(1.5,-1.5,0)*euler(.5,0,0),.3)
  1864. RH.C0=clerp(RH.C0,RHC0*euler(-.2,0,0),.3)
  1865. LH.C0=clerp(LH.C0,LHC0*euler(-.2,0,0),.3)
  1866. Handleweld.C0=clerp(Handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.5)
  1867. end
  1868. attack = false
  1869. con1:disconnect()
  1870. end
  1871.  
  1872. function Bash()
  1873. mana=mana-30
  1874. attack=true
  1875. for i=0,1,0.15 do
  1876. swait()
  1877. --wld1.C0=clerp(wld1.C0,euler(1.1,0,0)*cf(0,1,-0.4),.3)
  1878. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,1)*euler(0.5,0,0),.3)
  1879. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,-1.4),.3)
  1880. RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*euler(1.4,-1.4,0)*euler(-.6,0,0),.3)
  1881. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(1,-1,0)*euler(.5,0,0),.3)
  1882. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0,2.5,0),.3)
  1883. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(0,-1,0),.3)
  1884. Handleweld.C0=clerp(Handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.5)
  1885. end
  1886. Torso.Velocity=RootPart.CFrame.lookVector*100
  1887. so("http://roblox.com/asset/?id=200632211",Torso,1,.75)
  1888. swait(5)
  1889. con1=Hitbox.Touched:connect(function(hit) Damagefunc(hit,10,20,math.random(5,10),"Normal",RootPart,.2,1) end)
  1890. for i=0,1,0.1 do
  1891. swait()
  1892. --wld1.C0=clerp(wld1.C0,euler(1.1,0,0)*cf(0,1,-0.4),.3)
  1893. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,1.4)*euler(-0.2,0,0),.3)
  1894. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,-1.4+6*i),.3)
  1895. RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*euler(3,-1.4,0)*euler(-.6,0,0),.3)
  1896. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(2.3,-1.4,0)*euler(.5,0,0),.3)
  1897. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0,1.57,0),.3)
  1898. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(0,-1.57,0),.3)
  1899. Handleweld.C0=clerp(Handleweld.C0,cf(0,0,0)*angles(math.rad(20),math.rad(0),math.rad(0)),.5)
  1900. end
  1901. so("http://roblox.com/asset/?id=233856140",Hitbox,1,0.8)
  1902. for i=0,1,0.1 do
  1903. swait()
  1904. --wld1.C0=clerp(wld1.C0,euler(2.2,0,0)*cf(0,.8,-0.3),.3)
  1905. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,1.4)*euler(0.4,0,0),.3)
  1906. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,-1.4),.3)
  1907. --RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-1.3)*euler(0,0,-1.4),.3)
  1908. RW.C0=clerp(RW.C0,cf(.5,0.2,-0.5)*euler(3,-1.4,0)*euler(-2.7,0,0),.3)
  1909. LW.C0=clerp(LW.C0,cf(-1.2,0.1,-0.3)*euler(0,-1.4,0)*euler(.5,0,0),.3)
  1910. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0,1.57,0),.3)
  1911. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(0,-1.57,0),.3)
  1912. Handleweld.C0=clerp(Handleweld.C0,cf(0,0,0)*angles(math.rad(-40),math.rad(0),math.rad(0)),.5)
  1913. end
  1914. con1:disconnect()
  1915. attack=false
  1916. end
  1917.  
  1918. function atktype(s, e)
  1919. coroutine.resume(coroutine.create(function()
  1920. attacktype = e
  1921. swait(80)
  1922. attacktype = s
  1923. end))
  1924. end
  1925.  
  1926. function attackone()
  1927. attack=true
  1928. for i=0,1,0.1 do
  1929. swait()
  1930. Neck.C0=clerp(Neck.C0,necko*euler(.2,0,.5),.3)
  1931. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,-.5),.3)
  1932. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(2,0,1),.3)
  1933. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1934. LW.C0=clerp(LW.C0,cf(-1.3,0.5,-.3)*euler(.4,0,.2)*euler(0,-.2,0),.3)
  1935. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1936. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0,1.57,0)*euler(-.2,0,0),.3)
  1937. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(0,-1.57,0)*euler(-.2,0,0),.3)
  1938. Handleweld.C0=clerp(Handleweld.C0,cf(0,0,0)*angles(math.rad(20),math.rad(0),math.rad(0)),.5)
  1939. end
  1940. con1=Hitbox.Touched:connect(function(hit) Damagefunc(hit,5,10,math.random(5,10),"Normal",RootPart,.2,1) end)
  1941. so("http://roblox.com/asset/?id=233856140",Hitbox,1,1)
  1942. for i=0,1,0.1 do
  1943. swait()
  1944. Neck.C0=clerp(Neck.C0,necko*euler(0,0,-.5)*euler(.2,0,0),.3)
  1945. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,.5),.3)
  1946. RW.C0=clerp(RW.C0,cf(1,0.5,-.5)*euler(.6,0,-1)*euler(0,-.7,0),.3)
  1947. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1948. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-.4,0,-.2),.3)
  1949. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1950. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0,1.57,0)*euler(-.2,0,0),.3)
  1951. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(0,-1.57,0)*euler(-.2,0,0),.3)
  1952. Handleweld.C0=clerp(Handleweld.C0,cf(0,0,-1)*angles(math.rad(-40),math.rad(0),math.rad(0)),.5)
  1953. end
  1954. attack=false
  1955. atktype(1, 2)
  1956. con1:disconnect()
  1957. end
  1958.  
  1959. function attacktwo()
  1960. attack=true
  1961. for i=0,1,0.1 do
  1962. swait()
  1963. Neck.C0=clerp(Neck.C0,necko*euler(0.1,0.1,1),.3)
  1964. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,-1),.3)
  1965. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(0,-1,1),.3)
  1966. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1967. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(1,0,0.5),.3)
  1968. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1969. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0,1.57,0)*euler(-.2,0,0),.3)
  1970. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(0,-1.57,0)*euler(-.2,0,0),.3)
  1971. Handleweld.C0=clerp(Handleweld.C0,cf(0,0,0)*angles(math.rad(20),math.rad(0),math.rad(0)),.5)
  1972. end
  1973. so("http://roblox.com/asset/?id=233856140",Hitbox,1,0.85)
  1974. con1=Hitbox.Touched:connect(function(hit) Damagefunc(hit,5,10,math.random(5,10),"Normal",RootPart,.2,1) end)
  1975. for i=0,1,0.1 do
  1976. swait()
  1977. Neck.C0=clerp(Neck.C0,necko*euler(-0.1,0.1,-1),.3)
  1978. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,1),.3)
  1979. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(0,1,1.6),.3)
  1980. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1981. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-0.5,0,-0.5),.3)
  1982. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1983. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0,1.57,0)*euler(-.2,0,0),.3)
  1984. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(0,-1.57,0)*euler(-.2,0,0),.3)
  1985. Handleweld.C0=clerp(Handleweld.C0,cf(0,0,0)*angles(math.rad(-20),math.rad(0),math.rad(0)),.5)
  1986. end
  1987. attack=false
  1988. atktype(1, 3)
  1989. con1:disconnect()
  1990. end
  1991.  
  1992. function attackthree()
  1993. attack=true
  1994. for i=0,1,0.1 do
  1995. swait()
  1996. Neck.C0=clerp(Neck.C0,necko*euler(0,0,.2),.3)
  1997. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,-.3),.3)
  1998. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(1,0,1.2)*euler(0,-2,0),.3)
  1999. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  2000. LW.C0=clerp(LW.C0,cf(-1.4,0.5,-.2)*euler(.7,0,.1)*euler(0,-.4,0),.3)
  2001. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  2002. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0,1.57,0)*euler(-.2,0,0),.3)
  2003. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(0,-1.57,0)*euler(-.2,0,0),.3)
  2004. Handleweld.C0=clerp(Handleweld.C0,cf(0,0,0)*angles(math.rad(20),math.rad(0),math.rad(0)),.5)
  2005. end
  2006. so("http://roblox.com/asset/?id=233856140",Hitbox,1,0.9)
  2007. con1=Hitbox.Touched:connect(function(hit) Damagefunc(hit,5,10,math.random(5,10),"Normal",RootPart,.2,1) end)
  2008. for i=0,1,0.1 do
  2009. swait()
  2010. Neck.C0=clerp(Neck.C0,necko*euler(.2,0,-.6),.3)
  2011. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,.6),.3)
  2012. RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*euler(1.2,0,-1.2)*euler(0,-1.2,0),.3)
  2013. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  2014. LW.C0=clerp(LW.C0,cf(-1.4,0.5,-.2)*euler(-.4,0,-.7)*euler(0,0,0),.3)
  2015. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  2016. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0,1.57,0)*euler(-.2,0,0),.3)
  2017. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(0,-1.57,0)*euler(-.2,0,0),.3)
  2018. Handleweld.C0=clerp(Handleweld.C0,cf(0,0,-1)*angles(math.rad(-40),math.rad(0),math.rad(0)),.5)
  2019. end
  2020. attack=false
  2021. atktype(1, 4)
  2022. con1:disconnect()
  2023. end
  2024.  
  2025. function attackfour()
  2026. attack=true
  2027. for i=0,1,0.1 do
  2028. swait()
  2029. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0.1,0,-1.2),.3)
  2030. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,1.2),.3)
  2031. RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*euler(.5,1.8,1.5),.3)
  2032. LW.C0=clerp(LW.C0,cf(-1,0.5,-0.5)*euler(1.5,-0.5,.8),.3)
  2033. RH.C0=clerp(RH.C0,RHC0*euler(-.2,0,0),.3)
  2034. LH.C0=clerp(LH.C0,LHC0*euler(-.2,0,0),.3)
  2035. Handleweld.C0=clerp(Handleweld.C0,cf(0,0,0)*angles(math.rad(20),math.rad(0),math.rad(0)),.5)
  2036. end
  2037. so("http://roblox.com/asset/?id=233856146",Hitbox,1,1)
  2038. con1=Hitbox.Touched:connect(function(hit) Damagefunc(hit,5,10,math.random(5,10),"Normal",RootPart,.2,1) end)
  2039. for i=0,1,0.1 do
  2040. swait()
  2041. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0.1,0,1),.3)
  2042. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,-1),.3)
  2043. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(1.2,1.2,0)*euler(-1.5,0,0),.3)
  2044. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(.2,-.2,-1.4),.3)
  2045. Handleweld.C0=clerp(Handleweld.C0,cf(0,0,0)*angles(math.rad(-40),math.rad(0),math.rad(0)),.5)
  2046. end
  2047. attack=false
  2048. atktype(1, 1)
  2049. con1:disconnect()
  2050. end
  2051.  
  2052. local sine = 0
  2053. local change = 1
  2054. local val = 0
  2055.  
  2056. local mananum=0
  2057. while true do
  2058. swait()
  2059. sine = sine + change
  2060. local torvel=(RootPart.Velocity*Vector3.new(1,0,1)).magnitude
  2061. local velderp=RootPart.Velocity.y
  2062. hitfloor,posfloor=rayCast(RootPart.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,4,Character)
  2063. if equipped==true or equipped==false then
  2064. if attack==false then
  2065. idle=idle+1
  2066. else
  2067. idle=0
  2068. end
  2069. if idle>=500 then
  2070. if attack==false then
  2071. --Sheath()
  2072. end
  2073. end
  2074. if RootPart.Velocity.y > 1 and hitfloor==nil then
  2075. Anim="Jump"
  2076. if attack==false then
  2077. for i=0,1,0.15 do
  2078. swait()
  2079. Neck.C0=clerp(Neck.C0,necko*euler(-0.2,0,0),.3)
  2080. Neck.C1=clerp(Neck.C1,necko2*euler(0,0,0),.3)
  2081. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0+6*i,0,0),.3)
  2082. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-.5,0,0.5),.3)
  2083. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  2084. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-.5,0,-0.5),.3)
  2085. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  2086. RH.C0=clerp(RH.C0,cf(1,-1,-.3)*euler(-0.5,1.57,0)*euler(-.2,0,0),.3)
  2087. LH.C0=clerp(LH.C0,cf(-1,-1,-.3)*euler(-0.5,-1.57,0)*euler(-.2,0,0),.3)
  2088. end
  2089. end
  2090. elseif RootPart.Velocity.y < -1 and hitfloor==nil then
  2091. Anim="Fall"
  2092. if attack==false then
  2093. Neck.C0=clerp(Neck.C0,necko*euler(0.4,0,0),.3)
  2094. Neck.C1=clerp(Neck.C1,necko2*euler(0,0,0),.3)
  2095. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,0),.3)
  2096. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(0.3,0,0.2),.3)
  2097. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  2098. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(0.3,0,-0.2),.3)
  2099. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  2100. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0.4,1.57,0),.3)
  2101. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(-0.2,-1.57,0),.3)
  2102. end
  2103. elseif torvel<1 and hitfloor~=nil then
  2104. Anim="Idle"
  2105. if attack==false then
  2106. Humanoid.WalkSpeed = 20
  2107. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.5)*angles(math.rad(0),math.rad(0),math.rad(-30)),.3)
  2108. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10-2.5*math.cos(sine/40)),math.rad(0),math.rad(30)),.3)
  2109. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(10+5*math.cos(sine/40)),math.rad(-15),math.rad(15+5*math.cos(sine/40))),.3)
  2110. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(5+5*math.cos(sine/40)),math.rad(0),math.rad(-10-5*math.cos(sine/40))),.3)
  2111. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-10),math.rad(0),math.rad(-50)),.3)
  2112. LH.C0=clerp(LH.C0,cf(-1.1,-0.6,-0.75)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(-5)),.3)
  2113. Handleweld.C0=clerp(Handleweld.C0,cf(0,0,0)*angles(math.rad(-20),math.rad(0),math.rad(0)),.5)
  2114. end
  2115. elseif torvel>2 and torvel<22 and hitfloor~=nil then
  2116. Anim="Walk"
  2117. if attack==false then
  2118. RootJoint.C0=clerp(RootJoint.C0,RootCF*angles(math.rad(15),math.rad(0),math.rad(-45)),.3)
  2119. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(45)),.3)
  2120. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-25-2.5*math.cos(sine/20)),math.rad(-30-2.5*math.cos(sine/20)),math.rad(25+2.5*math.cos(sine/20))),.3)
  2121. LW.C0=clerp(LW.C0,cf(-1,0.5,-0.5)*angles(math.rad(90-5*math.cos(sine/20)),math.rad(0),math.rad(50-5*math.cos(sine/40))),.3)
  2122. 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)
  2123. 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)
  2124. Handleweld.C0=clerp(Handleweld.C0,cf(0,-2,0)*angles(math.rad(-180),math.rad(0),math.rad(0)),.5)
  2125. end
  2126. elseif torvel>=22 and hitfloor~=nil then
  2127. Anim="Run"
  2128. if attack==false then
  2129. RootJoint.C0=clerp(RootJoint.C0,RootCF*angles(math.rad(25),math.rad(0),math.rad(-60)),.3)
  2130. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-10),math.rad(-10),math.rad(60)),.3)
  2131. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-35-2.5*math.cos(sine/20)),math.rad(-40-2.5*math.cos(sine/20)),math.rad(35+2.5*math.cos(sine/20))),.3)
  2132. LW.C0=clerp(LW.C0,cf(-1,0.5,-0.5)*angles(math.rad(90-5*math.cos(sine/20)),math.rad(0),math.rad(50-5*math.cos(sine/20))),.3)
  2133. 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)
  2134. 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)
  2135. Handleweld.C0=clerp(Handleweld.C0,cf(0,-2,0)*angles(math.rad(-180),math.rad(0),math.rad(0)),.5)
  2136. end
  2137. end
  2138. end
  2139. fenbarmana2:TweenSize(UDim2.new(4*mana/100,0,0.2,0),nil,1,0.4,true)
  2140. fenbarmana4.Text="[Energy] <{[ "..mana.." ]}> [Energy]"
  2141. if mana>=100 then
  2142. mana=100
  2143. else
  2144. if mananum<=8 then
  2145. mananum=mananum+1
  2146. else
  2147. mananum=0
  2148. mana=mana+1
  2149. end
  2150. end
  2151. end
Add Comment
Please, Sign In to add comment