Advertisement
GojiGaming1337

Untitled

Jun 1st, 2018
209
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 125.13 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.  
  54. mouse=Player:GetMouse()
  55. --save shoulders
  56. RSH, LSH=nil, nil
  57. --welds
  58. RW, LW=Instance.new("Weld"), Instance.new("Weld")
  59. RW.Name="Right Shoulder" LW.Name="Left Shoulder"
  60. LH=Torso["Left Hip"]
  61. RH=Torso["Right Hip"]
  62. function NoOutline(Part)
  63. Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
  64. end
  65. player=Player
  66. ch=Character
  67. RSH=ch.Torso["Right Shoulder"]
  68. LSH=ch.Torso["Left Shoulder"]
  69. --
  70. RSH.Parent=nil
  71. LSH.Parent=nil
  72. --
  73. RW.Name="Right Shoulder"
  74. RW.Part0=ch.Torso
  75. RW.C0=cf(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5)
  76. RW.C1=cf(0, 0.5, 0)
  77. RW.Part1=ch["Right Arm"]
  78. RW.Parent=ch.Torso
  79. --
  80. LW.Name="Left Shoulder"
  81. LW.Part0=ch.Torso
  82. LW.C0=cf(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8)
  83. LW.C1=cf(0, 0.5, 0)
  84. LW.Part1=ch["Left Arm"]
  85. LW.Parent=ch.Torso
  86.  
  87. function part(formfactor,parent,reflectance,transparency,brickcolor,name,size)
  88. local fp=it("Part")
  89. fp.formFactor=formfactor
  90. fp.Parent=parent
  91. fp.Reflectance=reflectance
  92. fp.Transparency=transparency
  93. fp.CanCollide=false
  94. fp.Locked=true
  95. fp.BrickColor=brickcolor
  96. fp.Name=name
  97. fp.Size=size
  98. fp.Position=Torso.Position
  99. NoOutline(fp)
  100. fp.Material="Neon"
  101. fp:BreakJoints()
  102. return fp
  103. end
  104.  
  105. function mesh(Mesh,part,meshtype,meshid,offset,scale)
  106. local mesh=it(Mesh)
  107. mesh.Parent=part
  108. if Mesh=="SpecialMesh" then
  109. mesh.MeshType=meshtype
  110. if meshid~="nil" then
  111. mesh.MeshId="http://www.roblox.com/asset/?id="..meshid
  112. end
  113. end
  114. mesh.Offset=offset
  115. mesh.Scale=scale
  116. return mesh
  117. end
  118.  
  119. function weld(parent,part0,part1,c0)
  120. local weld=it("Weld")
  121. weld.Parent=parent
  122. weld.Part0=part0
  123. weld.Part1=part1
  124. weld.C0=c0
  125. return weld
  126. end
  127.  
  128. local Color1=Torso.BrickColor
  129.  
  130. local bodvel=Instance.new("BodyVelocity")
  131. local bg=Instance.new("BodyGyro")
  132.  
  133. function swait(num)
  134. if num==0 or num==nil then
  135. game:service'RunService'.Stepped:wait(0)
  136. else
  137. for i=0,num do
  138. game:service'RunService'.Stepped:wait(0)
  139. end
  140. end
  141. end
  142.  
  143.  
  144. so = function(id,par,vol,pit)
  145. coroutine.resume(coroutine.create(function()
  146. local sou = Instance.new("Sound",par or workspace)
  147. sou.Volume=vol
  148. sou.Pitch=pit or 1
  149. sou.SoundId=id
  150. swait()
  151. sou:play()
  152. game:GetService("Debris"):AddItem(sou,6)
  153. end))
  154. end
  155.  
  156. local Footsteps = it("Sound",Character.Torso)
  157. Footsteps.SoundId = "rbxassetid://142665235"
  158. Footsteps.Looped = true
  159. Footsteps.Pitch = 0.8
  160. Footsteps.Volume = 0.3
  161.  
  162. local Footsteps2 = it("Sound",Character.Torso)
  163. Footsteps2.SoundId = "rbxassetid://142665235"
  164. Footsteps2.Looped = true
  165. Footsteps2.Pitch = 1
  166. Footsteps2.Volume = 0.4
  167.  
  168. function clerp(a,b,t)
  169. local qa = {QuaternionFromCFrame(a)}
  170. local qb = {QuaternionFromCFrame(b)}
  171. local ax, ay, az = a.x, a.y, a.z
  172. local bx, by, bz = b.x, b.y, b.z
  173. local _t = 1-t
  174. return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t))
  175. end
  176.  
  177. function QuaternionFromCFrame(cf)
  178. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  179. local trace = m00 + m11 + m22
  180. if trace > 0 then
  181. local s = math.sqrt(1 + trace)
  182. local recip = 0.5/s
  183. return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5
  184. else
  185. local i = 0
  186. if m11 > m00 then
  187. i = 1
  188. end
  189. if m22 > (i == 0 and m00 or m11) then
  190. i = 2
  191. end
  192. if i == 0 then
  193. local s = math.sqrt(m00-m11-m22+1)
  194. local recip = 0.5/s
  195. return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip
  196. elseif i == 1 then
  197. local s = math.sqrt(m11-m22-m00+1)
  198. local recip = 0.5/s
  199. return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip
  200. elseif i == 2 then
  201. local s = math.sqrt(m22-m00-m11+1)
  202. local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip
  203. end
  204. end
  205. end
  206.  
  207. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  208. local xs, ys, zs = x + x, y + y, z + z
  209. local wx, wy, wz = w*xs, w*ys, w*zs
  210. local xx = x*xs
  211. local xy = x*ys
  212. local xz = x*zs
  213. local yy = y*ys
  214. local yz = y*zs
  215. local zz = z*zs
  216. 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))
  217. end
  218.  
  219. function QuaternionSlerp(a, b, t)
  220. local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4]
  221. local startInterp, finishInterp;
  222. if cosTheta >= 0.0001 then
  223. if (1 - cosTheta) > 0.0001 then
  224. local theta = math.acos(cosTheta)
  225. local invSinTheta = 1/math.sin(theta)
  226. startInterp = math.sin((1-t)*theta)*invSinTheta
  227. finishInterp = math.sin(t*theta)*invSinTheta
  228. else
  229. startInterp = 1-t
  230. finishInterp = t
  231. end
  232. else
  233. if (1+cosTheta) > 0.0001 then
  234. local theta = math.acos(-cosTheta)
  235. local invSinTheta = 1/math.sin(theta)
  236. startInterp = math.sin((t-1)*theta)*invSinTheta
  237. finishInterp = math.sin(t*theta)*invSinTheta
  238. else
  239. startInterp = t-1
  240. finishInterp = t
  241. end
  242. end
  243. 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
  244. end
  245.  
  246. function rayCast(Pos, Dir, Max, Ignore) -- Origin Position , Direction, MaxDistance , IgnoreDescendants
  247. return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  248. end
  249.  
  250. function SkullEffect(brickcolor,cframe,x1,y1,z1,delay)
  251. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  252. prt.Anchored=true
  253. prt.CFrame=cframe
  254. local msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=4770583",vt(0,0,0),vt(x1,y1,z1))
  255. --http://www.roblox.com/asset/?id=4770560
  256. game:GetService("Debris"):AddItem(prt,2)
  257. CF=prt.CFrame
  258. coroutine.resume(coroutine.create(function(Part,Mesh,TehCF)
  259. for i=0,1,0.2 do
  260. wait()
  261. Part.CFrame=CF*cf(0,0,-0.4)
  262. end
  263. for i=0,1,delay do
  264. wait()
  265. --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)
  266. Mesh.Scale=Mesh.Scale
  267. end
  268. for i=0,1,0.1 do
  269. wait()
  270. Part.Transparency=i
  271. end
  272. Part.Parent=nil
  273. end),prt,msh,CF)
  274. end
  275.  
  276. function MagicBlock(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  277. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  278. prt.Anchored=true
  279. prt.CFrame=cframe
  280. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  281. game:GetService("Debris"):AddItem(prt,5)
  282. coroutine.resume(coroutine.create(function(Part,Mesh)
  283. for i=0,1,delay do
  284. wait()
  285. Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  286. Part.Transparency=i
  287. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  288. end
  289. Part.Parent=nil
  290. end),prt,msh)
  291. end
  292.  
  293. function MagicBlock2(brickcolor,cframe,Parent,x1,y1,z1,x3,y3,z3,delay)
  294. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  295. prt.Anchored=false
  296. prt.CFrame=cframe
  297. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  298. local wld=weld(prt,prt,Parent,cframe)
  299. game:GetService("Debris"):AddItem(prt,5)
  300. coroutine.resume(coroutine.create(function(Part,Mesh,Weld)
  301. for i=0,1,delay do
  302. wait()
  303. Weld.C0=euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))*cframe
  304. --Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  305. Part.Transparency=i
  306. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  307. end
  308. Part.Parent=nil
  309. end),prt,msh,wld)
  310. end
  311.  
  312. function MagicBlock3(brickcolor,cframe,Parent,x1,y1,z1,x3,y3,z3,delay)
  313. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  314. prt.Anchored=false
  315. prt.CFrame=cframe
  316. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  317. local wld=weld(prt,prt,Parent,euler(0,0,0)*cf(0,0,0))
  318. game:GetService("Debris"):AddItem(prt,5)
  319. coroutine.resume(coroutine.create(function(Part,Mesh,Weld)
  320. for i=0,1,delay do
  321. wait()
  322. Weld.C0=euler(i*20,0,0)
  323. --Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  324. Part.Transparency=i
  325. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  326. end
  327. Part.Parent=nil
  328. end),prt,msh,wld)
  329. end
  330.  
  331. function MagicCircle2(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  332. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  333. prt.Anchored=true
  334. prt.CFrame=cframe
  335. local msh=mesh("CylinderMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  336. game:GetService("Debris"):AddItem(prt,2)
  337. coroutine.resume(coroutine.create(function(Part,Mesh)
  338. for i=0,1,delay do
  339. wait()
  340. Part.CFrame=Part.CFrame
  341. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  342. local prt2=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  343. prt2.Anchored=true
  344. prt2.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  345. local msh2=mesh("SpecialMesh",prt2,"Sphere","",vt(0,0,0),vt(0.5,0.5,0.5))
  346. game:GetService("Debris"):AddItem(prt2,2)
  347. coroutine.resume(coroutine.create(function(Part,Mesh)
  348. for i=0,1,0.1 do
  349. wait()
  350. Part.CFrame=Part.CFrame*cf(0,0.5,0)
  351. end
  352. Part.Parent=nil
  353. end),prt2,msh2)
  354. end
  355. for i=0,1,delay*2 do
  356. wait()
  357. Part.CFrame=Part.CFrame
  358. Mesh.Scale=vt((x1+x3)-(x1+x3)*i,(y1+y3)-(y1+y3)*i,(z1+z3)-(z1+z3)*i)
  359. end
  360. Part.Parent=nil
  361. end),prt,msh)
  362. end
  363.  
  364. function MagicCircle(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  365. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  366. prt.Anchored=true
  367. prt.CFrame=cframe
  368. local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  369. game:GetService("Debris"):AddItem(prt,2)
  370. coroutine.resume(coroutine.create(function(Part,Mesh)
  371. for i=0,1,delay do
  372. wait()
  373. Part.CFrame=Part.CFrame
  374. Part.Transparency=i
  375. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  376. end
  377. Part.Parent=nil
  378. end),prt,msh)
  379. end
  380.  
  381. function MagicRing(brickcolor,cframe,x1,y1,z1,x2,y2,z2,x3,y3,z3)
  382. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  383. prt.Anchored=true
  384. prt.CFrame=cframe*euler(x2,y2,z2)
  385. --"http://www.roblox.com/asset/?id=168892465"
  386. local msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=3270017",vt(0,0,0),vt(x1,y1,z1))
  387. game:GetService("Debris"):AddItem(prt,2)
  388. coroutine.resume(coroutine.create(function(Part,Mesh)
  389. for i=0,1,0.03 do
  390. wait()
  391. Part.CFrame=Part.CFrame
  392. Part.Transparency=i
  393. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  394. end
  395. Part.Parent=nil
  396. end),prt,msh)
  397. end
  398.  
  399. function BreakEffect(brickcolor,cframe,x1,y1,z1)
  400. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  401. prt.Anchored=true
  402. prt.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  403. local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  404. game:GetService("Debris"):AddItem(prt,2)
  405. coroutine.resume(coroutine.create(function(Part,CF,Numbb,randnumb)
  406. CF=Part.CFrame
  407. Numbb=0
  408. randnumb=math.random()/10
  409. rand1=math.random()/10
  410. for i=0,1,rand1 do
  411. wait()
  412. CF=CF*cf(0,math.random()/2,0)
  413. --Part.CFrame=Part.CFrame*euler(0.5,0,0)*cf(0,1,0)
  414. Part.CFrame=CF*euler(Numbb,0,0)
  415. Part.Transparency=i
  416. Numbb=Numbb+randnumb
  417. end
  418. Part.Parent=nil
  419. end),prt,CF,Numbb,randnumb)
  420. end
  421.  
  422. function MagicWaveThing(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  423. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  424. prt.Anchored=true
  425. prt.CFrame=cframe
  426. msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=1051557",vt(0,0,0),vt(x1,y1,z1))
  427. game:GetService("Debris"):AddItem(prt,5)
  428. coroutine.resume(coroutine.create(function(Part,Mesh)
  429. for i=0,1,delay do
  430. wait()
  431. Part.CFrame=Part.CFrame*euler(0,0.7,0)
  432. Part.Transparency=i
  433. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  434. end
  435. Part.Parent=nil
  436. end),prt,msh)
  437. end
  438.  
  439. function WaveEffect(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  440. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  441. prt.Anchored=true
  442. prt.CFrame=cframe
  443. msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=20329976",vt(0,0,0),vt(x1,y1,z1))
  444. game:GetService("Debris"):AddItem(prt,2)
  445. coroutine.resume(coroutine.create(function(Part,Mesh)
  446. for i=0,1,delay do
  447. wait()
  448. Part.CFrame=Part.CFrame*cf(0,y3/2,0)
  449. Part.Transparency=i
  450. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  451. end
  452. Part.Parent=nil
  453. end),prt,msh)
  454. end
  455.  
  456. function StravEffect(brickcolor,cframe,x,y,z,x1,y1,z1,delay)
  457. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  458. prt.Anchored=true
  459. prt.CFrame=cframe*cf(x,y,z)
  460. msh=mesh("SpecialMesh",prt,"FileMesh","rbxassetid://168892363",vt(0,0,0),vt(x1,y1,z1))
  461. game:GetService("Debris"):AddItem(prt,5)
  462. coroutine.resume(coroutine.create(function(Part,Mesh,ex,why,zee)
  463. local num=math.random()
  464. local num2=math.random(-3,2)+math.random()
  465. local numm=0
  466. for i=0,1,delay*2 do
  467. swait()
  468. Part.CFrame=cframe*euler(0,numm*num*10,0)*cf(ex,why,zee)*cf(-i*10,num2,0)
  469. Part.Transparency=i
  470. numm=numm+0.01
  471. end
  472. Part.Parent=nil
  473. Mesh.Parent=nil
  474. end),prt,msh,x,y,z)
  475. end
  476.  
  477. Damagefunc=function(hit,minim,maxim,knockback,Type,Property,Delay,KnockbackType,decreaseblock)
  478. if hit.Parent==nil then
  479. return
  480. end
  481. h=hit.Parent:FindFirstChild("Humanoid")
  482. for _,v in pairs(hit.Parent:children()) do
  483. if v:IsA("Humanoid") then
  484. h=v
  485. end
  486. end
  487. if hit.Parent.Parent:FindFirstChild("Torso")~=nil then
  488. h=hit.Parent.Parent:FindFirstChild("Humanoid")
  489. end
  490. if hit.Parent.className=="Hat" then
  491. hit=hit.Parent.Parent:findFirstChild("Head")
  492. end
  493. if h~=nil and hit.Parent.Name~=Character.Name and hit.Parent:FindFirstChild("Torso")~=nil then
  494. if hit.Parent:findFirstChild("DebounceHit")~=nil then if hit.Parent.DebounceHit.Value==true then return end end
  495. --[[ if game.Players:GetPlayerFromCharacter(hit.Parent)~=nil then
  496. return
  497. end]]
  498. -- hs(hit,1.2)
  499. c=Instance.new("ObjectValue")
  500. c.Name="creator"
  501. c.Value=game:service("Players").LocalPlayer
  502. c.Parent=h
  503. game:GetService("Debris"):AddItem(c,.5)
  504. Damage=math.random(minim,maxim)
  505. -- h:TakeDamage(Damage)
  506. blocked=false
  507. block=hit.Parent:findFirstChild("Block")
  508. if block~=nil then
  509. print(block.className)
  510. if block.className=="NumberValue" then
  511. if block.Value>0 then
  512. blocked=true
  513. if decreaseblock==nil then
  514. block.Value=block.Value-1
  515. end
  516. end
  517. end
  518. if block.className=="IntValue" then
  519. if block.Value>0 then
  520. blocked=true
  521. if decreaseblock~=nil then
  522. block.Value=block.Value-1
  523. end
  524. end
  525. end
  526. end
  527. if blocked==false then
  528. -- h:TakeDamage(Damage)
  529. h.Health=h.Health-Damage
  530. showDamage(hit.Parent,Damage,145689,"Bright blue")
  531. else
  532. h.Health=h.Health-(Damage/145689)
  533. showDamage(hit.Parent,Damage/145689,BrickColor.new("Bright blue"))
  534. end
  535. if Type=="Knockdown" then
  536. hum=hit.Parent.Humanoid
  537. hum.PlatformStand=true
  538. coroutine.resume(coroutine.create(function(HHumanoid)
  539. swait(1)
  540. HHumanoid.PlatformStand=false
  541. end),hum)
  542. local angle=(hit.Position-(Property.Position+Vector3.new(0,0,0))).unit
  543. --hit.CFrame=CFrame.new(hit.Position,Vector3.new(angle.x,hit.Position.y,angle.z))*CFrame.fromEulerAnglesXYZ(math.pi/4,0,0)
  544. local bodvol=Instance.new("BodyVelocity")
  545. bodvol.velocity=angle*knockback
  546. bodvol.P=5000
  547. bodvol.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
  548. bodvol.Parent=hit
  549. rl=Instance.new("BodyAngularVelocity")
  550. rl.P=3000
  551. rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000
  552. rl.angularvelocity=Vector3.new(math.random(-10,10),math.random(-10,10),math.random(-10,10))
  553. rl.Parent=hit
  554. game:GetService("Debris"):AddItem(bodvol,.5)
  555. game:GetService("Debris"):AddItem(rl,.5)
  556. elseif Type=="Normal" then
  557. vp=Instance.new("BodyVelocity")
  558. vp.P=500
  559. vp.maxForce=Vector3.new(math.huge,0,math.huge)
  560. -- vp.velocity=Character.Torso.CFrame.lookVector*Knockback
  561. if KnockbackType==1 then
  562. vp.velocity=Property.CFrame.lookVector*knockback+Property.Velocity/1.05
  563. elseif KnockbackType==2 then
  564. vp.velocity=Property.CFrame.lookVector*knockback
  565. end
  566. if knockback>0 then
  567. vp.Parent=hit.Parent.Torso
  568. end
  569. game:GetService("Debris"):AddItem(vp,.5)
  570. elseif Type=="Up" then
  571. local bodyVelocity=Instance.new("BodyVelocity")
  572. bodyVelocity.velocity=vt(0,10,0)
  573. bodyVelocity.P=1000
  574. bodyVelocity.maxForce=Vector3.new(1e+009, 1e+009, 1e+009)
  575. bodyVelocity.Parent=hit
  576. game:GetService("Debris"):AddItem(bodyVelocity,1)
  577. rl=Instance.new("BodyAngularVelocity")
  578. rl.P=3000
  579. rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000
  580. rl.angularvelocity=Vector3.new(math.random(-20,20),math.random(-20,20),math.random(-20,20))
  581. rl.Parent=hit
  582. game:GetService("Debris"):AddItem(rl,.5)
  583. elseif Type=="Snare" then
  584. bp=Instance.new("BodyPosition")
  585. bp.P=2000
  586. bp.D=100
  587. bp.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  588. bp.position=hit.Parent.Torso.Position
  589. bp.Parent=hit.Parent.Torso
  590. game:GetService("Debris"):AddItem(bp,1)
  591. elseif Type=="Target" then
  592. if Targetting==false then
  593. ZTarget=hit.Parent.Torso
  594. coroutine.resume(coroutine.create(function(Part)
  595. so("http://www.roblox.com/asset/?id=15666462",Part,1,1.5)
  596. swait(5)
  597. so("http://www.roblox.com/asset/?id=15666462",Part,1,1.5)
  598. end),ZTarget)
  599. TargHum=ZTarget.Parent:findFirstChild("Humanoid")
  600. targetgui=Instance.new("BillboardGui")
  601. targetgui.Parent=ZTarget
  602. targetgui.Size=UDim2.new(10,100,10,100)
  603. targ=Instance.new("ImageLabel")
  604. targ.Parent=targetgui
  605. targ.BackgroundTransparency=1
  606. targ.Image="rbxassetid://4834067"
  607. targ.Size=UDim2.new(1,0,1,0)
  608. cam.CameraType="Scriptable"
  609. cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
  610. dir=Vector3.new(cam.CoordinateFrame.lookVector.x,0,cam.CoordinateFrame.lookVector.z)
  611. workspace.CurrentCamera.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
  612. Targetting=true
  613. RocketTarget=ZTarget
  614. for i=1,Property do
  615. --while Targetting==true and Humanoid.Health>0 and Character.Parent~=nil do
  616. if Humanoid.Health>0 and Character.Parent~=nil and TargHum.Health>0 and TargHum.Parent~=nil and Targetting==true then
  617. swait()
  618. end
  619. --workspace.CurrentCamera.CoordinateFrame=CFrame.new(Head.CFrame.p,Head.CFrame.p+rmdir*100)
  620. cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
  621. dir=Vector3.new(cam.CoordinateFrame.lookVector.x,0,cam.CoordinateFrame.lookVector.z)
  622. cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)*cf(0,5,10)*euler(-0.3,0,0)
  623. end
  624. Targetting=false
  625. RocketTarget=nil
  626. targetgui.Parent=nil
  627. cam.CameraType="Custom"
  628. end
  629. end
  630. debounce=Instance.new("BoolValue")
  631. debounce.Name="DebounceHit"
  632. debounce.Parent=hit.Parent
  633. debounce.Value=true
  634. game:GetService("Debris"):AddItem(debounce,Delay)
  635. c=Instance.new("ObjectValue")
  636. c.Name="creator"
  637. c.Value=Player
  638. c.Parent=h
  639. game:GetService("Debris"):AddItem(c,.5)
  640. CRIT=false
  641. hitDeb=true
  642. AttackPos=6
  643. end
  644. end
  645.  
  646. showDamage=function(Char,Dealt,du,Color)
  647. m=Instance.new("Model")
  648. m.Name=tostring(Dealt)
  649. h=Instance.new("Humanoid")
  650. h.Health=0
  651. h.MaxHealth=0
  652. h.Parent=m
  653. c=Instance.new("Part")
  654. c.Transparency=0
  655. c.BrickColor="Bright blue"
  656. c.Name="Head"
  657. c.TopSurface=0
  658. c.BottomSurface=0
  659. c.formFactor="Plate"
  660. c.Size=Vector3.new(1,.4,1)
  661. ms=Instance.new("CylinderMesh")
  662. ms.Scale=Vector3.new(.8,.8,.8)
  663. so("http://www.roblox.com/asset/?id=199149269",c,1,1)
  664. if CRIT==true then
  665. ms.Scale=Vector3.new(1,1.25,1)
  666. end
  667. ms.Parent=c
  668. c.Reflectance=0
  669. Instance.new("BodyGyro").Parent=c
  670. c.Parent=m
  671. if Char:findFirstChild("Head")~=nil then
  672. c.CFrame=CFrame.new(Char["Head"].CFrame.p+Vector3.new(0,1.5,0))
  673. elseif Char.Parent:findFirstChild("Head")~=nil then
  674. c.CFrame=CFrame.new(Char.Parent["Head"].CFrame.p+Vector3.new(0,1.5,0))
  675. end
  676. f=Instance.new("BodyPosition")
  677. f.P=2000
  678. f.D=100
  679. f.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  680. f.position=c.Position+Vector3.new(0,3,0)
  681. f.Parent=c
  682. game:GetService("Debris"):AddItem(m,.5+du)
  683. c.CanCollide=false
  684. m.Parent=workspace
  685. c.CanCollide=false
  686. end
  687.  
  688. Player=game:GetService('Players').LocalPlayer
  689. Character=Player.Character
  690. Mouse=Player:GetMouse()
  691. m=Instance.new('Model',Character)
  692.  
  693.  
  694. local function weldBetween(a, b)
  695. local weldd = Instance.new("ManualWeld")
  696. weldd.Part0 = a
  697. weldd.Part1 = b
  698. weldd.C0 = CFrame.new()
  699. weldd.C1 = b.CFrame:inverse() * a.CFrame
  700. weldd.Parent = a
  701. return weldd
  702. end
  703.  
  704. it=Instance.new
  705.  
  706. function nooutline(part)
  707. part.TopSurface,part.BottomSurface,part.LeftSurface,part.RightSurface,part.FrontSurface,part.BackSurface = 10,10,10,10,10,10
  708. end
  709.  
  710. function part(formfactor,parent,material,reflectance,transparency,brickcolor,name,size)
  711. local fp=it("Part")
  712. fp.formFactor=formfactor
  713. fp.Parent=parent
  714. fp.Reflectance=reflectance
  715. fp.Transparency=transparency
  716. fp.CanCollide=false
  717. fp.Locked=true
  718. fp.BrickColor=BrickColor.new(tostring(brickcolor))
  719. fp.Name=name
  720. fp.Size=size
  721. fp.Position=Character.Torso.Position
  722. nooutline(fp)
  723. fp.Material=material
  724. fp:BreakJoints()
  725. return fp
  726. end
  727.  
  728. function mesh(Mesh,part,meshtype,meshid,offset,scale)
  729. local mesh=it(Mesh)
  730. mesh.Parent=part
  731. if Mesh=="SpecialMesh" then
  732. mesh.MeshType=meshtype
  733. mesh.MeshId=meshid
  734. end
  735. mesh.Offset=offset
  736. mesh.Scale=scale
  737. return mesh
  738. end
  739.  
  740. function weld(parent,part0,part1,c0,c1)
  741. local weld=it("Weld")
  742. weld.Parent=parent
  743. weld.Part0=part0
  744. weld.Part1=part1
  745. weld.C0=c0
  746. weld.C1=c1
  747. return weld
  748. end
  749. local modelzorz=Instance.new("Model")
  750. modelzorz.Parent=Character
  751. modelzorz.Name="Claw1"
  752.  
  753. Handle=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Bright blue","Handle",Vector3.new(1.20000005, 1.20000005, 1))
  754. Handleweld=weld(m,Character["Torso"],Handle,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-6.74455023, 0.843135834, 3.31332064, 0.866820872, 0.000393055088, -0.498619556, 0.129048944, -0.966104209, 0.223582461, -0.481630623, -0.258152217, -0.837489963))
  755. mesh("SpecialMesh",Handle,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  756. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(2.20000005, 1, 1))
  757. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(3.89693689, 0.0205960274, 1.83752108, 0.00084605813, 0.865680099, -0.500597, -0.999998748, 2.925843e-005, -0.00163948536, -0.00140464306, 0.500597715, 0.865678906))
  758. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Bright blue","Part",Vector3.new(1, 0.400000006, 1))
  759. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.0205993652, 3.97038841, -4.62090921, -0.999998689, 2.810359e-005, -0.00163501501, 0.00158691406, 0.25815019, -0.966103554, 0.0003949448, -0.966104805, -0.258149862))
  760. mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/Asset/?id=9756362",Vector3.new(0, 0, 0),Vector3.new(1, 2.92400002, 1.18400002))
  761. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(2.20000005, 1, 1))
  762. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(3.18639517, -0.292996764, 3.91572571, -0.407002717, 0.123095758, -0.905094743, -0.483149111, -0.869928718, 0.098949343, -0.775187671, 0.477568328, 0.413536996))
  763. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(2.20000005, 1, 1))
  764. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(3.62196398, -0.29297936, 1.11572647, -0.835932732, 0.424737811, -0.347583354, -0.483153641, -0.869926155, 0.0989501327, -0.260344028, 0.250651836, 0.932413459))
  765. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(2.20000005, 1, 1))
  766. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(3.55920649, -0.210347176, 1.642519, -0.865201712, -0.000320911407, -0.501423895, -2.98991799e-005, -0.999999881, 0.000691637397, -0.501424074, 0.000613339245, 0.865201592))
  767. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(2.20000005, 1, 1))
  768. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(2.931638, -0.0751047134, 4.50077248, -0.352038473, 0.176153034, -0.919260144, -0.86644727, -0.432817101, 0.248874903, -0.354031444, 0.884103954, 0.304995537))
  769. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(2.20000005, 1, 1))
  770. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(3.34771347, -0.763819337, 1.31078529, 0.484322906, -0.259408951, -0.835546851, 0.129806682, 0.965767562, -0.224595979, 0.865206063, 0.000317394733, 0.501416266))
  771. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(2.20000005, 1, 1))
  772. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(3.85524988, -0.0749192238, 1.7092638, -0.499263257, 0.749717236, -0.434350491, -0.866449237, -0.432811975, 0.248876765, -0.00140497088, 0.500597596, 0.865678906))
  773. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(2.20000005, 1, 1))
  774. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(2.76954031, -0.210381031, 4.2438035, -0.257231236, -0.00066010654, -0.966349661, -3.04505229e-005, -0.999999762, 0.000691249967, -0.966350019, 0.000207226723, 0.257231265))
  775. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(2.20000005, 1, 1))
  776. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(2.87043977, 0.020611763, 4.62094831, 0.00159165263, 0.258152187, -0.966103137, -0.999998748, 2.89455056e-005, -0.00163969398, -0.000395349402, 0.966104329, 0.258151829))
  777. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Bright blue","Part",Vector3.new(1, 0.400000006, 1))
  778. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.292981744, 4.28636312, -3.9157095, -0.48314926, -0.869928479, 0.0989517197, -0.407004297, 0.123094313, -0.905094087, 0.775186777, -0.477569282, -0.413537562))
  779. mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/Asset/?id=9756362",Vector3.new(0, 0, 0),Vector3.new(1, 2.92400002, 1.18400002))
  780. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(2.20000005, 1, 1))
  781. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(2.85442352, -0.763632059, 3.85966015, -0.269319534, -0.183654502, -0.945377231, 0.129806384, 0.96576786, -0.22459501, 0.954262853, -0.183203816, -0.236260682))
  782. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Bright blue","Part",Vector3.new(1, 0.400000006, 1))
  783. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.0751276016, 4.03159618, -4.50067854, -0.866445661, -0.432817698, 0.248879611, -0.352042913, 0.176151246, -0.919258773, 0.354030937, -0.884103894, -0.304995805))
  784. mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/Asset/?id=9756362",Vector3.new(0, 0, 0),Vector3.new(1, 2.92400002, 1.18400002))
  785. Gear=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(4.29999971, 4.30000019, 1))
  786. Gearweld=weld(m,Handle,Gear,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.0552597046, -0.0398271084, -0.0363032818, 0.999988854, -3.23429704e-005, 0.00164097548, 3.37436795e-005, 0.999994695, -0.000689953566, -0.00164103508, 0.000689953566, 0.999993086))
  787. mesh("SpecialMesh",Gear,Enum.MeshType.FileMesh,"http://www.roblox.com/asset?id=156292343",Vector3.new(0, 0, 0),Vector3.new(5, 5, 15))
  788. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Bright blue","Part",Vector3.new(1, 0.400000006, 1))
  789. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.210398674, 3.86948943, -4.24380398, -3.15159559e-005, -0.999999881, 0.00069090724, -0.257231474, -0.000659480691, -0.966349721, 0.966349959, -0.000208158046, -0.257231474))
  790. mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/Asset/?id=9756362",Vector3.new(0, 0, 0),Vector3.new(1, 2.92400002, 1.18400002))
  791. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Bright blue","Part",Vector3.new(1, 0.400000006, 1))
  792. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.763661504, 3.95439076, 3.85964441, -0.129806131, -0.965767682, 0.224596098, -0.269319892, -0.1836555, -0.945376873, 0.954262733, -0.183203891, -0.236260891))
  793. mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/Asset/?id=9756362",Vector3.new(0, 0, 0),Vector3.new(1, 2.92400002, 1.18400002))
  794.  
  795. local modelzorz2=Instance.new("Model")
  796. modelzorz2.Parent=Character
  797. modelzorz2.Name="Claw2"
  798.  
  799. Handle2=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Bright blue","Handle",Vector3.new(1.20000005, 1.20000005, 1))
  800. Handle2weld=weld(m,Character["Torso"],Handle2,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(6.65693045, 1.66835713, 2.9684639, 0.866025746, 0.129405379, 0.482963592, -3.67555799e-006, -0.965926409, 0.258817136, 0.499999553, -0.224144042, -0.836516559))
  801. mesh("SpecialMesh",Handle2,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  802. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Really red","Part",Vector3.new(2.20000005, 1, 1))
  803. Partweld=weld(m,Handle2,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(3.66774845, 0.445008755, 1.50737095, 0.749997497, 0.500002265, -0.433014721, -0.433012635, 0.866024196, 0.250004709, 0.500004232, -2.02655792e-006, 0.866023183))
  804. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Really red","Part",Vector3.new(2.20000005, 1, 1))
  805. Partweld=weld(m,Handle2,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(3.70916891, 0.288796425, 1.12511444, 0.424947768, 0.836517453, -0.34591651, -0.870010257, 0.482961774, 0.0991482884, 0.250003695, 0.25881803, 0.933012009))
  806. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Really red","Part",Vector3.new(2.20000005, 1, 1))
  807. Partweld=weld(m,Handle2,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(3.24143982, 0.288818121, 3.98402214, 0.123706907, 0.408494055, -0.904339194, -0.870007515, 0.482966691, 0.0991476029, 0.477266878, 0.774516642, 0.415139139))
  808. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Bright blue","Part",Vector3.new(1, 0.400000006, 1))
  809. Partweld=weld(m,Handle2,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.288883209, 4.34139919, -3.98407936, -0.870006502, 0.482969046, 0.099145025, 0.123710275, 0.408492953, -0.904339135, -0.477267861, -0.774515808, -0.415139765))
  810. mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/Asset/?id=9756362",Vector3.new(0, 0, 0),Vector3.new(1, 2.92400002, 1.18400002))
  811. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Bright blue","Part",Vector3.new(1, 0.400000006, 1))
  812. Partweld=weld(m,Handle2,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.377311707, 3.81443644, -4.17874861, 1.43051147e-006, 1.00000012, 5.58793545e-006, 0.258813858, 5.02169132e-006, -0.965927303, -0.965927362, 2.82377005e-006, -0.258813858))
  813. mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/Asset/?id=9756362",Vector3.new(0, 0, 0),Vector3.new(1, 2.92400002, 1.18400002))
  814. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Really red","Part",Vector3.new(2.20000005, 1, 1))
  815. Partweld=weld(m,Handle2,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(3.11095357, 0.452475548, 3.33581829, 0.214266971, -0.258726388, -0.941886604, 0.124996454, -0.949091196, 0.289140463, -0.968744338, -0.179685742, -0.171018958))
  816. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Bright blue","Part",Vector3.new(1, 0.400000006, 1))
  817. Partweld=weld(m,Handle2,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.445028067, 4.04179811, -4.22505188, -0.433007121, 0.86602807, 0.250001073, 0.176776409, 0.353552371, -0.918559194, -0.883886516, -0.353548348, -0.306183964))
  818. mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/Asset/?id=9756362",Vector3.new(0, 0, 0),Vector3.new(1, 2.92400002, 1.18400002))
  819. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Really red","Part",Vector3.new(2.20000005, 1, 1))
  820. Partweld=weld(m,Handle2,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(2.71447492, 0.377288342, 4.1787672, 0.258815825, 7.89761543e-007, -0.965926647, 2.11596489e-006, 1.00000012, 1.35600567e-006, 0.965926886, -2.41398811e-006, 0.258815885))
  821. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Bright blue","Part",Vector3.new(1, 0.400000006, 1))
  822. Partweld=weld(m,Handle2,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.452456236, 4.21090841, 3.33576679, -0.124996543, 0.949091196, -0.289140046, 0.214267105, -0.25872606, -0.941886783, -0.968744338, -0.179685771, -0.171019137))
  823. mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/Asset/?id=9756362",Vector3.new(0, 0, 0),Vector3.new(1, 2.92400002, 1.18400002))
  824. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Really red","Part",Vector3.new(2.20000005, 1, 1))
  825. Partweld=weld(m,Handle2,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(2.94182658, 0.445016861, 4.22507095, 0.176774979, 0.353554398, -0.918558657, -0.433007926, 0.866026998, 0.250003278, 0.883886337, 0.353548825, 0.306183696))
  826. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Bright blue","Part",Vector3.new(1, 0.400000006, 1))
  827. Partweld=weld(m,Handle2,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.256506443, 3.92671657, -4.59811449, -1.00000024, 2.62260437e-006, 1.4603138e-006, -7.4505806e-007, 0.258819073, -0.965925872, -2.89268792e-006, -0.965925932, -0.258819073))
  828. mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/Asset/?id=9756362",Vector3.new(0, 0, 0),Vector3.new(1, 2.92400002, 1.18400002))
  829. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Really red","Part",Vector3.new(2.20000005, 1, 1))
  830. Partweld=weld(m,Handle2,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(3.4743073, 0.377253056, 1.63544273, 0.866023183, -4.61935997e-007, -0.500004172, 1.52736902e-006, 1.00000012, 1.65402889e-006, 0.500004232, -2.21282244e-006, 0.866023183))
  831. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Really red","Part",Vector3.new(2.20000005, 1, 1))
  832. Partweld=weld(m,Handle2,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(3.15870619, 0.452619314, 0.758959055, -0.533491194, -0.310006529, -0.786945462, 0.124997422, -0.949090362, 0.289142251, -0.836518347, 0.0558886975, 0.545081377))
  833. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Really red","Part",Vector3.new(2.20000005, 1, 1))
  834. Partweld=weld(m,Handle2,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(3.84976673, 0.256440639, 1.85214663, 6.2584877e-007, 0.866025329, -0.500000298, -1.00000024, 1.72108412e-006, 1.7285347e-006, 2.38418579e-006, 0.500000298, 0.866025329))
  835. Gear2=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Really red","Part",Vector3.new(4.29999971, 4.30000019, 1))
  836. Gear2weld=weld(m,Handle2,Gear2,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.049841404, 0.049908638, 2.78949738e-005, 0.999990344, -5.01424074e-006, -1.49011612e-007, 5.28991222e-006, 0.999994934, 2.98023224e-008, 2.38418579e-007, -1.63912773e-007, 0.999994636))
  837. mesh("SpecialMesh",Gear2,Enum.MeshType.FileMesh,"http://www.roblox.com/asset?id=156292343",Vector3.new(0, 0, 0),Vector3.new(5, 5, 15))
  838. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Really red","Part",Vector3.new(2.20000005, 1, 1))
  839. Partweld=weld(m,Handle2,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(2.82676554, 0.256523609, 4.598104, -1.1920929e-006, 0.258818835, -0.965925872, -1.00000012, 1.46776438e-006, 1.63912773e-006, 1.83098018e-006, 0.965925872, 0.258818835))
  840.  
  841. local modelzorz3=Instance.new("Model")
  842. modelzorz3.Parent=Character
  843. modelzorz3.Name="Eye"
  844.  
  845. handle=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Handle",Vector3.new(1.20000005, 1.20000005, 1.20000005))
  846. handleweld=weld(m,Character["Torso"],handle,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-2.22326851, -3.5562191, -0.038143158, 0, 0, 1, 0, 1, 0, -1, 0, 0))
  847. mesh("SpecialMesh",handle,Enum.MeshType.FileMesh,"http://www.roblox.com/Asset/?id=9756362",Vector3.new(0, 0, 0),Vector3.new(1, 3, 1))
  848. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Royal purple","Part",Vector3.new(1.20000005, 1.20000005, 1.20000005))
  849. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0, 1.09672546e-005, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1))
  850. mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/Asset/?id=9756362",Vector3.new(0, 0, 0),Vector3.new(1.102, 0.950000048, 1.16999996))
  851. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Royal purple","Part",Vector3.new(1.20000005, 1.20000005, 1.20000005))
  852. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0, 1.09672546e-005, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1))
  853. mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/Asset/?id=9756362",Vector3.new(0, 0, 0),Vector3.new(1.102, 3, 0.863999963))
  854. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Royal purple","Part",Vector3.new(3.79999995, 4, 1.39999998))
  855. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.0999984741, 0, -0.100000381, 0, -1, 0, 0, 0, 1, -1, -0, 0))
  856. mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=3270017",Vector3.new(0, 0, 0),Vector3.new(4.77400017, 4.96199989, 4.73800039))
  857. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(3.79999995, 4, 1.39999998))
  858. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.0999984741, 0, -0.100000381, 0, -1, 0, 0, 0, 1, -1, -0, 0))
  859. mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=3270017",Vector3.new(0, 0, 0),Vector3.new(4.4920001, 4.70400047, 4.73800039))
  860. Wedge=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Royal purple","Wedge",Vector3.new(0.600000024, 2.5999999, 0.599999964))
  861. Wedgeweld=weld(m,handle,Wedge,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.100013733, -3.48671532, -1.09328079, 1, -2.52891718e-012, -6.81310423e-013, 2.53075664e-012, 0.866021812, 0.500005603, -6.74442273e-013, -0.500005603, 0.866021752))
  862. Wedge=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Royal purple","Wedge",Vector3.new(0.600000024, 2.5999999, 0.599999964))
  863. Wedgeweld=weld(m,handle,Wedge,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.100009918, -3.09970522, 1.40989685, 1, 0, 0, 0, 1, 0, 0, 0, 1))
  864. Wedge=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Royal purple","Wedge",Vector3.new(0.600000024, 2.5999999, 0.599999964))
  865. Wedgeweld=weld(m,handle,Wedge,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.100009918, -3.09970522, 1.39007568, -0.999999702, 0, 5.96046448e-008, 0, 1, 0, -5.96046448e-008, 0, -0.999999702))
  866. Wedge=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Royal purple","Wedge",Vector3.new(0.600000024, 2.5999999, 0.599999964))
  867. Wedgeweld=weld(m,handle,Wedge,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.100013733, -3.61302567, 0.360752106, 1, -3.69486299e-012, 1.70532143e-012, 3.81851625e-012, 0.707111537, -0.707102001, 1.40679254e-012, 0.70710206, 0.707111537))
  868.  
  869. local moosick = it("Sound",Torso)
  870. moosick.SoundId = "rbxassetid://142653441"
  871. --142653441, 175067863
  872. moosick.Looped = true
  873. moosick.Pitch = 1
  874. moosick.Volume = 1
  875. moosick:Play()
  876.  
  877. local particleemitter = Instance.new("ParticleEmitter", Handle)
  878. particleemitter.VelocitySpread = 180
  879. particleemitter.Lifetime = NumberRange.new(0.1)
  880. particleemitter.Speed = NumberRange.new(2)
  881. particleemitter.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, 1), NumberSequenceKeypoint.new(1, 5.563)})
  882. particleemitter.RotSpeed = NumberRange.new(-45, 45)
  883. particleemitter.Rate = 100
  884. particleemitter.Rotation = NumberRange.new(-45, 45)
  885. particleemitter.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0), NumberSequenceKeypoint.new(0.701, 0), NumberSequenceKeypoint.new(1, 1)})
  886. particleemitter.LightEmission = 0
  887. particleemitter.Color = ColorSequence.new(Color3.new(0, 0, 1), Color3.new(0, 0, 1))
  888.  
  889. local particleemitter = Instance.new("ParticleEmitter", Handle2)
  890. particleemitter.VelocitySpread = 180
  891. particleemitter.Lifetime = NumberRange.new(0.1)
  892. particleemitter.Speed = NumberRange.new(2)
  893. particleemitter.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, 1), NumberSequenceKeypoint.new(1, 5.563)})
  894. particleemitter.RotSpeed = NumberRange.new(-45, 45)
  895. particleemitter.Rate = 100
  896. particleemitter.Rotation = NumberRange.new(-45, 45)
  897. particleemitter.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0), NumberSequenceKeypoint.new(0.701, 0), NumberSequenceKeypoint.new(1, 1)})
  898. particleemitter.LightEmission = 0
  899. particleemitter.Color = ColorSequence.new(Color3.new(1, 0, 0), Color3.new(1, 0, 0))
  900.  
  901. local particleemitter = Instance.new("ParticleEmitter", handle)
  902. particleemitter.VelocitySpread = 180
  903. particleemitter.Lifetime = NumberRange.new(0.1)
  904. particleemitter.Speed = NumberRange.new(2)
  905. particleemitter.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, 1), NumberSequenceKeypoint.new(1, 7.563)})
  906. particleemitter.RotSpeed = NumberRange.new(-45, 45)
  907. particleemitter.Rate = 100
  908. particleemitter.Rotation = NumberRange.new(-45, 45)
  909. particleemitter.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0), NumberSequenceKeypoint.new(0.701, 0), NumberSequenceKeypoint.new(1, 1)})
  910. particleemitter.LightEmission = 0.8
  911. particleemitter.Color = ColorSequence.new(Color3.new(1, 0, 1), Color3.new(1, 0, 1))
  912.  
  913. Player=game:GetService("Players").LocalPlayer
  914. Character=Player.Character
  915. PlayerGui=Player.PlayerGui
  916. Backpack=Player.Backpack
  917. Torso=Character.Torso
  918. Head=Character.Head
  919. Humanoid=Character.Humanoid
  920. LeftArm=Character["Left Arm"]
  921. LeftLeg=Character["Left Leg"]
  922. RightArm=Character["Right Arm"]
  923. RightLeg=Character["Right Leg"]
  924. LS=Torso["Left Shoulder"]
  925. LH=Torso["Left Hip"]
  926. RS=Torso["Right Shoulder"]
  927. RH=Torso["Right Hip"]
  928. Face = Head.face
  929. Neck=Torso.Neck
  930. it=Instance.new
  931. attacktype=1
  932. vt=Vector3.new
  933. cf=CFrame.new
  934. euler=CFrame.fromEulerAnglesXYZ
  935. angles=CFrame.Angles
  936. cloaked=false
  937. necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  938. necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  939. LHC0=cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0)
  940. LHC1=cf(-0.5,1,0,-0,-0,-1,0,1,0,1,0,0)
  941. RHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0)
  942. RHC1=cf(0.5,1,0,0,0,1,0,1,0,-1,-0,-0)
  943. RootPart=Character.HumanoidRootPart
  944. RootJoint=RootPart.RootJoint
  945. RootCF=euler(-1.57,0,3.14)
  946. attack = false
  947. attackdebounce = false
  948. deb=false
  949. equipped=true
  950. hand=false
  951. MMouse=nil
  952. combo=0
  953. mana=0
  954. trispeed=.2
  955. attackmode='none'
  956. local idle=0
  957. local Anim="Idle"
  958. local Effects={}
  959. local gun=false
  960. local shoot=false
  961. player=nil
  962. mana=0
  963. cam = workspace.CurrentCamera
  964. ZTarget = nil
  965. RocketTarget = nil
  966. local m = Instance.new("Model",Character)
  967. m.Name = "WeaponModel"
  968.  
  969. mouse=Player:GetMouse()
  970. --save shoulders
  971. RSH, LSH=nil, nil
  972. --welds
  973. RW, LW=Instance.new("Weld"), Instance.new("Weld")
  974. RW.Name="Right Shoulder" LW.Name="Left Shoulder"
  975. LH=Torso["Left Hip"]
  976. RH=Torso["Right Hip"]
  977. function NoOutline(Part)
  978. Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
  979. end
  980. player=Player
  981. ch=Character
  982. RSH=ch.Torso["Right Shoulder"]
  983. LSH=ch.Torso["Left Shoulder"]
  984. --
  985. RSH.Parent=nil
  986. LSH.Parent=nil
  987. --
  988. RW.Name="Right Shoulder"
  989. RW.Part0=ch.Torso
  990. RW.C0=cf(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5)
  991. RW.C1=cf(0, 0.5, 0)
  992. RW.Part1=ch["Right Arm"]
  993. RW.Parent=ch.Torso
  994. --
  995. LW.Name="Left Shoulder"
  996. LW.Part0=ch.Torso
  997. LW.C0=cf(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8)
  998. LW.C1=cf(0, 0.5, 0)
  999. LW.Part1=ch["Left Arm"]
  1000. LW.Parent=ch.Torso
  1001.  
  1002. function swait(num)
  1003. if num==0 or num==nil then
  1004. game:service'RunService'.Heartbeat:wait(0)
  1005. else
  1006. for i=0,num do
  1007. game:service'RunService'.Heartbeat:wait(0)
  1008. end
  1009. end
  1010. end
  1011.  
  1012. function nooutline(part)
  1013. part.TopSurface,part.BottomSurface,part.LeftSurface,part.RightSurface,part.FrontSurface,part.BackSurface = 10,10,10,10,10,10
  1014. end
  1015.  
  1016. function part(formfactor,parent,material,reflectance,transparency,brickcolor,name,size)
  1017. local fp=it("Part")
  1018. fp.formFactor=formfactor
  1019. fp.Parent=parent
  1020. fp.Reflectance=reflectance
  1021. fp.Transparency=transparency
  1022. fp.CanCollide=false
  1023. fp.Locked=true
  1024. fp.BrickColor=BrickColor.new(tostring(brickcolor))
  1025. fp.Name=name
  1026. fp.Size=size
  1027. fp.Position=Character.Torso.Position
  1028. nooutline(fp)
  1029. fp.Material=material
  1030. fp:BreakJoints()
  1031. return fp
  1032. end
  1033.  
  1034. function mesh(Mesh,part,meshtype,meshid,offset,scale)
  1035. local mesh=it(Mesh)
  1036. mesh.Parent=part
  1037. if Mesh=="SpecialMesh" then
  1038. mesh.MeshType=meshtype
  1039. mesh.MeshId=meshid
  1040. end
  1041. mesh.Offset=offset
  1042. mesh.Scale=scale
  1043. return mesh
  1044. end
  1045.  
  1046. function weld(parent,part0,part1,c0,c1)
  1047. local weld=it("Weld")
  1048. weld.Parent=parent
  1049. weld.Part0=part0
  1050. weld.Part1=part1
  1051. weld.C0=c0
  1052. weld.C1=c1
  1053. return weld
  1054. end
  1055.  
  1056.  
  1057. local function CFrameFromTopBack(at, top, back)
  1058. local right = top:Cross(back)
  1059. return CFrame.new(at.x, at.y, at.z,
  1060. right.x, top.x, back.x,
  1061. right.y, top.y, back.y,
  1062. right.z, top.z, back.z)
  1063. end
  1064.  
  1065. function Triangle(a, b, c)
  1066. local edg1 = (c-a):Dot((b-a).unit)
  1067. local edg2 = (a-b):Dot((c-b).unit)
  1068. local edg3 = (b-c):Dot((a-c).unit)
  1069. if edg1 <= (b-a).magnitude and edg1 >= 0 then
  1070. a, b, c = a, b, c
  1071. elseif edg2 <= (c-b).magnitude and edg2 >= 0 then
  1072. a, b, c = b, c, a
  1073. elseif edg3 <= (a-c).magnitude and edg3 >= 0 then
  1074. a, b, c = c, a, b
  1075. else
  1076. assert(false, "unreachable")
  1077. end
  1078.  
  1079. local len1 = (c-a):Dot((b-a).unit)
  1080. local len2 = (b-a).magnitude - len1
  1081. local width = (a + (b-a).unit*len1 - c).magnitude
  1082.  
  1083. local maincf = CFrameFromTopBack(a, (b-a):Cross(c-b).unit, -(b-a).unit)
  1084.  
  1085. local list = {}
  1086.  
  1087. local TrailColor = ("Dark grey")
  1088.  
  1089. if len1 > 0.01 then
  1090. local w1 = Instance.new('WedgePart', m)
  1091. game:GetService("Debris"):AddItem(w1,5)
  1092. w1.Material = "SmoothPlastic"
  1093. w1.FormFactor = 'Custom'
  1094. w1.BrickColor = BrickColor.new(TrailColor)
  1095. w1.Transparency = 0
  1096. w1.Reflectance = 0
  1097. w1.Material = "SmoothPlastic"
  1098. w1.CanCollide = false
  1099. NoOutline(w1)
  1100. local sz = Vector3.new(0.2, width, len1)
  1101. w1.Size = sz
  1102. local sp = Instance.new("SpecialMesh",w1)
  1103. sp.MeshType = "Wedge"
  1104. sp.Scale = Vector3.new(0,1,1) * sz/w1.Size
  1105. w1:BreakJoints()
  1106. w1.Anchored = true
  1107. w1.Parent = workspace
  1108. w1.Transparency = 0.7
  1109. table.insert(Effects,{w1,"Disappear",.01})
  1110. w1.CFrame = maincf*CFrame.Angles(math.pi,0,math.pi/2)*CFrame.new(0,width/2,len1/2)
  1111. table.insert(list,w1)
  1112. end
  1113.  
  1114. if len2 > 0.01 then
  1115. local w2 = Instance.new('WedgePart', m)
  1116. game:GetService("Debris"):AddItem(w2,5)
  1117. w2.Material = "SmoothPlastic"
  1118. w2.FormFactor = 'Custom'
  1119. w2.BrickColor = BrickColor.new(TrailColor)
  1120. w2.Transparency = 0
  1121. w2.Reflectance = 0
  1122. w2.Material = "SmoothPlastic"
  1123. w2.CanCollide = false
  1124. NoOutline(w2)
  1125. local sz = Vector3.new(0.2, width, len2)
  1126. w2.Size = sz
  1127. local sp = Instance.new("SpecialMesh",w2)
  1128. sp.MeshType = "Wedge"
  1129. sp.Scale = Vector3.new(0,1,1) * sz/w2.Size
  1130. w2:BreakJoints()
  1131. w2.Anchored = true
  1132. w2.Parent = workspace
  1133. w2.Transparency = 0.7
  1134. table.insert(Effects,{w2,"Disappear",.01})
  1135. w2.CFrame = maincf*CFrame.Angles(math.pi,math.pi,-math.pi/2)*CFrame.new(0,width/2,-len1 - len2/2)
  1136. table.insert(list,w2)
  1137. end
  1138. return unpack(list)
  1139. end
  1140.  
  1141.  
  1142. so = function(id,par,vol,pit)
  1143. coroutine.resume(coroutine.create(function()
  1144. local sou = Instance.new("Sound",par or workspace)
  1145. sou.Volume=vol
  1146. sou.Pitch=pit or 1
  1147. sou.SoundId=id
  1148. swait()
  1149. sou:play()
  1150. game:GetService("Debris"):AddItem(sou,6)
  1151. end))
  1152. end
  1153.  
  1154. function clerp(a,b,t)
  1155. local qa = {QuaternionFromCFrame(a)}
  1156. local qb = {QuaternionFromCFrame(b)}
  1157. local ax, ay, az = a.x, a.y, a.z
  1158. local bx, by, bz = b.x, b.y, b.z
  1159. local _t = 1-t
  1160. return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t))
  1161. end
  1162.  
  1163. function QuaternionFromCFrame(cf)
  1164. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  1165. local trace = m00 + m11 + m22
  1166. if trace > 0 then
  1167. local s = math.sqrt(1 + trace)
  1168. local recip = 0.5/s
  1169. return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5
  1170. else
  1171. local i = 0
  1172. if m11 > m00 then
  1173. i = 1
  1174. end
  1175. if m22 > (i == 0 and m00 or m11) then
  1176. i = 2
  1177. end
  1178. if i == 0 then
  1179. local s = math.sqrt(m00-m11-m22+1)
  1180. local recip = 0.5/s
  1181. return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip
  1182. elseif i == 1 then
  1183. local s = math.sqrt(m11-m22-m00+1)
  1184. local recip = 0.5/s
  1185. return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip
  1186. elseif i == 2 then
  1187. local s = math.sqrt(m22-m00-m11+1)
  1188. local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip
  1189. end
  1190. end
  1191. end
  1192.  
  1193. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  1194. local xs, ys, zs = x + x, y + y, z + z
  1195. local wx, wy, wz = w*xs, w*ys, w*zs
  1196. local xx = x*xs
  1197. local xy = x*ys
  1198. local xz = x*zs
  1199. local yy = y*ys
  1200. local yz = y*zs
  1201. local zz = z*zs
  1202. 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))
  1203. end
  1204.  
  1205. function QuaternionSlerp(a, b, t)
  1206. local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4]
  1207. local startInterp, finishInterp;
  1208. if cosTheta >= 0.0001 then
  1209. if (1 - cosTheta) > 0.0001 then
  1210. local theta = math.acos(cosTheta)
  1211. local invSinTheta = 1/math.sin(theta)
  1212. startInterp = math.sin((1-t)*theta)*invSinTheta
  1213. finishInterp = math.sin(t*theta)*invSinTheta
  1214. else
  1215. startInterp = 1-t
  1216. finishInterp = t
  1217. end
  1218. else
  1219. if (1+cosTheta) > 0.0001 then
  1220. local theta = math.acos(-cosTheta)
  1221. local invSinTheta = 1/math.sin(theta)
  1222. startInterp = math.sin((t-1)*theta)*invSinTheta
  1223. finishInterp = math.sin(t*theta)*invSinTheta
  1224. else
  1225. startInterp = t-1
  1226. finishInterp = t
  1227. end
  1228. end
  1229. 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
  1230. end
  1231.  
  1232. function rayCast(Pos, Dir, Max, Ignore) -- Origin Position , Direction, MaxDistance , IgnoreDescendants
  1233. return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  1234. end
  1235.  
  1236. Damagefunc=function(Part,hit,minim,maxim,knockback,Type,Property,Delay,KnockbackType,decreaseblock)
  1237. if hit.Parent==nil then
  1238. return
  1239. end
  1240. local h=hit.Parent:FindFirstChild("Humanoid")
  1241. for _,v in pairs(hit.Parent:children()) do
  1242. if v:IsA("Humanoid") then
  1243. h=v
  1244. end
  1245. end
  1246. if hit.Parent.Parent:FindFirstChild("Torso")~=nil then
  1247. h=hit.Parent.Parent:FindFirstChild("Humanoid")
  1248. end
  1249. if hit.Parent.className=="Hat" then
  1250. hit=hit.Parent.Parent:findFirstChild("Head")
  1251. end
  1252. if h~=nil and hit.Parent.Name~=Character.Name and hit.Parent:FindFirstChild("Torso")~=nil then
  1253. if hit.Parent:findFirstChild("DebounceHit")~=nil then if hit.Parent.DebounceHit.Value==true then return end end
  1254. --[[ if game.Players:GetPlayerFromCharacter(hit.Parent)~=nil then
  1255. return
  1256. end]]
  1257. -- hs(hit,1.2)
  1258. local c=Instance.new("ObjectValue")
  1259. c.Name="creator"
  1260. c.Value=game:service("Players").LocalPlayer
  1261. c.Parent=h
  1262. game:GetService("Debris"):AddItem(c,.5)
  1263. local Damage=math.random(minim,maxim)
  1264. -- h:TakeDamage(Damage)
  1265. local blocked=false
  1266. local block=hit.Parent:findFirstChild("Block")
  1267. if block~=nil then
  1268. print(block.className)
  1269. if block.className=="NumberValue" then
  1270. if block.Value>0 then
  1271. blocked=true
  1272. if decreaseblock==nil then
  1273. block.Value=block.Value-1
  1274. end
  1275. end
  1276. end
  1277. if block.className=="IntValue" then
  1278. if block.Value>0 then
  1279. blocked=true
  1280. if decreaseblock~=nil then
  1281. block.Value=block.Value-1
  1282. end
  1283. end
  1284. end
  1285. end
  1286. if blocked==false then
  1287. -- h:TakeDamage(Damage)
  1288. h.Health=h.Health-Damage
  1289. ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, Part.BrickColor.Color)
  1290. else
  1291. h.Health=h.Health-(Damage/2)
  1292. ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, BrickColor.new("Bright blue").Color)
  1293. end
  1294. if Type=="Knockdown" then
  1295. local hum=hit.Parent.Humanoid
  1296. hum.PlatformStand=true
  1297. coroutine.resume(coroutine.create(function(HHumanoid)
  1298. swait(1)
  1299. HHumanoid.PlatformStand=false
  1300. end),hum)
  1301. local angle=(hit.Position-(Property.Position+Vector3.new(0,0,0))).unit
  1302. --hit.CFrame=CFrame.new(hit.Position,Vector3.new(angle.x,hit.Position.y,angle.z))*CFrame.fromEulerAnglesXYZ(math.pi/4,0,0)
  1303. local bodvol=Instance.new("BodyVelocity")
  1304. bodvol.velocity=angle*knockback
  1305. bodvol.P=5000
  1306. bodvol.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
  1307. bodvol.Parent=hit
  1308. local rl=Instance.new("BodyAngularVelocity")
  1309. rl.P=3000
  1310. rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000
  1311. rl.angularvelocity=Vector3.new(math.random(-10,10),math.random(-10,10),math.random(-10,10))
  1312. rl.Parent=hit
  1313. game:GetService("Debris"):AddItem(bodvol,.5)
  1314. game:GetService("Debris"):AddItem(rl,.5)
  1315. elseif Type=="Normal" then
  1316. local vp=Instance.new("BodyVelocity")
  1317. vp.P=500
  1318. vp.maxForce=Vector3.new(math.huge,0,math.huge)
  1319. -- vp.velocity=Character.Torso.CFrame.lookVector*Knockback
  1320. if KnockbackType==1 then
  1321. vp.velocity=Property.CFrame.lookVector*knockback+Property.Velocity/1.05
  1322. elseif KnockbackType==2 then
  1323. vp.velocity=Property.CFrame.lookVector*knockback
  1324. end
  1325. if knockback>0 then
  1326. vp.Parent=hit.Parent.Torso
  1327. end
  1328. game:GetService("Debris"):AddItem(vp,.5)
  1329. elseif Type=="Up" then
  1330. local bodyVelocity=Instance.new("BodyVelocity")
  1331. bodyVelocity.velocity=vt(0,60,0)
  1332. bodyVelocity.P=5000
  1333. bodyVelocity.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
  1334. bodyVelocity.Parent=hit
  1335. game:GetService("Debris"):AddItem(bodyVelocity,1)
  1336. local rl=Instance.new("BodyAngularVelocity")
  1337. rl.P=3000
  1338. rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000
  1339. rl.angularvelocity=Vector3.new(math.random(-30,30),math.random(-30,30),math.random(-30,30))
  1340. rl.Parent=hit
  1341. game:GetService("Debris"):AddItem(rl,.5)
  1342. elseif Type=="Snare" then
  1343. local bp=Instance.new("BodyPosition")
  1344. bp.P=2000
  1345. bp.D=100
  1346. bp.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  1347. bp.position=hit.Parent.Torso.Position
  1348. bp.Parent=hit.Parent.Torso
  1349. game:GetService("Debris"):AddItem(bp,1)
  1350. elseif Type=="Target" then
  1351. local Targetting = false
  1352. if Targetting==false then
  1353. ZTarget=hit.Parent.Torso
  1354. coroutine.resume(coroutine.create(function(Part)
  1355. so("http://www.roblox.com/asset/?id=15666462",Part,1,1.5)
  1356. swait(5)
  1357. so("http://www.roblox.com/asset/?id=15666462",Part,1,1.5)
  1358. end),ZTarget)
  1359. local TargHum=ZTarget.Parent:findFirstChild("Humanoid")
  1360. local targetgui=Instance.new("BillboardGui")
  1361. targetgui.Parent=ZTarget
  1362. targetgui.Size=UDim2.new(10,100,10,100)
  1363. local targ=Instance.new("ImageLabel")
  1364. targ.Parent=targetgui
  1365. targ.BackgroundTransparency=1
  1366. targ.Image="rbxassetid://4834067"
  1367. targ.Size=UDim2.new(1,0,1,0)
  1368. cam.CameraType="Scriptable"
  1369. cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
  1370. local dir=Vector3.new(cam.CoordinateFrame.lookVector.x,0,cam.CoordinateFrame.lookVector.z)
  1371. workspace.CurrentCamera.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
  1372. Targetting=true
  1373. RocketTarget=ZTarget
  1374. for i=1,Property do
  1375. --while Targetting==true and Humanoid.Health>0 and Character.Parent~=nil do
  1376. if Humanoid.Health>0 and Character.Parent~=nil and TargHum.Health>0 and TargHum.Parent~=nil and Targetting==true then
  1377. swait()
  1378. end
  1379. --workspace.CurrentCamera.CoordinateFrame=CFrame.new(Head.CFrame.p,Head.CFrame.p+rmdir*100)
  1380. cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
  1381. dir=Vector3.new(cam.CoordinateFrame.lookVector.x,0,cam.CoordinateFrame.lookVector.z)
  1382. cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)*cf(0,5,10)*euler(-0.3,0,0)
  1383. end
  1384. Targetting=false
  1385. RocketTarget=nil
  1386. targetgui.Parent=nil
  1387. cam.CameraType="Custom"
  1388. end
  1389. end
  1390. local debounce=Instance.new("BoolValue")
  1391. debounce.Name="DebounceHit"
  1392. debounce.Parent=hit.Parent
  1393. debounce.Value=true
  1394. game:GetService("Debris"):AddItem(debounce,Delay)
  1395. c=Instance.new("ObjectValue")
  1396. c.Name="creator"
  1397. c.Value=Player
  1398. c.Parent=h
  1399. game:GetService("Debris"):AddItem(c,.5)
  1400. end
  1401. end
  1402.  
  1403. function ShowDamage(Pos, Text, Time, Color)
  1404. local Rate = (1 / 30)
  1405. local Pos = (Pos or Vector3.new(0, 0, 0))
  1406. local Text = (Text or "")
  1407. local Time = (Time or 2)
  1408. local Color = (Color or Color3.new(1, 0, 0))
  1409. local EffectPart = part("Custom",workspace,"SmoothPlastic",0,1,BrickColor.new(Color),"Effect",vt(0,0,0))
  1410. EffectPart.Anchored = true
  1411. local BillboardGui = Instance.new("BillboardGui")
  1412. BillboardGui.Size = UDim2.new(3, 0, 3, 0)
  1413. BillboardGui.Adornee = EffectPart
  1414. local TextLabel = Instance.new("TextLabel")
  1415. TextLabel.BackgroundTransparency = 1
  1416. TextLabel.Size = UDim2.new(1, 0, 1, 0)
  1417. TextLabel.Text = Text
  1418. TextLabel.TextColor3 = Color
  1419. TextLabel.TextScaled = true
  1420. TextLabel.Font = Enum.Font.ArialBold
  1421. TextLabel.Parent = BillboardGui
  1422. BillboardGui.Parent = EffectPart
  1423. game.Debris:AddItem(EffectPart, (Time + 0.1))
  1424. EffectPart.Parent = game:GetService("Workspace")
  1425. Delay(0, function()
  1426. local Frames = (Time / Rate)
  1427. for Frame = 1, Frames do
  1428. wait(Rate)
  1429. local Percent = (Frame / Frames)
  1430. EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0)
  1431. TextLabel.TextTransparency = Percent
  1432. end
  1433. if EffectPart and EffectPart.Parent then
  1434. EffectPart:Destroy()
  1435. end
  1436. end)
  1437. end
  1438.  
  1439. --example: local con = HitboxB.Touched:connect(function(hit) Damagefunc(Hitbox,hit,Dmg,Dmg,math.random(Knockback,Knockback),"Normal",RootPart,.2,1) end)
  1440.  
  1441. Handle=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0.5,1,"Really black","Handle",Vector3.new(1, 0.800000012, 1))
  1442. Handleweld=weld(m,Character["Right Arm"],Handle,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-8.96453857e-005, 0.000481128693, -1.83582306e-005, 1, 1.92410751e-014, -4.42007258e-005, -1.93349195e-014, 0.999999881, -2.12312026e-012, 4.42007258e-005, 2.12312091e-012, 1))
  1443. Hitbox=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0.5,1,"Really black","Hitbox",Vector3.new(1.60000002, 3.4000001, 1))
  1444. Hitboxweld=weld(m,Handle,Hitbox,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.300050735, 0.100232601, 3.57627869e-007, 1, 1.06558363e-014, -4.67116479e-009, -1.06558363e-014, 1, -7.35089073e-017, 4.67116479e-009, 7.35089073e-017, 1))
  1445. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0.5,0,"Really black","Part",Vector3.new(1, 0.200000003, 1))
  1446. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(8.20159912e-005, 1.10002291, 1.57356262e-005, 1, -1.22308889e-014, 4.41999473e-005, 1.23254525e-014, 0.999996662, -2.14035647e-012, -4.41999473e-005, 2.14036427e-012, 1))
  1447. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0.5,0,"Really black","Part",Vector3.new(1.01999998, 0.200000003, 0.200000003))
  1448. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(7.82012939e-005, -0.699694633, 0.410015702, 1, -1.57821432e-014, 4.42007258e-005, 1.56883004e-014, 1, 2.12312091e-012, -4.42007258e-005, -2.12312026e-012, 1))
  1449. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0.5,0,"Really black","Part",Vector3.new(1.01999998, 0.200000003, 0.200000003))
  1450. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(7.82012939e-005, -0.699361324, -0.40998435, 1, -1.22308889e-014, 4.41999473e-005, 1.23254932e-014, 1, -2.14036362e-012, -4.41999473e-005, 2.14036427e-012, 1))
  1451. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0.5,0,"Really black","Part",Vector3.new(0.200000003, 0.800000012, 0.620000005))
  1452. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.409914017, 0.000346660614, 1.57356262e-005, 1, -1.57821432e-014, 4.42007258e-005, 1.56883004e-014, 1, 2.12312091e-012, -4.42007258e-005, -2.12312026e-012, 1))
  1453. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0.5,0,"Really black","Part",Vector3.new(0.200000003, 0.200000003, 0.620000005))
  1454. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.409914017, 0.700180769, 1.57356262e-005, 1, -1.57821432e-014, 4.42007258e-005, 1.56883004e-014, 1, 2.12312091e-012, -4.42007258e-005, -2.12312026e-012, 1))
  1455. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0.5,0,"Really black","Part",Vector3.new(1.01999998, 0.800000012, 0.200000003))
  1456. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(7.82012939e-005, 0.000400543213, 0.410015702, 1, -1.57821432e-014, 4.42007258e-005, 1.56883004e-014, 1, 2.12312091e-012, -4.42007258e-005, -2.12312026e-012, 1))
  1457. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0.5,0,"Really black","Part",Vector3.new(0.200000003, 0.800000012, 0.620000005))
  1458. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.410078049, 0.000326633453, 1.57356262e-005, 1, -1.57821432e-014, 4.42007258e-005, 1.56883004e-014, 1, 2.12312091e-012, -4.42007258e-005, -2.12312026e-012, 1))
  1459. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0.5,0,"Really black","Part",Vector3.new(1.01999998, 0.800000012, 0.200000003))
  1460. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(7.82012939e-005, 0.000392436981, -0.40998435, 1, -1.57821432e-014, 4.42007258e-005, 1.56883004e-014, 1, 2.12312091e-012, -4.42007258e-005, -2.12312026e-012, 1))
  1461. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0.5,0,"Really black","Part",Vector3.new(1.01999998, 0.200000003, 0.200000003))
  1462. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(7.82012939e-005, 0.700207949, 0.410015702, 1, -1.57821432e-014, 4.42007258e-005, 1.56883004e-014, 1, 2.12312091e-012, -4.42007258e-005, -2.12312026e-012, 1))
  1463. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0.5,0,"Really black","Part",Vector3.new(0.200000003, 0.200000003, 0.620000005))
  1464. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.410078049, -0.699380398, 1.56164169e-005, 1, -1.22308889e-014, 4.41999473e-005, 1.23254932e-014, 1, -2.14036362e-012, -4.41999473e-005, 2.14036427e-012, 1))
  1465. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0.5,0,"Really black","Part",Vector3.new(0.200000003, 0.200000003, 0.620000005))
  1466. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.4100914, 0.700154781, 1.57356262e-005, 1, -1.93349195e-014, 4.42007258e-005, 1.92409124e-014, 0.999991417, 2.12310291e-012, -4.42007258e-005, -2.12312026e-012, 1))
  1467. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0.5,0,"Really black","Part",Vector3.new(1.01999998, 0.200000003, 0.200000003))
  1468. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(7.82012939e-005, 0.700230837, -0.40998435, 1, -1.57821432e-014, 4.42007258e-005, 1.56883004e-014, 1, 2.12312091e-012, -4.42007258e-005, -2.12312026e-012, 1))
  1469. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0.5,0,"Really black","Part",Vector3.new(0.400000006, 2, 1))
  1470. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.699924469, 4.14848328e-005, 2.16960907e-005, 1, -1.22308889e-014, 4.41999473e-005, 1.23254932e-014, 1, -2.14036362e-012, -4.41999473e-005, 2.14036427e-012, 1))
  1471. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0.5,0,"Really black","Part",Vector3.new(1, 1.39999998, 0.200000003))
  1472. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(1.57356262e-005, -0.299851894, 0.999885559, -4.41999473e-005, -5.95854743e-008, 1, -2.60350986e-012, 1, 5.95854743e-008, -1, 3.01648321e-014, -4.41999473e-005))
  1473. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  1474. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0.5,0,"Really black","Part",Vector3.new(1, 0.600000024, 0.200000003))
  1475. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-1.57356262e-005, -0.700007677, 0.999902725, 4.41999473e-005, -2.13950775e-012, -1, -2.65373322e-014, -1, 2.13950667e-012, -1, 2.64427677e-014, -4.41999473e-005))
  1476. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  1477. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0.5,0,"Really black","Part",Vector3.new(0.400000006, 1.39999998, 0.399999976))
  1478. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.848457336, -0.300411701, -0.141453743, 0.707042813, -1.50516166e-012, -0.707170904, 1.1783393e-014, 1, -2.11664583e-012, 0.707170904, 1.48822632e-012, 0.707042813))
  1479. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0.5,0,"Really black","Part",Vector3.new(0.400000006, 0.400000006, 0.400000006))
  1480. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.6998806, -0.499980569, -0.399654627, 0.999999881, 3.17161053e-008, 4.20847573e-005, -4.21145523e-005, -2.83570323e-009, 0.999999762, 3.17162403e-008, -0.999999762, -2.83438673e-009))
  1481. mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/Asset/?id=9756362",Vector3.new(0, 0, 0),Vector3.new(0.404000014, 0.400000006, 0.995999992))
  1482. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0.5,0,"Really black","Part",Vector3.new(0.400000006, 0.400000006, 0.400000006))
  1483. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.699882507, 0.500019133, 1.00034523, 0.999999881, 3.17161053e-008, 4.20847573e-005, -4.21145523e-005, -2.83570323e-009, 0.999999762, 3.17162403e-008, -0.999999762, -2.83438673e-009))
  1484. mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/Asset/?id=9756362",Vector3.new(0, 0, 0),Vector3.new(0.404000014, 0.400000006, 0.560000002))
  1485. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0.5,0,"Really black","Part",Vector3.new(0.400000006, 0.400000006, 0.400000006))
  1486. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.699882507, 0.500019133, -0.399654627, 0.999999881, 3.17161053e-008, 4.20847573e-005, -4.21145523e-005, -2.83570323e-009, 0.999999762, 3.17162403e-008, -0.999999762, -2.83438673e-009))
  1487. mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/Asset/?id=9756362",Vector3.new(0, 0, 0),Vector3.new(0.404000014, 0.400000006, 0.995999992))
  1488. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0.5,0,"Really black","Part",Vector3.new(0.200000003, 0.200000003, 0.620000005))
  1489. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.409921646, -0.699380398, 1.57356262e-005, 1, -1.22308889e-014, 4.41999473e-005, 1.23254932e-014, 1, -2.14036362e-012, -4.41999473e-005, 2.14036427e-012, 1))
  1490. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0.5,0,"Really black","Part",Vector3.new(1, 0.200000003, 0.400000006))
  1491. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-1.56164169e-005, -1.10002637, 0.699918747, 4.41999473e-005, -2.14036427e-012, -1, -1.23254932e-014, -1, 2.14036362e-012, -1, 1.22308889e-014, -4.41999473e-005))
  1492. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  1493. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0.5,0,"Really black","Part",Vector3.new(1, 0.200000003, 0.200000003))
  1494. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-2.16960907e-005, -0.599924088, 1.49999762, 4.41999473e-005, -2.14036427e-012, -1, 1, -1.22308889e-014, 4.41999473e-005, -1.23254932e-014, -1, 2.14036362e-012))
  1495. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  1496. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0.5,0,"Really black","Part",Vector3.new(0.400000006, 1.39999998, 0.399999976))
  1497. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.141283035, -0.300261259, -0.848459244, 0.707067847, -1.51049073e-012, -0.70714587, 1.20093924e-014, 1, -2.12403055e-012, 0.70714587, 1.49334115e-012, 0.707067847))
  1498. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0.5,0,"Really black","Part",Vector3.new(0.400000006, 0.400000006, 0.400000006))
  1499. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.6998806, -0.499980569, 1.00034523, 0.999999881, 3.17161053e-008, 4.20847573e-005, -4.21145523e-005, -2.83570323e-009, 0.999999762, 3.17162403e-008, -0.999999762, -2.83438673e-009))
  1500. mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/Asset/?id=9756362",Vector3.new(0, 0, 0),Vector3.new(0.403999984, 0.399999976, 0.560000002))
  1501. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0.5,0,"Really black","Part",Vector3.new(1, 0.200000003, 0.400000006))
  1502. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-2.16960907e-005, -0.79992485, 1.19999647, 4.41999473e-005, -2.14036427e-012, -1, 0.999999821, 2.980231e-008, 4.419994e-005, 2.980231e-008, -0.999999821, 3.45762416e-012))
  1503. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  1504. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0.5,0,"Really black","Part",Vector3.new(0.200000003, 0.400000006, 1))
  1505. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.599924088, -1.19995832, 2.16960907e-005, 1, -1.22308889e-014, 4.41999473e-005, 1.23254932e-014, 1, -2.14036362e-012, -4.41999473e-005, 2.14036427e-012, 1))
  1506. Finger1Connector=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0.5,1,"Bright blue","Finger1Connector",Vector3.new(0.200000003, 0.200000003, 0.200000003))
  1507. Finger1Connectorweld=weld(m,Handle,Finger1Connector,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.399971008, 1.29990399, 0.200015664, 1, 1.78782017e-007, 4.41999473e-005, -1.7878321e-007, 0.999993324, -1.00110302e-011, -4.41999473e-005, 2.10883698e-012, 1))
  1508. Finger2Connector=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0.5,1,"Bright blue","Finger2Connector",Vector3.new(0.200000003, 0.200000003, 0.200000003))
  1509. Finger2Connectorweld=weld(m,Handle,Finger2Connector,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.399934769, 1.29982674, 0.400015712, 1, 2.97982776e-008, 4.41999473e-005, -2.97984766e-008, 0.999993324, -3.43642345e-012, -4.41999473e-005, 2.11934723e-012, 1))
  1510. Finger3Connector=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0.5,1,"Bright blue","Finger3Connector",Vector3.new(0.200000003, 0.200000003, 0.200000003))
  1511. Finger3Connectorweld=weld(m,Handle,Finger3Connector,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.399934769, 1.29971194, 0.140015721, 1, 8.93768473e-008, 4.421228e-005, -8.93774441e-008, 0.999993324, -1.82566007e-012, -4.421228e-005, -2.12587717e-012, 1))
  1512. Finger4Connector=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0.5,1,"Bright blue","Finger4Connector",Vector3.new(0.200000003, 0.200000003, 0.200000003))
  1513. Finger4Connectorweld=weld(m,Handle,Finger4Connector,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.399930954, 1.29973722, -0.119984269, 1, 8.93806842e-008, 4.421228e-005, -8.9381281e-008, 0.999993324, -1.82601091e-012, -4.421228e-005, -2.12569589e-012, 1))
  1514. Finger5Connector=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0.5,1,"Bright blue","Finger5Connector",Vector3.new(0.200000003, 0.200000003, 0.200000003))
  1515. Finger5Connectorweld=weld(m,Handle,Finger5Connector,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.399984121, -1.29981911, -0.399932861, -4.41701486e-005, 5.95858012e-008, 1, 4.58027785e-008, -0.999993324, 5.95882241e-008, 1, 4.58051019e-008, 4.41701486e-005))
  1516. Finger1=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0.5,0,"Bright blue","Finger1",Vector3.new(0.200000003, 0.400000006, 0.200000003))
  1517. Finger1weld=weld(m,Finger1Connector,Finger1,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(6.10351563e-005, 0.100007057, 0, 1, 2.06483719e-011, -5.55111512e-017, -2.54232191e-011, 0.999986649, 4.50594423e-016, 5.55111512e-017, -4.49727061e-016, 1))
  1518. Finger2=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0.5,0,"Bright blue","Finger2",Vector3.new(0.200000003, 0.600000024, 0.200000003))
  1519. Finger2weld=weld(m,Finger2Connector,Finger2,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(3.81469727e-006, 0.199999213, 1.1920929e-007, 1, 8.77520279e-013, 0, -1.67332814e-012, 0.999986649, 1.50920942e-016, 0, -1.50053581e-016, 1))
  1520. Finger3=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0.5,0,"Bright blue","Finger3",Vector3.new(0.200000003, 0.600000024, 0.200000003))
  1521. Finger3weld=weld(m,Finger3Connector,Finger3,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(3.81469727e-006, 0.200001121, 1.1920929e-007, 1, 2.64321898e-012, -4.35207426e-013, -5.03064257e-012, 0.999986649, -1.23739232e-016, 4.35207426e-013, 2.38535383e-016, 1))
  1522. Finger4=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0.5,0,"Bright blue","Finger4",Vector3.new(0.200000003, 0.600000024, 0.200000003))
  1523. Finger4weld=weld(m,Finger4Connector,Finger4,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(3.81469727e-006, 0.199998736, 1.1920929e-007, 1, 2.64321898e-012, -4.35207426e-013, -5.03064257e-012, 0.999986649, -1.23732138e-016, 4.35207426e-013, 2.38539513e-016, 1))
  1524. Finger5=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0.5,0,"Bright blue","Finger5",Vector3.new(0.200000003, 0.600000024, 0.200000003))
  1525. Finger5weld=weld(m,Finger5Connector,Finger5,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(2.38418579e-007, -0.199927688, 9.53674316e-006, 1, -3.86535248e-012, -7.77482967e-010, 5.45696821e-012, 0.999986649, -1.35540613e-012, 7.77477638e-010, 2.57749442e-012, 1))
  1526.  
  1527. function FuckYou()
  1528. attack = true
  1529. for i = 0,1,0.1 do
  1530. swait()
  1531. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(30)),.3)
  1532. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(-30)),.3)
  1533. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(-130), math.rad(-170)), 0.3)
  1534. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-10), math.rad(0), math.rad(-20)), 0.3)
  1535. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0)),.3)
  1536. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0)),.3)
  1537. Finger1weld.C0=clerp(Finger1weld.C0,cf(0,0.09,0)*angles(math.rad(0),math.rad(0),math.rad(80)),.3)
  1538. Finger2weld.C0=clerp(Finger2weld.C0,cf(0,0.09,0)*angles(math.rad(0),math.rad(0),math.rad(-80)),.3)
  1539. Finger3weld.C0=clerp(Finger3weld.C0,cf(0,0.08,0)*angles(math.rad(0),math.rad(0),math.rad(-80)),.3)
  1540. Finger4weld.C0=clerp(Finger4weld.C0,cf(0,0.09,0)*angles(math.rad(0),math.rad(0),math.rad(-80)),.3)
  1541. Finger5weld.C0=clerp(Finger5weld.C0,cf(0,-0.1,0)*angles(math.rad(-80),math.rad(0),math.rad(0)),.3)
  1542. end
  1543. for i = 0,1,0.01 do
  1544. swait()
  1545. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(30)),.3)
  1546. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(-30)),.3)
  1547. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(-130), math.rad(-150)), 0.3)
  1548. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-10), math.rad(0), math.rad(-20)), 0.3)
  1549. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0)),.3)
  1550. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0)),.3)
  1551. Finger1weld.C0=clerp(Finger1weld.C0,cf(0,0.09,0)*angles(math.rad(0),math.rad(0),math.rad(80)),.3)
  1552. Finger2weld.C0=clerp(Finger2weld.C0,cf(0,0.09,0)*angles(math.rad(0),math.rad(0),math.rad(-80)),.3)
  1553. Finger3weld.C0=clerp(Finger3weld.C0,cf(0,0.08,0)*angles(math.rad(0),math.rad(0),math.rad(-20)),.3)
  1554. Finger4weld.C0=clerp(Finger4weld.C0,cf(0,0.09,0)*angles(math.rad(0),math.rad(0),math.rad(-80)),.3)
  1555. Finger5weld.C0=clerp(Finger5weld.C0,cf(0,-0.1,0)*angles(math.rad(-80),math.rad(0),math.rad(0)),.3)
  1556. end
  1557. attack = false
  1558. end
  1559.  
  1560. function Spin()
  1561. attack=true
  1562. mana=mana-40
  1563. if TrailDeb == false then
  1564. TrailDeb = true
  1565. end
  1566.  
  1567. coroutine.wrap(function()
  1568. local Old = Handle2.CFrame.p
  1569. while wait()do
  1570. if not TrailDeb then break end
  1571. local New = Handle2.CFrame.p
  1572. local Mag =(Old -New).magnitude
  1573. local Dis =(Old +New)/2
  1574. local Trail = Instance.new("Part",Character)
  1575. Trail.Material = "Neon"
  1576. Trail.Anchored = true
  1577. Trail.CanCollide = false
  1578. Trail.BrickColor = TorsoColor
  1579. Trail.Size = Vector3.new(0.2,Mag,0.2)
  1580. Trail.TopSurface = 0
  1581. Trail.BottomSurface = 0
  1582. Trail.formFactor = "Custom"
  1583. Trail.CFrame = CFrame.new(Dis,New)* CFrame.Angles(math.pi/2,0,0)
  1584. local ms = Instance.new("BlockMesh",Trail)
  1585. ms.Scale = Vector3.new(1,1,1)
  1586. local TM = Instance.new("CylinderMesh",Trail)
  1587. TM.Scale = Vector3.new(1,1,1)
  1588. Old = New
  1589. coroutine.wrap(function()
  1590. for i = 1,0,-0.1 do
  1591. wait()
  1592. TM.Scale = TM.Scale * Vector3.new(i,1,i)
  1593. end
  1594. Trail:remove()
  1595. end)()
  1596. coroutine.wrap(function()
  1597. for i = 1,10 do
  1598. wait()
  1599. Trail.Transparency = Trail.Transparency +0.1
  1600. end end)()end end)()
  1601. coroutine.wrap(function()
  1602. local Old = Handle.CFrame.p
  1603. while wait()do
  1604. if not TrailDeb then break end
  1605. local New = Handle.CFrame.p
  1606. local Mag =(Old -New).magnitude
  1607. local Dis =(Old +New)/2
  1608. local Trail = Instance.new("Part",Character)
  1609. Trail.Material = "Neon"
  1610. Trail.Anchored = true
  1611. Trail.CanCollide = false
  1612. Trail.BrickColor = TorsoColor
  1613. Trail.Size = Vector3.new(0.2,Mag,0.2)
  1614. Trail.TopSurface = 0
  1615. Trail.BottomSurface = 0
  1616. Trail.formFactor = "Custom"
  1617. Trail.CFrame = CFrame.new(Dis,New)* CFrame.Angles(math.pi/2,0,0)
  1618. local ms = Instance.new("BlockMesh",Trail)
  1619. ms.Scale = Vector3.new(1,1,1)
  1620. local TM = Instance.new("CylinderMesh",Trail)
  1621. TM.Scale = Vector3.new(1,1,1)
  1622. Old = New
  1623. coroutine.wrap(function()
  1624. for i = 1,0,-0.1 do
  1625. wait()
  1626. TM.Scale = TM.Scale * Vector3.new(i,1,i)
  1627. end
  1628. Trail:remove()
  1629. end)()
  1630. coroutine.wrap(function()
  1631. for i = 1,10 do
  1632. wait()
  1633. Trail.Transparency = Trail.Transparency +0.1
  1634. end end)()end end)()
  1635. Footsteps:Stop()
  1636. Footsteps2:Stop()
  1637. so("http://www.roblox.com/asset/?id=159882497",Torso,1,1)
  1638. for i=0,1,0.1 do
  1639. swait()
  1640. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,10)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  1641. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  1642. Handleweld.C0=clerp(Handleweld.C0,cf(5,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  1643. Handle2weld.C0=clerp(Handle2weld.C0,cf(-5,0,0)*angles(math.rad(0),math.rad(180),math.rad(180)),.2)
  1644. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(90)),.3)
  1645. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(-90)),.3)
  1646. end
  1647. if anim then
  1648. anim.Disabled=true
  1649. end
  1650. so("http://www.roblox.com/asset/?id=231917758",LeftArm,1,1.2)
  1651. so("http://www.roblox.com/asset/?id=231917758",RightArm,1,1)
  1652. for i=0,1,0.05 do
  1653. swait()
  1654. Torso.Velocity=RootPart.CFrame.lookVector*100
  1655. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,10)*angles(math.rad(0),math.rad(90),math.rad(0+360*i)),.3)
  1656. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  1657. Handleweld.C0=clerp(Handleweld.C0,cf(5,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  1658. Handle2weld.C0=clerp(Handle2weld.C0,cf(-5,0,0)*angles(math.rad(0),math.rad(180),math.rad(180)),.2)
  1659. RW.C0=clerp(RW.C0,cf(1,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(90)),.3)
  1660. LW.C0=clerp(LW.C0,cf(-1,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(-90)),.3)
  1661. end
  1662. so("http://www.roblox.com/asset/?id=231917758",LeftArm,1,1.2)
  1663. so("http://www.roblox.com/asset/?id=231917758",RightArm,1,1)
  1664. for i=0,1,0.05 do
  1665. swait()
  1666. Torso.Velocity=RootPart.CFrame.lookVector*100
  1667. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,10)*angles(math.rad(0),math.rad(90),math.rad(0+360*i)),.3)
  1668. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  1669. Handleweld.C0=clerp(Handleweld.C0,cf(5,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  1670. Handle2weld.C0=clerp(Handle2weld.C0,cf(-5,0,0)*angles(math.rad(0),math.rad(180),math.rad(180)),.2)
  1671. RW.C0=clerp(RW.C0,cf(1,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(90)),.3)
  1672. LW.C0=clerp(LW.C0,cf(-1,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(-90)),.3)
  1673. end
  1674. so("http://www.roblox.com/asset/?id=231917758",LeftArm,1,1.2)
  1675. so("http://www.roblox.com/asset/?id=231917758",RightArm,1,1)
  1676. for i=0,1,0.05 do
  1677. swait()
  1678. Torso.Velocity=RootPart.CFrame.lookVector*100
  1679. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,10)*angles(math.rad(0),math.rad(90),math.rad(0+360*i)),.3)
  1680. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  1681. Handleweld.C0=clerp(Handleweld.C0,cf(5,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  1682. Handle2weld.C0=clerp(Handle2weld.C0,cf(-5,0,0)*angles(math.rad(0),math.rad(180),math.rad(180)),.2)
  1683. RW.C0=clerp(RW.C0,cf(1,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(90)),.3)
  1684. LW.C0=clerp(LW.C0,cf(-1,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(-90)),.3)
  1685. end
  1686. --dmgstop()
  1687. Humanoid.WalkSpeed=12
  1688. attack=false
  1689. if anim then
  1690. anim.Disabled=false
  1691. end
  1692. if TrailDeb == true then
  1693. TrailDeb = false
  1694. end
  1695. end
  1696.  
  1697. function Shred()
  1698. attack=true
  1699. mana=mana-100
  1700. if TrailDeb == false then
  1701. TrailDeb = true
  1702. end
  1703.  
  1704.  
  1705. coroutine.wrap(function()
  1706. local Old = Handle2.CFrame.p
  1707. while wait()do
  1708. if not TrailDeb then break end
  1709. local New = Handle2.CFrame.p
  1710. local Mag =(Old -New).magnitude
  1711. local Dis =(Old +New)/2
  1712. local Trail = Instance.new("Part",Character)
  1713. Trail.Material = "Neon"
  1714. Trail.Anchored = true
  1715. Trail.CanCollide = false
  1716. Trail.BrickColor = TorsoColor
  1717. Trail.Size = Vector3.new(0.2,Mag,0.2)
  1718. Trail.TopSurface = 0
  1719. Trail.BottomSurface = 0
  1720. Trail.formFactor = "Custom"
  1721. Trail.CFrame = CFrame.new(Dis,New)* CFrame.Angles(math.pi/2,0,0)
  1722. local ms = Instance.new("BlockMesh",Trail)
  1723. ms.Scale = Vector3.new(1,1,1)
  1724. local TM = Instance.new("CylinderMesh",Trail)
  1725. TM.Scale = Vector3.new(1,1,1)
  1726. Old = New
  1727. coroutine.wrap(function()
  1728. for i = 1,0,-0.1 do
  1729. wait()
  1730. TM.Scale = TM.Scale * Vector3.new(i,1,i)
  1731. end
  1732. Trail:remove()
  1733. end)()
  1734. coroutine.wrap(function()
  1735. for i = 1,10 do
  1736. wait()
  1737. Trail.Transparency = Trail.Transparency +0.1
  1738. end end)()end end)()
  1739. coroutine.wrap(function()
  1740. local Old = Handle.CFrame.p
  1741. while wait()do
  1742. if not TrailDeb then break end
  1743. local New = Handle.CFrame.p
  1744. local Mag =(Old -New).magnitude
  1745. local Dis =(Old +New)/2
  1746. local Trail = Instance.new("Part",Character)
  1747. Trail.Material = "Neon"
  1748. Trail.Anchored = true
  1749. Trail.CanCollide = false
  1750. Trail.BrickColor = TorsoColor
  1751. Trail.Size = Vector3.new(0.2,Mag,0.2)
  1752. Trail.TopSurface = 0
  1753. Trail.BottomSurface = 0
  1754. Trail.formFactor = "Custom"
  1755. Trail.CFrame = CFrame.new(Dis,New)* CFrame.Angles(math.pi/2,0,0)
  1756. local ms = Instance.new("BlockMesh",Trail)
  1757. ms.Scale = Vector3.new(1,1,1)
  1758. local TM = Instance.new("CylinderMesh",Trail)
  1759. TM.Scale = Vector3.new(1,1,1)
  1760. Old = New
  1761. coroutine.wrap(function()
  1762. for i = 1,0,-0.1 do
  1763. wait()
  1764. TM.Scale = TM.Scale * Vector3.new(i,1,i)
  1765. end
  1766. Trail:remove()
  1767. end)()
  1768. coroutine.wrap(function()
  1769. for i = 1,10 do
  1770. wait()
  1771. Trail.Transparency = Trail.Transparency +0.1
  1772. end end)()end end)()
  1773. Footsteps:Stop()
  1774. Footsteps2:Stop()
  1775. so("http://www.roblox.com/asset/?id=159882578",Torso,1,1)
  1776. for i=0,1,0.1 do
  1777. swait()
  1778. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,3)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  1779. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  1780. Handleweld.C0=clerp(Handleweld.C0,cf(5,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  1781. Handle2weld.C0=clerp(Handle2weld.C0,cf(-5,0,0)*angles(math.rad(0),math.rad(180),math.rad(180)),.2)
  1782. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(90)),.3)
  1783. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(-90)),.3)
  1784. end
  1785. if anim then
  1786. anim.Disabled=true
  1787. end
  1788. for i=0,1,0.05 do
  1789. swait()
  1790. Torso.Velocity=RootPart.CFrame.lookVector*20
  1791. so("http://www.roblox.com/asset/?id=231917758",LeftArm,0.2,1.2)
  1792. so("http://www.roblox.com/asset/?id=231917758",RightArm,0.2,1)
  1793. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,3)*angles(math.rad(0),math.rad(0),math.rad(0+40*i)),.5)
  1794. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  1795. Handleweld.C0=clerp(Handleweld.C0,cf(5,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  1796. Handle2weld.C0=clerp(Handle2weld.C0,cf(-5,0,0)*angles(math.rad(0),math.rad(180),math.rad(180)),.2)
  1797. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(90)),.3)
  1798. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(-90)),.3)
  1799. end
  1800. for i=0,1,0.05 do
  1801. swait()
  1802. Torso.Velocity=RootPart.CFrame.lookVector*40
  1803. so("http://www.roblox.com/asset/?id=231917758",LeftArm,0.2,1.2)
  1804. so("http://www.roblox.com/asset/?id=231917758",RightArm,0.2,1)
  1805. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,3)*angles(math.rad(0),math.rad(0),math.rad(41+80*i)),.5)
  1806. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  1807. Handleweld.C0=clerp(Handleweld.C0,cf(5,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  1808. Handle2weld.C0=clerp(Handle2weld.C0,cf(-5,0,0)*angles(math.rad(0),math.rad(180),math.rad(180)),.2)
  1809. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(90)),.3)
  1810. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(-90)),.3)
  1811. end
  1812. for i=0,1,0.05 do
  1813. swait()
  1814. Torso.Velocity=RootPart.CFrame.lookVector*60
  1815. so("http://www.roblox.com/asset/?id=231917758",LeftArm,0.2,1.2)
  1816. so("http://www.roblox.com/asset/?id=231917758",RightArm,0.2,1)
  1817. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,3)*angles(math.rad(0),math.rad(0),math.rad(82+120*i)),.5)
  1818. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  1819. Handleweld.C0=clerp(Handleweld.C0,cf(5,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  1820. Handle2weld.C0=clerp(Handle2weld.C0,cf(-5,0,0)*angles(math.rad(0),math.rad(180),math.rad(180)),.2)
  1821. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(90)),.3)
  1822. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(-90)),.3)
  1823. end
  1824. so("http://www.roblox.com/asset/?id=159882625",Torso,1,1)
  1825. so("http://www.roblox.com/asset/?id=231917758",Torso,1,0.1)
  1826. so("http://www.roblox.com/asset/?id=231917758",Torso,1,0.1)
  1827. so("http://www.roblox.com/asset/?id=231917758",Torso,1,0.1)
  1828. so("http://www.roblox.com/asset/?id=231917758",Torso,1,0.1)
  1829. for i=0,1,0.05 do
  1830. swait()
  1831. Torso.Velocity=RootPart.CFrame.lookVector*80
  1832. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,3)*angles(math.rad(0),math.rad(0),math.rad(124+160*i)),.5)
  1833. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  1834. Handleweld.C0=clerp(Handleweld.C0,cf(5,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  1835. Handle2weld.C0=clerp(Handle2weld.C0,cf(-5,0,0)*angles(math.rad(0),math.rad(180),math.rad(180)),.2)
  1836. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(90)),.3)
  1837. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(-90)),.3)
  1838. end
  1839. for i=0,1,0.005 do
  1840. swait()
  1841. Torso.Velocity=RootPart.CFrame.lookVector*100
  1842. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,3)*angles(math.rad(0),math.rad(0),math.rad(168+4200*i)),.5)
  1843. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  1844. Handleweld.C0=clerp(Handleweld.C0,cf(5,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  1845. Handle2weld.C0=clerp(Handle2weld.C0,cf(-5,0,0)*angles(math.rad(0),math.rad(180),math.rad(180)),.2)
  1846. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(90)),.3)
  1847. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(-90)),.3)
  1848. end
  1849. --dmgstop()
  1850. Humanoid.WalkSpeed=12
  1851. attack=false
  1852. if anim then
  1853. anim.Disabled=false
  1854. end
  1855. if TrailDeb == true then
  1856. TrailDeb = false
  1857. end
  1858. end
  1859.  
  1860. function attackone()
  1861. attack = true
  1862. local con = Hitbox.Touched:connect(function(hit) Damagefunc(Hitbox,hit,145689,math.random(145689,145689),"Normal",RootPart,.2,1) end)
  1863. for i = 0,1,0.1 do
  1864. swait()
  1865. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(5),math.rad(0),math.rad(70)),.3)
  1866. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(-60)),.3)
  1867. RW.C0 = clerp(RW.C0, CFrame.new(1.3, 0.5, -.5) * angles(math.rad(90), math.rad(0), math.rad(-50)), 0.3)
  1868. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-10), math.rad(0), math.rad(-15)), 0.3)
  1869. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(50),math.rad(0))*angles(math.rad(-2),math.rad(0),math.rad(0)),.3)
  1870. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-130),math.rad(10))*angles(math.rad(-3),math.rad(0),math.rad(0)),.3)
  1871. Finger1weld.C0=clerp(Finger1weld.C0,cf(0,0.09,0)*angles(math.rad(0),math.rad(0),math.rad(80)),.3)
  1872. Finger2weld.C0=clerp(Finger2weld.C0,cf(0,0.09,0)*angles(math.rad(0),math.rad(0),math.rad(-80)),.3)
  1873. Finger3weld.C0=clerp(Finger3weld.C0,cf(0,0.08,0)*angles(math.rad(0),math.rad(0),math.rad(-80)),.3)
  1874. Finger4weld.C0=clerp(Finger4weld.C0,cf(0,0.09,0)*angles(math.rad(0),math.rad(0),math.rad(-80)),.3)
  1875. Finger5weld.C0=clerp(Finger5weld.C0,cf(0,-0.1,0)*angles(math.rad(-80),math.rad(0),math.rad(0)),.3)
  1876. end
  1877. so("http://roblox.com/asset/?id=200632136",Hitbox,1,.9)
  1878. so("http://www.roblox.com/asset/?id=159972643",Torso,1,1)
  1879. for i = 0,1,0.1 do
  1880. swait()
  1881. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(5),math.rad(0),math.rad(-70)),.4)
  1882. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(60)),.4)
  1883. RW.C0 = clerp(RW.C0, CFrame.new(1.3, 0.5, 0.5) * angles(math.rad(90), math.rad(0), math.rad(120)), 0.4)
  1884. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-30), math.rad(0), math.rad(-20)), 0.3)
  1885. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(130),math.rad(0))*angles(math.rad(-2),math.rad(0),math.rad(0)),.4)
  1886. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-50),math.rad(-10))*angles(math.rad(-3),math.rad(0),math.rad(0)),.4)
  1887. Finger1weld.C0=clerp(Finger1weld.C0,cf(0,0.09,0)*angles(math.rad(30),math.rad(0),math.rad(20)),.3)
  1888. Finger2weld.C0=clerp(Finger2weld.C0,cf(0,0.09,0)*angles(math.rad(20),math.rad(0),math.rad(-20)),.3)
  1889. Finger3weld.C0=clerp(Finger3weld.C0,cf(0,0.08,0)*angles(math.rad(10),math.rad(0),math.rad(-20)),.3)
  1890. Finger4weld.C0=clerp(Finger4weld.C0,cf(0,0.09,0)*angles(math.rad(-10),math.rad(0),math.rad(-20)),.3)
  1891. Finger5weld.C0=clerp(Finger5weld.C0,cf(0,-0.1,0)*angles(math.rad(-20),math.rad(0),math.rad(-20)),.3)
  1892. end
  1893. attack = false
  1894. con:disconnect()
  1895. end
  1896.  
  1897. function attacktwo()
  1898. attack = true
  1899. local con = Hitbox.Touched:connect(function(hit) Damagefunc(Hitbox,hit,145689,math.random(145689,145689),"Normal",RootPart,.2,1) end)
  1900. for i = 0,1,0.1 do
  1901. swait()
  1902. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(5),math.rad(0),math.rad(-70)),.3)
  1903. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(60)),.3)
  1904. RW.C0 = clerp(RW.C0, CFrame.new(1.3, 0.5, -.5) * angles(math.rad(0), math.rad(150), math.rad(90)), 0.3)
  1905. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(-20), math.rad(-90)), 0.3)
  1906. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(130),math.rad(-10))*angles(math.rad(-2),math.rad(0),math.rad(0)),.3)
  1907. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-50),math.rad(-10))*angles(math.rad(-3),math.rad(0),math.rad(0)),.3)
  1908. Finger1weld.C0=clerp(Finger1weld.C0,cf(0,0.09,0)*angles(math.rad(30),math.rad(0),math.rad(-50)),.3)
  1909. Finger2weld.C0=clerp(Finger2weld.C0,cf(0,0.09,0)*angles(math.rad(20),math.rad(0),math.rad(50)),.3)
  1910. Finger3weld.C0=clerp(Finger3weld.C0,cf(0,0.08,0)*angles(math.rad(10),math.rad(0),math.rad(50)),.3)
  1911. Finger4weld.C0=clerp(Finger4weld.C0,cf(0,0.09,0)*angles(math.rad(-10),math.rad(0),math.rad(50)),.3)
  1912. Finger5weld.C0=clerp(Finger5weld.C0,cf(0,-0.1,0)*angles(math.rad(50),math.rad(0),math.rad(-20)),.3)
  1913. end
  1914. so("http://roblox.com/asset/?id=200632211",Hitbox,1,.9)
  1915. so("http://www.roblox.com/asset/?id=159882477",Torso,1,1)
  1916. for i = 0,1,0.1 do
  1917. swait()
  1918. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(5),math.rad(0),math.rad(70)),.4)
  1919. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(-60)),.5)
  1920. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(20), math.rad(90)), 0.4)
  1921. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-30), math.rad(0), math.rad(-50)), 0.3)
  1922. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(50),math.rad(10))*angles(math.rad(-2),math.rad(0),math.rad(0)),.4)
  1923. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-130),math.rad(10))*angles(math.rad(-3),math.rad(0),math.rad(0)),.4)
  1924. Finger1weld.C0=clerp(Finger1weld.C0,cf(0,0.09,0)*angles(math.rad(30),math.rad(0),math.rad(-50)),.3)
  1925. Finger2weld.C0=clerp(Finger2weld.C0,cf(0,0.09,0)*angles(math.rad(20),math.rad(0),math.rad(50)),.3)
  1926. Finger3weld.C0=clerp(Finger3weld.C0,cf(0,0.08,0)*angles(math.rad(10),math.rad(0),math.rad(50)),.3)
  1927. Finger4weld.C0=clerp(Finger4weld.C0,cf(0,0.09,0)*angles(math.rad(-10),math.rad(0),math.rad(50)),.3)
  1928. Finger5weld.C0=clerp(Finger5weld.C0,cf(0,-0.1,0)*angles(math.rad(50),math.rad(0),math.rad(-20)),.3)
  1929. end
  1930. attack = false
  1931. con:disconnect()
  1932. end
  1933.  
  1934. function attackthree()
  1935. attack = true
  1936. local con = Hitbox.Touched:connect(function(hit) Damagefunc(Hitbox,hit,145689,math.random(145689,145689),"Normal",RootPart,.2,1) end)
  1937. for i = 0,1,0.1 do
  1938. swait()
  1939. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(5),math.rad(0),math.rad(-70)),.3)
  1940. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(60)),.3)
  1941. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-30)), 0.3)
  1942. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(-20), math.rad(-90)), 0.3)
  1943. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(130),math.rad(-10))*angles(math.rad(-2),math.rad(0),math.rad(0)),.3)
  1944. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-50),math.rad(-10))*angles(math.rad(-3),math.rad(0),math.rad(0)),.3)
  1945. Finger1weld.C0=clerp(Finger1weld.C0,cf(0,0.09,0)*angles(math.rad(0),math.rad(0),math.rad(80)),.3)
  1946. Finger2weld.C0=clerp(Finger2weld.C0,cf(0,0.09,0)*angles(math.rad(0),math.rad(0),math.rad(-80)),.3)
  1947. Finger3weld.C0=clerp(Finger3weld.C0,cf(0,0.08,0)*angles(math.rad(0),math.rad(0),math.rad(-80)),.3)
  1948. Finger4weld.C0=clerp(Finger4weld.C0,cf(0,0.09,0)*angles(math.rad(0),math.rad(0),math.rad(-80)),.3)
  1949. Finger5weld.C0=clerp(Finger5weld.C0,cf(0,-0.1,0)*angles(math.rad(-80),math.rad(0),math.rad(0)),.3)
  1950. end
  1951. so("http://roblox.com/asset/?id=200632136",Hitbox,1,.8)
  1952. so("http://www.roblox.com/asset/?id=159882584",Torso,1,1)
  1953. for i = 0,1,0.1 do
  1954. swait()
  1955. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(5),math.rad(0),math.rad(90)),.4)
  1956. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(-80)),.4)
  1957. RW.C0 = clerp(RW.C0, CFrame.new(1.3, 0.5, -.5) * angles(math.rad(90), math.rad(0), math.rad(-40*i)), 0.4)
  1958. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-30), math.rad(0), math.rad(-50)), 0.3)
  1959. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(50),math.rad(10))*angles(math.rad(-5),math.rad(0),math.rad(0)),.4)
  1960. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-130),math.rad(10))*angles(math.rad(-5),math.rad(0),math.rad(0)),.4)
  1961. Finger1weld.C0=clerp(Finger1weld.C0,cf(0,0.09,0)*angles(math.rad(0),math.rad(0),math.rad(80)),.3)
  1962. Finger2weld.C0=clerp(Finger2weld.C0,cf(0,0.09,0)*angles(math.rad(0),math.rad(0),math.rad(-80)),.3)
  1963. Finger3weld.C0=clerp(Finger3weld.C0,cf(0,0.08,0)*angles(math.rad(0),math.rad(0),math.rad(-80)),.3)
  1964. Finger4weld.C0=clerp(Finger4weld.C0,cf(0,0.09,0)*angles(math.rad(0),math.rad(0),math.rad(-80)),.3)
  1965. Finger5weld.C0=clerp(Finger5weld.C0,cf(0,-0.1,0)*angles(math.rad(-80),math.rad(0),math.rad(0)),.3)
  1966. end
  1967. attack = false
  1968. con:disconnect()
  1969. end
  1970.  
  1971. function weld5(part0, part1, c0, c1)
  1972. local weeld=Instance.new("Weld", part0)
  1973. weeld.Part0=part0
  1974. weeld.Part1=part1
  1975.  
  1976. weeld.C0=c0
  1977. weeld.C1=c1
  1978. return weeld
  1979. end
  1980.  
  1981. function MagicCircle(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  1982. local prt=part(3,workspace,"Neon",0.5,0,brickcolor,"Effect",vt())
  1983. prt.Anchored=true
  1984. prt.CFrame=cframe
  1985. local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  1986. game:GetService("Debris"):AddItem(prt,2)
  1987. coroutine.resume(coroutine.create(function(Part,Mesh)
  1988. local wld=nil
  1989. for i=0,1,delay do
  1990. wait()
  1991. Part.CFrame=Part.CFrame
  1992. Part.Transparency=i
  1993. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1994. end
  1995. Part.Parent=nil
  1996. end),prt,msh)
  1997. end
  1998.  
  1999. function MagicRing(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  2000. local prt=part(3,workspace,"Neon",0.5,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2001. prt.Anchored=true
  2002. prt.CFrame=cframe
  2003. local msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=3270017",vt(0,0,0),vt(x1,y1,z1))
  2004. game:GetService("Debris"):AddItem(prt,5)
  2005. coroutine.resume(coroutine.create(function(Part,Mesh)
  2006. for i=0,1,delay do
  2007. wait()
  2008. Part.CFrame=Part.CFrame
  2009. Part.Transparency=i
  2010. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2011. end
  2012. Part.Parent=nil
  2013. end),prt,msh)
  2014. end
  2015.  
  2016. local Grab = false
  2017.  
  2018. function MagniDamage(Hit,Part,magni,mindam,maxdam,knock,Type)
  2019. for _,c in pairs(workspace:children()) do
  2020. local hum=c:findFirstChild("Humanoid")
  2021. if hum~=nil then
  2022. local head=c:findFirstChild("Torso")
  2023. if head~=nil then
  2024. local targ=head.Position-Part.Position
  2025. local mag=targ.magnitude
  2026. if mag<=magni and c.Name~=Player.Name then
  2027. Damagefunc(Hit,head,mindam,maxdam,knock,Type,RootPart,.2,1,3)
  2028. end
  2029. end
  2030. end
  2031. end
  2032. end
  2033.  
  2034. function MagniDamage2(Hit,Part,magni,mindam,maxdam,knock,Type)
  2035. for _,c in pairs(workspace:children()) do
  2036. local hum=c:findFirstChild("Humanoid")
  2037. if hum~=nil then
  2038. local head=c:findFirstChild("Torso")
  2039. if head~=nil then
  2040. local targ=head.Position-Part.Position
  2041. local mag=targ.magnitude
  2042. if mag<=magni and c.Name~=Player.Name then
  2043. Damagefunc(Hit,head,mindam,maxdam,knock,Type,RootPart,.2,1,3)
  2044. for i,v in pairs (hum.Parent:GetChildren()) do
  2045. if v:IsA("Humanoid") then
  2046. v:remove()
  2047. end
  2048. if v:IsA("Part") then
  2049. v.BrickColor = BrickColor.new("Really black")
  2050. v.Reflectance = 0.5
  2051. v.Material = "SmoothPlastic"
  2052. v.CanCollide = true
  2053. end
  2054. end
  2055. end
  2056. end
  2057. end
  2058. end
  2059. end
  2060.  
  2061.  
  2062. function GrabNSlam()
  2063. attack = true
  2064. so("http://roblox.com/asset/?id=200632211",Hitbox,1,.9)
  2065. if Grab == false then
  2066. gp = nil
  2067. con1=Hitbox.Touched:connect(function(hit) -- credits to TheDarkRevenant for the grabbing
  2068. local ht = hit.Parent
  2069. local hum1=ht:FindFirstChild('Humanoid')
  2070. if hum1 ~= nil then
  2071. hum1.PlatformStand=true
  2072. gp = ht
  2073. Grab = true
  2074. local asd=weld5(RightArm,ht:FindFirstChild("Torso"),CFrame.new(0,-1.7,0),CFrame.new(0,0,0))
  2075. asd.Parent = RightArm
  2076. asd.Name = "asd"
  2077. asd.C0=asd.C0*CFrame.Angles(math.rad(-90),0,0)
  2078. so("http://roblox.com/asset/?id=200632821",Torso,1,.9)
  2079. for i,v in pairs (gp:GetChildren()) do
  2080. if v:IsA("Part") then
  2081. v.BrickColor = BrickColor.new("Really black")
  2082. v.Reflectance = 0.5
  2083. v.Material = "SmoothPlastic"
  2084. end
  2085. end
  2086. elseif hum1 == nil then
  2087. con1:disconnect()
  2088. wait() return
  2089. end
  2090. end)
  2091. end
  2092. for i = 0,1,0.1 do
  2093. swait()
  2094. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(5),math.rad(0),math.rad(50)),.4)
  2095. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(-40)),.5)
  2096. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(50), math.rad(90)), 0.4)
  2097. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-30), math.rad(0), math.rad(-50)), 0.3)
  2098. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(50),math.rad(10))*angles(math.rad(-2),math.rad(0),math.rad(0)),.4)
  2099. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-130),math.rad(10))*angles(math.rad(-3),math.rad(0),math.rad(0)),.4)
  2100. Finger1weld.C0=clerp(Finger1weld.C0,cf(0,0.09,0)*angles(math.rad(30),math.rad(0),math.rad(-50)),.3)
  2101. Finger2weld.C0=clerp(Finger2weld.C0,cf(0,0.09,0)*angles(math.rad(20),math.rad(0),math.rad(50)),.3)
  2102. Finger3weld.C0=clerp(Finger3weld.C0,cf(0,0.08,0)*angles(math.rad(10),math.rad(0),math.rad(50)),.3)
  2103. Finger4weld.C0=clerp(Finger4weld.C0,cf(0,0.09,0)*angles(math.rad(-10),math.rad(0),math.rad(50)),.3)
  2104. Finger5weld.C0=clerp(Finger5weld.C0,cf(0,-0.1,0)*angles(math.rad(50),math.rad(0),math.rad(-20)),.3)
  2105. end
  2106. if Grab == true then
  2107. for i = 0,1,0.1 do
  2108. swait()
  2109. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(5),math.rad(0),math.rad(-50)),.4)
  2110. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(40)),.5)
  2111. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(50), math.rad(90)), 0.4)
  2112. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-30), math.rad(0), math.rad(-50)), 0.3)
  2113. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(130),math.rad(10))*angles(math.rad(-2),math.rad(0),math.rad(0)),.4)
  2114. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-50),math.rad(10))*angles(math.rad(-3),math.rad(0),math.rad(0)),.4)
  2115. Finger1weld.C0=clerp(Finger1weld.C0,cf(0,0.09,0)*angles(math.rad(30),math.rad(0),math.rad(-50)),.3)
  2116. Finger2weld.C0=clerp(Finger2weld.C0,cf(0,0.09,0)*angles(math.rad(20),math.rad(0),math.rad(50)),.3)
  2117. Finger3weld.C0=clerp(Finger3weld.C0,cf(0,0.08,0)*angles(math.rad(10),math.rad(0),math.rad(50)),.3)
  2118. Finger4weld.C0=clerp(Finger4weld.C0,cf(0,0.09,0)*angles(math.rad(-10),math.rad(0),math.rad(50)),.3)
  2119. Finger5weld.C0=clerp(Finger5weld.C0,cf(0,-0.1,0)*angles(math.rad(50),math.rad(0),math.rad(-20)),.3)
  2120. end
  2121. so("http://roblox.com/asset/?id=200632875",Torso,1,.9)
  2122. so("http://www.roblox.com/asset/?id=231917758",RightArm,1,1)
  2123. MagicCircle(BrickColor.new("Really black"),Hitbox.CFrame,5,5,5,6,6,6,0.05)
  2124. MagicRing(BrickColor.new("Really black"),Hitbox.CFrame,5,5,5,6,6,6,0.05)
  2125. MagniDamage(Hitbox,Hitbox,10,30,50,0,"Normal")
  2126. for i = 0,1,0.1 do
  2127. swait()
  2128. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(50),math.rad(0),math.rad(70)),.4)
  2129. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(-60)),.5)
  2130. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(20), math.rad(90)), 0.4)
  2131. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-50), math.rad(0), math.rad(-70)), 0.3)
  2132. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(50),math.rad(10))*angles(math.rad(-5),math.rad(0),math.rad(0)),.4)
  2133. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-130),math.rad(10))*angles(math.rad(-10),math.rad(0),math.rad(0)),.4)
  2134. Finger1weld.C0=clerp(Finger1weld.C0,cf(0,0.09,0)*angles(math.rad(30),math.rad(0),math.rad(-50)),.3)
  2135. Finger2weld.C0=clerp(Finger2weld.C0,cf(0,0.09,0)*angles(math.rad(20),math.rad(0),math.rad(50)),.3)
  2136. Finger3weld.C0=clerp(Finger3weld.C0,cf(0,0.08,0)*angles(math.rad(10),math.rad(0),math.rad(50)),.3)
  2137. Finger4weld.C0=clerp(Finger4weld.C0,cf(0,0.09,0)*angles(math.rad(-10),math.rad(0),math.rad(50)),.3)
  2138. Finger5weld.C0=clerp(Finger5weld.C0,cf(0,-0.1,0)*angles(math.rad(50),math.rad(0),math.rad(-20)),.3)
  2139. end
  2140. end
  2141. con1:disconnect()
  2142. for i,v in pairs(RightArm:GetChildren()) do
  2143. if v.Name == "asd" and v:IsA("Weld") then
  2144. v:Remove()
  2145.  
  2146. end
  2147. end
  2148. Grab = false
  2149. attack = false
  2150. end
  2151.  
  2152. function BlastEffect(brickcolor,cframe,x1,y1,z1,x2,y2,z2)
  2153. local prt=part(3,workspace,"Neon",0.5,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2154. prt.Anchored=true
  2155. prt.CFrame = cframe
  2156. local msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=20329976",vt(0,0,0),vt(x1,y1,z1))
  2157. coroutine.resume(coroutine.create(function()
  2158. for i=0,1,0.05 do
  2159. wait()
  2160. prt.Transparency=i
  2161. msh.Scale=msh.Scale+vt(x2,y2,z2)
  2162. end
  2163. prt.Parent=nil
  2164. end))
  2165. end
  2166.  
  2167. function HammerFist()
  2168. attack = true
  2169. Humanoid.WalkSpeed = 0
  2170. for i = 0,1,0.1 do
  2171. swait()
  2172. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  2173. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(-30)),.3)
  2174. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(150), math.rad(0), math.rad(0)), 0.3)
  2175. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-30), math.rad(0), math.rad(-50)), 0.3)
  2176. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(80),math.rad(-5))*angles(math.rad(-2),math.rad(0),math.rad(0)),.3)
  2177. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-80),math.rad(-5))*angles(math.rad(-3),math.rad(0),math.rad(0)),.3)
  2178. Finger1weld.C0=clerp(Finger1weld.C0,cf(0,0.08,0)*angles(math.rad(0),math.rad(0),math.rad(80)),.3)
  2179. Finger2weld.C0=clerp(Finger2weld.C0,cf(0,0.07,0)*angles(math.rad(0),math.rad(0),math.rad(-80)),.3)
  2180. Finger3weld.C0=clerp(Finger3weld.C0,cf(0,0.08,0)*angles(math.rad(0),math.rad(0),math.rad(-80)),.3)
  2181. Finger4weld.C0=clerp(Finger4weld.C0,cf(0,0.09,0)*angles(math.rad(0),math.rad(0),math.rad(-80)),.3)
  2182. Finger5weld.C0=clerp(Finger5weld.C0,cf(0,-0.1,0)*angles(math.rad(-80),math.rad(0),math.rad(0)),.3)
  2183. end
  2184. so("http://roblox.com/asset/?id=200632875",Torso,1,.9)
  2185. so("http://roblox.com/asset/?id=263610131",Torso,1,1)
  2186. so("http://roblox.com/asset/?id=263610111",Torso,1,1)
  2187. so("http://www.roblox.com/asset/?id=159882598",Torso,1,1)
  2188. MagniDamage(Hitbox,Hitbox,20,20,30,0,"Knockdown")
  2189. local hit,pos=rayCast(Hitbox.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,100,Character)
  2190. if hit~=nil then
  2191. local ref=part(3,workspace,"Neon",0,1,BrickColor.new("Bright blue"),"Effect",vt())
  2192. ref.Anchored=true
  2193. ref.CFrame=cf(pos)
  2194. game:GetService("Debris"):AddItem(ref,3)
  2195. for i=1,10 do
  2196. local Col=BrickColor.new("Really black")
  2197. local groundpart=part(3,workspace,"SmoothPlastic",0.5,0,Col,"Ground",vt(math.random(50,200)/100,math.random(50,200)/100,math.random(50,200)/100))
  2198. groundpart.Anchored=true
  2199. groundpart.CanCollide=false
  2200. groundpart.CFrame=cf(pos)*cf(math.random(-500,500)/100,0,math.random(-500,500)/100)*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2201. game:GetService("Debris"):AddItem(groundpart,5)
  2202. end
  2203. BlastEffect(BrickColor.new("Bright orange"),cf(pos),1,1,1,.7,.7,.7)
  2204. MagicCircle(BrickColor.new("Really black"),cf(pos),3,3,3,5,5,5,0.05)
  2205. MagniDamage(ref,ref,10,10,20,math.random(10,20),"Knockdown")
  2206. end
  2207. for i = 0,1,0.1 do
  2208. swait()
  2209. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,-1.5)* angles(math.rad(40),math.rad(0),math.rad(0)),.5)
  2210. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(30),math.rad(0),math.rad(0)),.3)
  2211. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(40), math.rad(0), math.rad(0)), 0.5)
  2212. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-50), math.rad(0), math.rad(-30)), 0.3)
  2213. RH.C0=clerp(RH.C0,cf(1,.5,-.2)*angles(math.rad(0),math.rad(90),math.rad(30))*angles(math.rad(2),math.rad(0),math.rad(0)),.3)
  2214. LH.C0=clerp(LH.C0,cf(-1,-.5,-.5)*angles(math.rad(0),math.rad(-80),math.rad(40))*angles(math.rad(-3),math.rad(0),math.rad(0)),.3)
  2215. Finger1weld.C0=clerp(Finger1weld.C0,cf(0,0.08,0)*angles(math.rad(0),math.rad(0),math.rad(80)),.3)
  2216. Finger2weld.C0=clerp(Finger2weld.C0,cf(0,0.07,0)*angles(math.rad(0),math.rad(0),math.rad(-80)),.3)
  2217. Finger3weld.C0=clerp(Finger3weld.C0,cf(0,0.08,0)*angles(math.rad(0),math.rad(0),math.rad(-80)),.3)
  2218. Finger4weld.C0=clerp(Finger4weld.C0,cf(0,0.09,0)*angles(math.rad(0),math.rad(0),math.rad(-80)),.3)
  2219. Finger5weld.C0=clerp(Finger5weld.C0,cf(0,-0.1,0)*angles(math.rad(-80),math.rad(0),math.rad(0)),.3)
  2220. end
  2221. attack = false
  2222. Humanoid.WalkSpeed = 16
  2223. end
  2224.  
  2225. function TurnIntoGold()
  2226. attack = true
  2227. so("http://roblox.com/asset/?id=200632211",Hitbox,1,.9)
  2228. if Grab == false then
  2229. gp = nil
  2230. con1=Hitbox.Touched:connect(function(hit) -- credits to TheDarkRevenant for the grabbing
  2231. local ht = hit.Parent
  2232. local hum1=ht:FindFirstChild('Humanoid')
  2233. if hum1 ~= nil then
  2234. hum1.PlatformStand=true
  2235. gp = ht
  2236. Grab = true
  2237. local asd=weld5(RightArm,ht:FindFirstChild("Torso"),CFrame.new(0,-1.7,0),CFrame.new(0,0,0))
  2238. asd.Parent = RightArm
  2239. asd.Name = "asd"
  2240. asd.C0=asd.C0*CFrame.Angles(math.rad(-90),0,0)
  2241. so("http://roblox.com/asset/?id=200632821",Torso,1,.9)
  2242. --[[for i,v in pairs (gp:GetChildren()) do
  2243. if v:IsA("Part") then
  2244. v.BrickColor = BrickColor.new("Really black")
  2245. v.Reflectance = 0.5
  2246. v.Material = "SmoothPlastic"
  2247. end
  2248. end]]--
  2249. elseif hum1 == nil then
  2250. con1:disconnect()
  2251. wait() return
  2252. end
  2253. end)
  2254. end
  2255. for i = 0,1,0.1 do
  2256. swait()
  2257. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(50)),.4)
  2258. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(-40)),.5)
  2259. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(50)), 0.4)
  2260. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-30), math.rad(0), math.rad(-50)), 0.3)
  2261. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(50),math.rad(10))*angles(math.rad(-2),math.rad(0),math.rad(0)),.4)
  2262. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-130),math.rad(10))*angles(math.rad(-3),math.rad(0),math.rad(0)),.4)
  2263. Finger1weld.C0=clerp(Finger1weld.C0,cf(0,0.09,0)*angles(math.rad(30),math.rad(0),math.rad(-50)),.3)
  2264. Finger2weld.C0=clerp(Finger2weld.C0,cf(0,0.09,0)*angles(math.rad(20),math.rad(0),math.rad(50)),.3)
  2265. Finger3weld.C0=clerp(Finger3weld.C0,cf(0,0.08,0)*angles(math.rad(10),math.rad(0),math.rad(50)),.3)
  2266. Finger4weld.C0=clerp(Finger4weld.C0,cf(0,0.09,0)*angles(math.rad(-10),math.rad(0),math.rad(50)),.3)
  2267. Finger5weld.C0=clerp(Finger5weld.C0,cf(0,-0.1,0)*angles(math.rad(50),math.rad(0),math.rad(-20)),.3)
  2268. end
  2269. if Grab == true then
  2270. for i = 0,1,0.1 do
  2271. swait()
  2272. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(0)),.4)
  2273. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-20),math.rad(0),math.rad(0)),.5)
  2274. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(130), math.rad(0), math.rad(0)), 0.4)
  2275. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-30), math.rad(0), math.rad(-30)), 0.3)
  2276. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(10))*angles(math.rad(-2),math.rad(0),math.rad(0)),.4)
  2277. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(10))*angles(math.rad(-3),math.rad(0),math.rad(0)),.4)
  2278. Finger1weld.C0=clerp(Finger1weld.C0,cf(0,0.09,0)*angles(math.rad(30),math.rad(0),math.rad(-50)),.3)
  2279. Finger2weld.C0=clerp(Finger2weld.C0,cf(0,0.09,0)*angles(math.rad(20),math.rad(0),math.rad(50)),.3)
  2280. Finger3weld.C0=clerp(Finger3weld.C0,cf(0,0.08,0)*angles(math.rad(10),math.rad(0),math.rad(50)),.3)
  2281. Finger4weld.C0=clerp(Finger4weld.C0,cf(0,0.09,0)*angles(math.rad(-10),math.rad(0),math.rad(50)),.3)
  2282. Finger5weld.C0=clerp(Finger5weld.C0,cf(0,-0.1,0)*angles(math.rad(50),math.rad(0),math.rad(-20)),.3)
  2283. end
  2284. so("http://roblox.com/asset/?id=248572927",Torso,1,1)
  2285. so("http://www.roblox.com/asset/?id=159882481",Torso,1,1)
  2286. MagniDamage2(Hitbox,Hitbox,5,30,50,0,"Normal")
  2287. MagicCircle(BrickColor.new("Really black"),RightArm.CFrame,3,3,3,5,5,5,0.05)
  2288. BlastEffect(BrickColor.new("Really black"),Torso.CFrame,1,1,1,.7,.7,.7)
  2289. for i = 0,1,0.1 do
  2290. swait()
  2291. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(0)),.4)
  2292. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-20),math.rad(0),math.rad(0)),.5)
  2293. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(130), math.rad(0), math.rad(0)), 0.4)
  2294. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-30), math.rad(0), math.rad(-30)), 0.3)
  2295. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(10))*angles(math.rad(-2),math.rad(0),math.rad(0)),.4)
  2296. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(10))*angles(math.rad(-3),math.rad(0),math.rad(0)),.4)
  2297. Finger1weld.C0=clerp(Finger1weld.C0,cf(0,0.09,0)*angles(math.rad(30),math.rad(0),math.rad(-50)),.3)
  2298. Finger2weld.C0=clerp(Finger2weld.C0,cf(0,0.09,0)*angles(math.rad(20),math.rad(0),math.rad(50)),.3)
  2299. Finger3weld.C0=clerp(Finger3weld.C0,cf(0,0.08,0)*angles(math.rad(10),math.rad(0),math.rad(50)),.3)
  2300. Finger4weld.C0=clerp(Finger4weld.C0,cf(0,0.09,0)*angles(math.rad(-10),math.rad(0),math.rad(50)),.3)
  2301. Finger5weld.C0=clerp(Finger5weld.C0,cf(0,-0.1,0)*angles(math.rad(50),math.rad(0),math.rad(-20)),.3)
  2302. end
  2303. end
  2304. con1:disconnect()
  2305. Grab = false
  2306. attack = false
  2307. for i,v in pairs(RightArm:GetChildren()) do
  2308. if v.Name == "asd" and v:IsA("Weld") then
  2309. v:Remove()
  2310.  
  2311. end
  2312. end
  2313. end
  2314.  
  2315. mouse.Button1Down:connect(function()
  2316. if attack == false and attacktype == 1 then
  2317. attacktype = 2
  2318. attackone()
  2319. elseif attack == false and attacktype == 2 then
  2320. attacktype = 3
  2321. attacktwo()
  2322. elseif attack == false and attacktype == 3 then
  2323. attacktype = 1
  2324. attackthree()
  2325. end
  2326. end)
  2327.  
  2328. mouse.KeyDown:connect(function(k)
  2329. k=k:lower()
  2330. if attack == false and k == 'q' then
  2331. GrabNSlam()
  2332. elseif attack == false and k == 'e' then
  2333. HammerFist()
  2334. elseif attack == false and k == 'y' then
  2335. Shred()
  2336. elseif attack == false and k == 't' then
  2337. Spin()
  2338. elseif attack == false and k == 'r' then
  2339. TurnIntoGold()
  2340. end
  2341. end)
  2342.  
  2343.  
  2344. local sine = 0
  2345. local change = 1
  2346. local val = 0
  2347. local donum = .5
  2348.  
  2349. while true do
  2350. swait()
  2351. sine = sine + change
  2352. local torvel=(RootPart.Velocity*Vector3.new(1,0,1)).magnitude
  2353. local velderp=RootPart.Velocity.y
  2354. hitfloor,posfloor=rayCast(RootPart.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,4,Character)
  2355. if equipped==true or equipped==false then
  2356. if attack==false then
  2357. idle=idle+1
  2358. else
  2359. idle=0
  2360. end
  2361. if idle>=500 then
  2362. if attack==false then
  2363. end
  2364. end
  2365. if RootPart.Velocity.y > 1 and hitfloor==nil then
  2366. Anim="Jump"
  2367. if attack==false then
  2368. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(-10),math.rad(0),math.rad(0)),.3)
  2369. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-20),math.rad(0),math.rad(0)),.3)
  2370. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(30)), 0.3)
  2371. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(-30)), 0.3)
  2372. 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)
  2373. 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)
  2374. Finger1weld.C0=clerp(Finger1weld.C0,cf(0,0.09,0)*angles(math.rad(30),math.rad(0),math.rad(-50)),.3)
  2375. Finger2weld.C0=clerp(Finger2weld.C0,cf(0,0.09,0)*angles(math.rad(20),math.rad(0),math.rad(50)),.3)
  2376. Finger3weld.C0=clerp(Finger3weld.C0,cf(0,0.08,0)*angles(math.rad(10),math.rad(0),math.rad(50)),.3)
  2377. Finger4weld.C0=clerp(Finger4weld.C0,cf(0,0.09,0)*angles(math.rad(-10),math.rad(0),math.rad(50)),.3)
  2378. Finger5weld.C0=clerp(Finger5weld.C0,cf(0,-0.1,0)*angles(math.rad(50),math.rad(0),math.rad(-20)),.3)
  2379. end
  2380. elseif RootPart.Velocity.y < -1 and hitfloor==nil then
  2381. Anim="Fall"
  2382. if attack==false then
  2383. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(10),math.rad(0),math.rad(0)),.3)
  2384. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(20),math.rad(0),math.rad(0)),.3)
  2385. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-40), math.rad(0), math.rad(60)), 0.3)
  2386. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-40), math.rad(0), math.rad(-60)), 0.3)
  2387. 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)
  2388. 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)
  2389. Finger1weld.C0=clerp(Finger1weld.C0,cf(0,0.09,0)*angles(math.rad(30),math.rad(0),math.rad(-50)),.3)
  2390. Finger2weld.C0=clerp(Finger2weld.C0,cf(0,0.09,0)*angles(math.rad(20),math.rad(0),math.rad(50)),.3)
  2391. Finger3weld.C0=clerp(Finger3weld.C0,cf(0,0.08,0)*angles(math.rad(10),math.rad(0),math.rad(50)),.3)
  2392. Finger4weld.C0=clerp(Finger4weld.C0,cf(0,0.09,0)*angles(math.rad(-10),math.rad(0),math.rad(50)),.3)
  2393. Finger5weld.C0=clerp(Finger5weld.C0,cf(0,-0.1,0)*angles(math.rad(50),math.rad(0),math.rad(-20)),.3)
  2394. end
  2395. elseif torvel<1 and hitfloor~=nil then
  2396. Anim="Idle"
  2397. if attack==false then
  2398. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(5),math.rad(0),math.rad(-30)),.3)
  2399. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(30)),.3)
  2400. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-10), math.rad(0), math.rad(5)), 0.3)
  2401. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(5), math.rad(0), math.rad(-10)), 0.3)
  2402. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2),math.rad(0),math.rad(0)),.3)
  2403. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-70),math.rad(-5))*angles(math.rad(-3),math.rad(0),math.rad(0)),.3)
  2404. Finger1weld.C0=clerp(Finger1weld.C0,cf(0,0.08,0)*angles(math.rad(0),math.rad(0),math.rad(20)),.3)
  2405. Finger2weld.C0=clerp(Finger2weld.C0,cf(0,0.07,0)*angles(math.rad(0),math.rad(0),math.rad(-20)),.3)
  2406. Finger3weld.C0=clerp(Finger3weld.C0,cf(0,0.08,0)*angles(math.rad(0),math.rad(0),math.rad(-30)),.3)
  2407. Finger4weld.C0=clerp(Finger4weld.C0,cf(0,0.09,0)*angles(math.rad(0),math.rad(0),math.rad(-40)),.3)
  2408. Finger5weld.C0=clerp(Finger5weld.C0,cf(0,-0.1,0)*angles(math.rad(-50),math.rad(0),math.rad(0)),.3)
  2409. end
  2410. elseif torvel>2 and hitfloor~=nil then
  2411. Anim="Walk"
  2412. if attack==false then
  2413. change=3
  2414. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(10),math.rad(0),math.rad(0)),.3)
  2415. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  2416. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-10)*math.cos(sine/13), math.rad(0), math.rad(10)), 0.3)
  2417. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10)*math.cos(sine/13), math.rad(0), math.rad(-10)), 0.3)
  2418. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(5)),.3)
  2419. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(-5)),.3)
  2420. Finger1weld.C0=clerp(Finger1weld.C0,cf(0,0.09,0)*angles(math.rad(0),math.rad(0),math.rad(80)),.3)
  2421. Finger2weld.C0=clerp(Finger2weld.C0,cf(0,0.09,0)*angles(math.rad(0),math.rad(0),math.rad(-80)),.3)
  2422. Finger3weld.C0=clerp(Finger3weld.C0,cf(0,0.08,0)*angles(math.rad(0),math.rad(0),math.rad(-80)),.3)
  2423. Finger4weld.C0=clerp(Finger4weld.C0,cf(0,0.09,0)*angles(math.rad(0),math.rad(0),math.rad(-80)),.3)
  2424. Finger5weld.C0=clerp(Finger5weld.C0,cf(0,-0.1,0)*angles(math.rad(-80),math.rad(0),math.rad(0)),.3)
  2425. end
  2426. end
  2427. end
  2428. if #Effects>0 then
  2429. for e=1,#Effects do
  2430. if Effects[e]~=nil then
  2431. local Thing=Effects[e]
  2432. if Thing~=nil then
  2433. local Part=Thing[1]
  2434. local Mode=Thing[2]
  2435. local Delay=Thing[3]
  2436. local IncX=Thing[4]
  2437. local IncY=Thing[5]
  2438. local IncZ=Thing[6]
  2439. if Thing[1].Transparency<=1 then
  2440. if Thing[2]=="Block1" then
  2441. Thing[1].CFrame=Thing[1].CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2442. Mesh=Thing[1].Mesh
  2443. Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
  2444. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  2445. elseif Thing[2]=="Cylinder" then
  2446. Mesh=Thing[1].Mesh
  2447. Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
  2448. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  2449. elseif Thing[2]=="Blood" then
  2450. Mesh=Thing[7]
  2451. Thing[1].CFrame=Thing[1].CFrame*cf(0,.5,0)
  2452. Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
  2453. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  2454. elseif Thing[2]=="Elec" then
  2455. Mesh=Thing[1].Mesh
  2456. Mesh.Scale=Mesh.Scale+vt(Thing[7],Thing[8],Thing[9])
  2457. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  2458. elseif Thing[2]=="Disappear" then
  2459. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  2460. end
  2461. else
  2462. Part.Parent=nil
  2463. table.remove(Effects,e)
  2464. end
  2465. end
  2466. end
  2467. end
  2468. end
  2469. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement