Advertisement
GojiGaming1337

Untitled

Jun 3rd, 2018
173
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 121.22 KB | None | 0 0
  1. --[[ Leaked by CLarramore ]]--
  2. -- Ever since 3/10/2016 this script started to get popular in oxcool1's SB
  3. -- I am now spreading this on
  4. -- You can now make ur edits with this
  5. -- ENTIRELY OPEN SOURCED!!!! YAY!
  6.  
  7. -- NightOwlAce dont kill me
  8. Player=game:GetService("Players").LocalPlayer
  9. Character=Player.Character
  10. PlayerGui=Player.PlayerGui
  11. Backpack=Player.Backpack
  12. Torso=Character.Torso
  13. Head=Character.Head
  14. Humanoid=Character.Humanoid
  15. m=Instance.new('Model',Character)
  16. LeftArm=Character["Left Arm"]
  17. LeftLeg=Character["Left Leg"]
  18. RightArm=Character["Right Arm"]
  19. RightLeg=Character["Right Leg"]
  20. LS=Torso["Left Shoulder"]
  21. LH=Torso["Left Hip"]
  22. RS=Torso["Right Shoulder"]
  23. RH=Torso["Right Hip"]
  24. Face = Head.face
  25. Neck=Torso.Neck
  26. it=Instance.new
  27. attacktype=1
  28. vt=Vector3.new
  29. cf=CFrame.new
  30. euler=CFrame.fromEulerAnglesXYZ
  31. angles=CFrame.Angles
  32. cloaked=false
  33. necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  34. necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  35. LHC0=cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0)
  36. LHC1=cf(-0.5,1,0,-0,-0,-1,0,1,0,1,0,0)
  37. RHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0)
  38. RHC1=cf(0.5,1,0,0,0,1,0,1,0,-1,-0,-0)
  39. RootPart=Character.HumanoidRootPart
  40. RootJoint=RootPart.RootJoint
  41. RootCF=euler(-1.57,0,3.14)
  42. attack = false
  43. attackdebounce = false
  44. deb=false
  45. equipped=true
  46. hand=false
  47. MMouse=nil
  48. combo=0
  49. mana=0
  50. trispeed=1
  51. pathtrans=.7
  52. attackmode='none'
  53. local idle=0
  54. local Anim="Idle"
  55. local Effects={}
  56. local gun=false
  57. local shoot=false
  58. player=nil
  59. cloak=false
  60. lightcolor='Bright blue'
  61.  
  62. local Color1=Torso.BrickColor
  63.  
  64. local fengui=it("GuiMain")
  65. fengui.Parent=Player.PlayerGui
  66. fengui.Name="WeaponGUI"
  67. local fenframe=it("Frame")
  68. fenframe.Parent=fengui
  69. fenframe.BackgroundColor3=Color3.new(255,255,255)
  70. fenframe.BackgroundTransparency=1
  71. fenframe.BorderColor3=Color3.new(17,17,17)
  72. fenframe.Size=UDim2.new(0.0500000007, 0, 0.100000001, 0)
  73. fenframe.Position=UDim2.new(0.4,0,0.1,0)
  74. local fenbarmana1=it("TextLabel")
  75. fenbarmana1.Parent=fenframe
  76. fenbarmana1.Text=" "
  77. fenbarmana1.BackgroundTransparency=0
  78. fenbarmana1.BackgroundColor3=Color3.new(0,0,0)
  79. fenbarmana1.SizeConstraint="RelativeXY"
  80. fenbarmana1.TextXAlignment="Center"
  81. fenbarmana1.TextYAlignment="Center"
  82. fenbarmana1.Position=UDim2.new(0,0,0,0)
  83. fenbarmana1.Size=UDim2.new(4,0,0.2,0)
  84. local fenbarmana2=it("TextLabel")
  85. fenbarmana2.Parent=fenframe
  86. fenbarmana2.Text=" "
  87. fenbarmana2.BackgroundTransparency=0
  88. fenbarmana2.BackgroundColor3=Torso.Color
  89. fenbarmana2.SizeConstraint="RelativeXY"
  90. fenbarmana2.TextXAlignment="Center"
  91. fenbarmana2.TextYAlignment="Center"
  92. fenbarmana2.Position=UDim2.new(0,0,0,0)
  93. fenbarmana2.Size=UDim2.new(4*mana/100,0,0.2,0)
  94. local fenbarmana3=it("TextLabel")
  95. fenbarmana3.Parent=fenframe
  96. fenbarmana3.Text=" "
  97. fenbarmana3.BackgroundTransparency=0
  98. fenbarmana3.BackgroundColor3=Color3.new(Col1,Col2,Col3)
  99. fenbarmana3.SizeConstraint="RelativeXY"
  100. fenbarmana3.TextXAlignment="Center"
  101. fenbarmana3.TextYAlignment="Center"
  102. fenbarmana3.Position=UDim2.new(0,0,0,0)
  103. fenbarmana3.Size=UDim2.new(0,0,0.2,0)
  104. local fenbarmana4=it("TextLabel")
  105. fenbarmana4.Parent=fenframe
  106. fenbarmana4.Text="Energy("..mana..")"
  107. fenbarmana4.BackgroundTransparency=1
  108. fenbarmana4.BackgroundColor3=Color3.new(0,0,0)
  109. fenbarmana4.SizeConstraint="RelativeXY"
  110. fenbarmana4.TextXAlignment="Center"
  111. fenbarmana4.TextYAlignment="Center"
  112. fenbarmana4.Position=UDim2.new(0,0,-0.3,0)
  113. fenbarmana4.Size=UDim2.new(4,0,0.2,0)
  114. fenbarmana4.FontSize="Size9"
  115. fenbarmana4.TextStrokeTransparency=0
  116. fenbarmana4.TextColor=BrickColor.new("White")
  117.  
  118. mouse=Player:GetMouse()
  119. --save shoulders
  120. RSH, LSH=nil, nil
  121. --welds
  122. RW, LW=Instance.new("Weld"), Instance.new("Weld")
  123. RW.Name="Right Shoulder" LW.Name="Left Shoulder"
  124. LH=Torso["Left Hip"]
  125. RH=Torso["Right Hip"]
  126. TorsoColor=Torso.BrickColor
  127. function NoOutline(Part)
  128. Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
  129. end
  130. player=Player
  131. ch=Character
  132. RSH=ch.Torso["Right Shoulder"]
  133. LSH=ch.Torso["Left Shoulder"]
  134. --
  135. RSH.Parent=nil
  136. LSH.Parent=nil
  137. --
  138. RW.Name="Right Shoulder"
  139. RW.Part0=ch.Torso
  140. RW.C0=cf(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5)
  141. RW.C1=cf(0, 0.5, 0)
  142. RW.Part1=ch["Right Arm"]
  143. RW.Parent=ch.Torso
  144. --
  145. LW.Name="Left Shoulder"
  146. LW.Part0=ch.Torso
  147. LW.C0=cf(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8)
  148. LW.C1=cf(0, 0.5, 0)
  149. LW.Part1=ch["Left Arm"]
  150. LW.Parent=ch.Torso
  151.  
  152. function part(formfactor,parent,reflectance,transparency,brickcolor,name,size)
  153. local fp=it("Part")
  154. fp.formFactor=formfactor
  155. fp.Parent=parent
  156. fp.Reflectance=reflectance
  157. fp.Transparency=transparency
  158. fp.CanCollide=false
  159. fp.Locked=true
  160. fp.BrickColor=brickcolor
  161. fp.Name=name
  162. fp.Size=size
  163. fp.Position=Torso.Position
  164. NoOutline(fp)
  165. fp.Material="Neon"
  166. fp:BreakJoints()
  167. return fp
  168. end
  169.  
  170. function mesh(Mesh,part,meshtype,meshid,offset,scale)
  171. local mesh=it(Mesh)
  172. mesh.Parent=part
  173. if Mesh=="SpecialMesh" then
  174. mesh.MeshType=meshtype
  175. if meshid~="nil" then
  176. mesh.MeshId="http://www.roblox.com/asset/?id="..meshid
  177. end
  178. end
  179. mesh.Offset=offset
  180. mesh.Scale=scale
  181. return mesh
  182. end
  183.  
  184. function weld(parent,part0,part1,c0)
  185. local weld=it("Weld")
  186. weld.Parent=parent
  187. weld.Part0=part0
  188. weld.Part1=part1
  189. weld.C0=c0
  190. return weld
  191. end
  192.  
  193. local Color1=Torso.BrickColor
  194.  
  195. local bodvel=Instance.new("BodyVelocity")
  196. local bg=Instance.new("BodyGyro")
  197.  
  198. function swait(num)
  199. if num==0 or num==nil then
  200. game:service'RunService'.Stepped:wait(0)
  201. else
  202. for i=0,num do
  203. game:service'RunService'.Stepped:wait(0)
  204. end
  205. end
  206. end
  207.  
  208.  
  209. so = function(id,par,vol,pit)
  210. coroutine.resume(coroutine.create(function()
  211. local sou = Instance.new("Sound",par or workspace)
  212. sou.Volume=vol
  213. sou.Pitch=pit or 1
  214. sou.SoundId=id
  215. swait()
  216. sou:play()
  217. game:GetService("Debris"):AddItem(sou,6)
  218. end))
  219. end
  220.  
  221. function clerp(a,b,t)
  222. local qa = {QuaternionFromCFrame(a)}
  223. local qb = {QuaternionFromCFrame(b)}
  224. local ax, ay, az = a.x, a.y, a.z
  225. local bx, by, bz = b.x, b.y, b.z
  226. local _t = 1-t
  227. return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t))
  228. end
  229.  
  230. function QuaternionFromCFrame(cf)
  231. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  232. local trace = m00 + m11 + m22
  233. if trace > 0 then
  234. local s = math.sqrt(1 + trace)
  235. local recip = 0.5/s
  236. return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5
  237. else
  238. local i = 0
  239. if m11 > m00 then
  240. i = 1
  241. end
  242. if m22 > (i == 0 and m00 or m11) then
  243. i = 2
  244. end
  245. if i == 0 then
  246. local s = math.sqrt(m00-m11-m22+1)
  247. local recip = 0.5/s
  248. return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip
  249. elseif i == 1 then
  250. local s = math.sqrt(m11-m22-m00+1)
  251. local recip = 0.5/s
  252. return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip
  253. elseif i == 2 then
  254. local s = math.sqrt(m22-m00-m11+1)
  255. local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip
  256. end
  257. end
  258. end
  259.  
  260. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  261. local xs, ys, zs = x + x, y + y, z + z
  262. local wx, wy, wz = w*xs, w*ys, w*zs
  263. local xx = x*xs
  264. local xy = x*ys
  265. local xz = x*zs
  266. local yy = y*ys
  267. local yz = y*zs
  268. local zz = z*zs
  269. 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))
  270. end
  271.  
  272. function QuaternionSlerp(a, b, t)
  273. local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4]
  274. local startInterp, finishInterp;
  275. if cosTheta >= 0.0001 then
  276. if (1 - cosTheta) > 0.0001 then
  277. local theta = math.acos(cosTheta)
  278. local invSinTheta = 1/math.sin(theta)
  279. startInterp = math.sin((1-t)*theta)*invSinTheta
  280. finishInterp = math.sin(t*theta)*invSinTheta
  281. else
  282. startInterp = 1-t
  283. finishInterp = t
  284. end
  285. else
  286. if (1+cosTheta) > 0.0001 then
  287. local theta = math.acos(-cosTheta)
  288. local invSinTheta = 1/math.sin(theta)
  289. startInterp = math.sin((t-1)*theta)*invSinTheta
  290. finishInterp = math.sin(t*theta)*invSinTheta
  291. else
  292. startInterp = t-1
  293. finishInterp = t
  294. end
  295. end
  296. 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
  297. end
  298.  
  299. function rayCast(Pos, Dir, Max, Ignore) -- Origin Position , Direction, MaxDistance , IgnoreDescendants
  300. return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  301. end
  302.  
  303. function SkullEffect(brickcolor,cframe,x1,y1,z1,delay)
  304. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  305. prt.Anchored=true
  306. prt.CFrame=cframe
  307. local msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=4770583",vt(0,0,0),vt(x1,y1,z1))
  308. --http://www.roblox.com/asset/?id=4770560
  309. game:GetService("Debris"):AddItem(prt,2)
  310. CF=prt.CFrame
  311. coroutine.resume(coroutine.create(function(Part,Mesh,TehCF)
  312. for i=0,1,0.2 do
  313. wait()
  314. Part.CFrame=CF*cf(0,0,-0.4)
  315. end
  316. for i=0,1,delay do
  317. wait()
  318. --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)
  319. Mesh.Scale=Mesh.Scale
  320. end
  321. for i=0,1,0.1 do
  322. wait()
  323. Part.Transparency=i
  324. end
  325. Part.Parent=nil
  326. end),prt,msh,CF)
  327. end
  328.  
  329. function MagicBlock(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  330. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  331. prt.Anchored=true
  332. prt.CFrame=cframe
  333. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  334. game:GetService("Debris"):AddItem(prt,5)
  335. coroutine.resume(coroutine.create(function(Part,Mesh)
  336. for i=0,1,delay do
  337. wait()
  338. Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  339. Part.Transparency=i
  340. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  341. end
  342. Part.Parent=nil
  343. end),prt,msh)
  344. end
  345.  
  346. function MagicBlock2(brickcolor,cframe,Parent,x1,y1,z1,x3,y3,z3,delay)
  347. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  348. prt.Anchored=false
  349. prt.CFrame=cframe
  350. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  351. local wld=weld(prt,prt,Parent,cframe)
  352. game:GetService("Debris"):AddItem(prt,5)
  353. coroutine.resume(coroutine.create(function(Part,Mesh,Weld)
  354. for i=0,1,delay do
  355. wait()
  356. Weld.C0=euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))*cframe
  357. --Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  358. Part.Transparency=i
  359. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  360. end
  361. Part.Parent=nil
  362. end),prt,msh,wld)
  363. end
  364.  
  365. function MagicBlock3(brickcolor,cframe,Parent,x1,y1,z1,x3,y3,z3,delay)
  366. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  367. prt.Anchored=false
  368. prt.CFrame=cframe
  369. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  370. local wld=weld(prt,prt,Parent,euler(0,0,0)*cf(0,0,0))
  371. game:GetService("Debris"):AddItem(prt,5)
  372. coroutine.resume(coroutine.create(function(Part,Mesh,Weld)
  373. for i=0,1,delay do
  374. wait()
  375. Weld.C0=euler(i*20,0,0)
  376. --Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  377. Part.Transparency=i
  378. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  379. end
  380. Part.Parent=nil
  381. end),prt,msh,wld)
  382. end
  383.  
  384. function MagicCircle2(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  385. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  386. prt.Anchored=true
  387. prt.CFrame=cframe
  388. local msh=mesh("CylinderMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  389. game:GetService("Debris"):AddItem(prt,2)
  390. coroutine.resume(coroutine.create(function(Part,Mesh)
  391. for i=0,1,delay do
  392. wait()
  393. Part.CFrame=Part.CFrame
  394. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  395. local prt2=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  396. prt2.Anchored=true
  397. prt2.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  398. local msh2=mesh("SpecialMesh",prt2,"Sphere","",vt(0,0,0),vt(0.5,0.5,0.5))
  399. game:GetService("Debris"):AddItem(prt2,2)
  400. coroutine.resume(coroutine.create(function(Part,Mesh)
  401. for i=0,1,0.1 do
  402. wait()
  403. Part.CFrame=Part.CFrame*cf(0,0.5,0)
  404. end
  405. Part.Parent=nil
  406. end),prt2,msh2)
  407. end
  408. for i=0,1,delay*2 do
  409. wait()
  410. Part.CFrame=Part.CFrame
  411. Mesh.Scale=vt((x1+x3)-(x1+x3)*i,(y1+y3)-(y1+y3)*i,(z1+z3)-(z1+z3)*i)
  412. end
  413. Part.Parent=nil
  414. end),prt,msh)
  415. end
  416.  
  417. function MagicCircle(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  418. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  419. prt.Anchored=true
  420. prt.CFrame=cframe
  421. local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  422. game:GetService("Debris"):AddItem(prt,2)
  423. coroutine.resume(coroutine.create(function(Part,Mesh)
  424. for i=0,1,delay do
  425. wait()
  426. Part.CFrame=Part.CFrame
  427. Part.Transparency=i
  428. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  429. end
  430. Part.Parent=nil
  431. end),prt,msh)
  432. end
  433.  
  434. function MagicRing(brickcolor,cframe,x1,y1,z1,x2,y2,z2,x3,y3,z3)
  435. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  436. prt.Anchored=true
  437. prt.CFrame=cframe*euler(x2,y2,z2)
  438. --"http://www.roblox.com/asset/?id=168892465"
  439. local msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=3270017",vt(0,0,0),vt(x1,y1,z1))
  440. game:GetService("Debris"):AddItem(prt,2)
  441. coroutine.resume(coroutine.create(function(Part,Mesh)
  442. for i=0,1,0.03 do
  443. wait()
  444. Part.CFrame=Part.CFrame
  445. Part.Transparency=i
  446. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  447. end
  448. Part.Parent=nil
  449. end),prt,msh)
  450. end
  451.  
  452. function BreakEffect(brickcolor,cframe,x1,y1,z1)
  453. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  454. prt.Anchored=true
  455. prt.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  456. local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  457. game:GetService("Debris"):AddItem(prt,2)
  458. coroutine.resume(coroutine.create(function(Part,CF,Numbb,randnumb)
  459. CF=Part.CFrame
  460. Numbb=0
  461. randnumb=math.random()/10
  462. rand1=math.random()/10
  463. for i=0,1,rand1 do
  464. wait()
  465. CF=CF*cf(0,math.random()/2,0)
  466. --Part.CFrame=Part.CFrame*euler(0.5,0,0)*cf(0,1,0)
  467. Part.CFrame=CF*euler(Numbb,0,0)
  468. Part.Transparency=i
  469. Numbb=Numbb+randnumb
  470. end
  471. Part.Parent=nil
  472. end),prt,CF,Numbb,randnumb)
  473. end
  474.  
  475. function MagicWaveThing(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  476. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  477. prt.Anchored=true
  478. prt.CFrame=cframe
  479. msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=1051557",vt(0,0,0),vt(x1,y1,z1))
  480. game:GetService("Debris"):AddItem(prt,5)
  481. coroutine.resume(coroutine.create(function(Part,Mesh)
  482. for i=0,1,delay do
  483. wait()
  484. Part.CFrame=Part.CFrame*euler(0,0.7,0)
  485. Part.Transparency=i
  486. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  487. end
  488. Part.Parent=nil
  489. end),prt,msh)
  490. end
  491.  
  492. function WaveEffect(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  493. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  494. prt.Anchored=true
  495. prt.CFrame=cframe
  496. msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=20329976",vt(0,0,0),vt(x1,y1,z1))
  497. game:GetService("Debris"):AddItem(prt,2)
  498. coroutine.resume(coroutine.create(function(Part,Mesh)
  499. for i=0,1,delay do
  500. wait()
  501. Part.CFrame=Part.CFrame*cf(0,y3/2,0)
  502. Part.Transparency=i
  503. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  504. end
  505. Part.Parent=nil
  506. end),prt,msh)
  507. end
  508.  
  509. function StravEffect(brickcolor,cframe,x,y,z,x1,y1,z1,delay)
  510. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  511. prt.Anchored=true
  512. prt.CFrame=cframe*cf(x,y,z)
  513. msh=mesh("SpecialMesh",prt,"FileMesh","rbxassetid://168892363",vt(0,0,0),vt(x1,y1,z1))
  514. game:GetService("Debris"):AddItem(prt,5)
  515. coroutine.resume(coroutine.create(function(Part,Mesh,ex,why,zee)
  516. local num=math.random()
  517. local num2=math.random(-3,2)+math.random()
  518. local numm=0
  519. for i=0,1,delay*2 do
  520. swait()
  521. Part.CFrame=cframe*euler(0,numm*num*10,0)*cf(ex,why,zee)*cf(-i*10,num2,0)
  522. Part.Transparency=i
  523. numm=numm+0.01
  524. end
  525. Part.Parent=nil
  526. Mesh.Parent=nil
  527. end),prt,msh,x,y,z)
  528. end
  529.  
  530. Damagefunc=function(hit,minim,maxim,knockback,Type,Property,Delay,KnockbackType,decreaseblock)
  531. if hit.Parent==nil then
  532. return
  533. end
  534. h=hit.Parent:FindFirstChild("Humanoid")
  535. for _,v in pairs(hit.Parent:children()) do
  536. if v:IsA("Humanoid") then
  537. h=v
  538. end
  539. end
  540. if hit.Parent.Parent:FindFirstChild("Torso")~=nil then
  541. h=hit.Parent.Parent:FindFirstChild("Humanoid")
  542. end
  543. if hit.Parent.className=="Hat" then
  544. hit=hit.Parent.Parent:findFirstChild("Head")
  545. end
  546. if h~=nil and hit.Parent.Name~=Character.Name and hit.Parent:FindFirstChild("Torso")~=nil then
  547. if hit.Parent:findFirstChild("DebounceHit")~=nil then if hit.Parent.DebounceHit.Value==true then return end end
  548. --[[ if game.Players:GetPlayerFromCharacter(hit.Parent)~=nil then
  549. return
  550. end]]
  551. -- hs(hit,1.2)
  552. c=Instance.new("ObjectValue")
  553. c.Name="creator"
  554. c.Value=game:service("Players").LocalPlayer
  555. c.Parent=h
  556. game:GetService("Debris"):AddItem(c,.5)
  557. Damage=math.random(minim,maxim)
  558. -- h:TakeDamage(Damage)
  559. blocked=false
  560. block=hit.Parent:findFirstChild("Block")
  561. if block~=nil then
  562. print(block.className)
  563. if block.className=="NumberValue" then
  564. if block.Value>0 then
  565. blocked=true
  566. if decreaseblock==nil then
  567. block.Value=block.Value-1
  568. end
  569. end
  570. end
  571. if block.className=="IntValue" then
  572. if block.Value>0 then
  573. blocked=true
  574. if decreaseblock~=nil then
  575. block.Value=block.Value-1
  576. end
  577. end
  578. end
  579. end
  580. if blocked==false then
  581. -- h:TakeDamage(Damage)
  582. h.Health=h.Health-Damage
  583. showDamage(hit.Parent,Damage,.5,"Lime green")
  584. else
  585. h.Health=h.Health-(Damage/2)
  586. showDamage(hit.Parent,Damage/2,.5,BrickColor.new("Bright blue"))
  587. end
  588. if Type=="Knockdown" then
  589. hum=hit.Parent.Humanoid
  590. hum.PlatformStand=true
  591. coroutine.resume(coroutine.create(function(HHumanoid)
  592. swait(1)
  593. HHumanoid.PlatformStand=false
  594. end),hum)
  595. local angle=(hit.Position-(Property.Position+Vector3.new(0,0,0))).unit
  596. --hit.CFrame=CFrame.new(hit.Position,Vector3.new(angle.x,hit.Position.y,angle.z))*CFrame.fromEulerAnglesXYZ(math.pi/4,0,0)
  597. local bodvol=Instance.new("BodyVelocity")
  598. bodvol.velocity=angle*knockback
  599. bodvol.P=5000
  600. bodvol.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
  601. bodvol.Parent=hit
  602. rl=Instance.new("BodyAngularVelocity")
  603. rl.P=3000
  604. rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000
  605. rl.angularvelocity=Vector3.new(math.random(-10,10),math.random(-10,10),math.random(-10,10))
  606. rl.Parent=hit
  607. game:GetService("Debris"):AddItem(bodvol,.5)
  608. game:GetService("Debris"):AddItem(rl,.5)
  609. elseif Type=="Normal" then
  610. vp=Instance.new("BodyVelocity")
  611. vp.P=500
  612. vp.maxForce=Vector3.new(math.huge,0,math.huge)
  613. -- vp.velocity=Character.Torso.CFrame.lookVector*Knockback
  614. if KnockbackType==1 then
  615. vp.velocity=Property.CFrame.lookVector*knockback+Property.Velocity/1.05
  616. elseif KnockbackType==2 then
  617. vp.velocity=Property.CFrame.lookVector*knockback
  618. end
  619. if knockback>0 then
  620. vp.Parent=hit.Parent.Torso
  621. end
  622. game:GetService("Debris"):AddItem(vp,.5)
  623. elseif Type=="Up" then
  624. local bodyVelocity=Instance.new("BodyVelocity")
  625. bodyVelocity.velocity=vt(0,10,0)
  626. bodyVelocity.P=1000
  627. bodyVelocity.maxForce=Vector3.new(1e+009, 1e+009, 1e+009)
  628. bodyVelocity.Parent=hit
  629. game:GetService("Debris"):AddItem(bodyVelocity,1)
  630. rl=Instance.new("BodyAngularVelocity")
  631. rl.P=3000
  632. rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000
  633. rl.angularvelocity=Vector3.new(math.random(-20,20),math.random(-20,20),math.random(-20,20))
  634. rl.Parent=hit
  635. game:GetService("Debris"):AddItem(rl,.5)
  636. elseif Type=="Snare" then
  637. bp=Instance.new("BodyPosition")
  638. bp.P=2000
  639. bp.D=100
  640. bp.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  641. bp.position=hit.Parent.Torso.Position
  642. bp.Parent=hit.Parent.Torso
  643. game:GetService("Debris"):AddItem(bp,1)
  644. elseif Type=="Target" then
  645. if Targetting==false then
  646. ZTarget=hit.Parent.Torso
  647. coroutine.resume(coroutine.create(function(Part)
  648. so("http://www.roblox.com/asset/?id=15666462",Part,1,1.5)
  649. swait(5)
  650. so("http://www.roblox.com/asset/?id=15666462",Part,1,1.5)
  651. end),ZTarget)
  652. TargHum=ZTarget.Parent:findFirstChild("Humanoid")
  653. targetgui=Instance.new("BillboardGui")
  654. targetgui.Parent=ZTarget
  655. targetgui.Size=UDim2.new(10,100,10,100)
  656. targ=Instance.new("ImageLabel")
  657. targ.Parent=targetgui
  658. targ.BackgroundTransparency=1
  659. targ.Image="rbxassetid://4834067"
  660. targ.Size=UDim2.new(1,0,1,0)
  661. cam.CameraType="Scriptable"
  662. cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
  663. dir=Vector3.new(cam.CoordinateFrame.lookVector.x,0,cam.CoordinateFrame.lookVector.z)
  664. workspace.CurrentCamera.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
  665. Targetting=true
  666. RocketTarget=ZTarget
  667. for i=1,Property do
  668. --while Targetting==true and Humanoid.Health>0 and Character.Parent~=nil do
  669. if Humanoid.Health>0 and Character.Parent~=nil and TargHum.Health>0 and TargHum.Parent~=nil and Targetting==true then
  670. swait()
  671. end
  672. --workspace.CurrentCamera.CoordinateFrame=CFrame.new(Head.CFrame.p,Head.CFrame.p+rmdir*100)
  673. cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
  674. dir=Vector3.new(cam.CoordinateFrame.lookVector.x,0,cam.CoordinateFrame.lookVector.z)
  675. cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)*cf(0,5,10)*euler(-0.3,0,0)
  676. end
  677. Targetting=false
  678. RocketTarget=nil
  679. targetgui.Parent=nil
  680. cam.CameraType="Custom"
  681. end
  682. end
  683. debounce=Instance.new("BoolValue")
  684. debounce.Name="DebounceHit"
  685. debounce.Parent=hit.Parent
  686. debounce.Value=true
  687. game:GetService("Debris"):AddItem(debounce,Delay)
  688. c=Instance.new("ObjectValue")
  689. c.Name="creator"
  690. c.Value=Player
  691. c.Parent=h
  692. game:GetService("Debris"):AddItem(c,.5)
  693. CRIT=false
  694. hitDeb=true
  695. AttackPos=6
  696. end
  697. end
  698.  
  699. showDamage=function(Char,Dealt,du,Color)
  700. m=Instance.new("Model")
  701. m.Name=tostring(Dealt)
  702. h=Instance.new("Humanoid")
  703. h.Health=0
  704. h.MaxHealth=0
  705. h.Parent=m
  706. c=Instance.new("Part")
  707. c.Transparency=0
  708. c.BrickColor="Lime green"
  709. c.Name="Head"
  710. c.TopSurface=0
  711. c.BottomSurface=0
  712. c.formFactor="Plate"
  713. c.Size=Vector3.new(1,.4,1)
  714. ms=Instance.new("CylinderMesh")
  715. ms.Scale=Vector3.new(.8,.8,.8)
  716. so("http://www.roblox.com/asset/?id=199149269",c,1,1)
  717. if CRIT==true then
  718. ms.Scale=Vector3.new(1,1.25,1)
  719. end
  720. ms.Parent=c
  721. c.Reflectance=0
  722. Instance.new("BodyGyro").Parent=c
  723. c.Parent=m
  724. if Char:findFirstChild("Head")~=nil then
  725. c.CFrame=CFrame.new(Char["Head"].CFrame.p+Vector3.new(0,1.5,0))
  726. elseif Char.Parent:findFirstChild("Head")~=nil then
  727. c.CFrame=CFrame.new(Char.Parent["Head"].CFrame.p+Vector3.new(0,1.5,0))
  728. end
  729. f=Instance.new("BodyPosition")
  730. f.P=2000
  731. f.D=100
  732. f.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  733. f.position=c.Position+Vector3.new(0,3,0)
  734. f.Parent=c
  735. game:GetService("Debris"):AddItem(m,.5+du)
  736. c.CanCollide=false
  737. m.Parent=workspace
  738. c.CanCollide=false
  739. end
  740.  
  741. Player=game:GetService('Players').LocalPlayer
  742. Character=Player.Character
  743. Mouse=Player:GetMouse()
  744. m=Instance.new('Model',Character)
  745.  
  746.  
  747. local function weldBetween(a, b)
  748. local weldd = Instance.new("ManualWeld")
  749. weldd.Part0 = a
  750. weldd.Part1 = b
  751. weldd.C0 = CFrame.new()
  752. weldd.C1 = b.CFrame:inverse() * a.CFrame
  753. weldd.Parent = a
  754. return weldd
  755. end
  756.  
  757. it=Instance.new
  758.  
  759. function nooutline(part)
  760. part.TopSurface,part.BottomSurface,part.LeftSurface,part.RightSurface,part.FrontSurface,part.BackSurface = 10,10,10,10,10,10
  761. end
  762.  
  763. function part(formfactor,parent,material,reflectance,transparency,brickcolor,name,size)
  764. local fp=it("Part")
  765. fp.formFactor=formfactor
  766. fp.Parent=parent
  767. fp.Reflectance=reflectance
  768. fp.Transparency=transparency
  769. fp.CanCollide=false
  770. fp.Locked=true
  771. fp.BrickColor=BrickColor.new(tostring(brickcolor))
  772. fp.Name=name
  773. fp.Size=size
  774. fp.Position=Character.Torso.Position
  775. nooutline(fp)
  776. fp.Material=material
  777. fp:BreakJoints()
  778. return fp
  779. end
  780.  
  781. function mesh(Mesh,part,meshtype,meshid,offset,scale)
  782. local mesh=it(Mesh)
  783. mesh.Parent=part
  784. if Mesh=="SpecialMesh" then
  785. mesh.MeshType=meshtype
  786. mesh.MeshId=meshid
  787. end
  788. mesh.Offset=offset
  789. mesh.Scale=scale
  790. return mesh
  791. end
  792.  
  793. function weld(parent,part0,part1,c0,c1)
  794. local weld=it("Weld")
  795. weld.Parent=parent
  796. weld.Part0=part0
  797. weld.Part1=part1
  798. weld.C0=c0
  799. weld.C1=c1
  800. return weld
  801. end
  802.  
  803. local modelzorz=Instance.new("Model")
  804. modelzorz.Parent=Character
  805. modelzorz.Name="Claw1"
  806.  
  807. Handle=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Lime green","Handle",Vector3.new(1.20000005, 1.20000005, 1))
  808. 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))
  809. mesh("SpecialMesh",Handle,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  810. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(2.20000005, 1, 1))
  811. 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))
  812. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Lime green","Part",Vector3.new(1, 0.400000006, 1))
  813. 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))
  814. 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))
  815. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(2.20000005, 1, 1))
  816. Partweld=weld(m,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))
  817. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(2.20000005, 1, 1))
  818. 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))
  819. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(2.20000005, 1, 1))
  820. 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))
  821. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(2.20000005, 1, 1))
  822. 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))
  823. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(2.20000005, 1, 1))
  824. 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))
  825. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(2.20000005, 1, 1))
  826. 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))
  827. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(2.20000005, 1, 1))
  828. 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))
  829. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(2.20000005, 1, 1))
  830. 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))
  831. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Lime green","Part",Vector3.new(1, 0.400000006, 1))
  832. 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))
  833. 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))
  834. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(2.20000005, 1, 1))
  835. 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))
  836. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Lime green","Part",Vector3.new(1, 0.400000006, 1))
  837. 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))
  838. 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))
  839. Gear=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(4.29999971, 4.30000019, 1))
  840. 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))
  841. mesh("SpecialMesh",Gear,Enum.MeshType.FileMesh,"http://www.roblox.com/asset?id=156292343",Vector3.new(0, 0, 0),Vector3.new(5, 5, 15))
  842. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Lime green","Part",Vector3.new(1, 0.400000006, 1))
  843. 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))
  844. 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))
  845. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Lime green","Part",Vector3.new(1, 0.400000006, 1))
  846. 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))
  847. 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))
  848.  
  849. local modelzorz2=Instance.new("Model")
  850. modelzorz2.Parent=Character
  851. modelzorz2.Name="Claw2"
  852.  
  853. Handle2=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Lime green","Handle",Vector3.new(1.20000005, 1.20000005, 1))
  854. 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))
  855. mesh("SpecialMesh",Handle2,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  856. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(2.20000005, 1, 1))
  857. 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))
  858. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(2.20000005, 1, 1))
  859. 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))
  860. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(2.20000005, 1, 1))
  861. 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))
  862. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Lime green","Part",Vector3.new(1, 0.400000006, 1))
  863. 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))
  864. 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))
  865. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Lime green","Part",Vector3.new(1, 0.400000006, 1))
  866. 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))
  867. 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))
  868. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(2.20000005, 1, 1))
  869. 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))
  870. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Lime green","Part",Vector3.new(1, 0.400000006, 1))
  871. 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))
  872. 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))
  873. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(2.20000005, 1, 1))
  874. 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))
  875. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Lime green","Part",Vector3.new(1, 0.400000006, 1))
  876. 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))
  877. 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))
  878. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(2.20000005, 1, 1))
  879. 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))
  880. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Lime green","Part",Vector3.new(1, 0.400000006, 1))
  881. 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))
  882. 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))
  883. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(2.20000005, 1, 1))
  884. 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))
  885. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(2.20000005, 1, 1))
  886. 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))
  887. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(2.20000005, 1, 1))
  888. 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))
  889. Gear2=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(4.29999971, 4.30000019, 1))
  890. 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))
  891. mesh("SpecialMesh",Gear2,Enum.MeshType.FileMesh,"http://www.roblox.com/asset?id=156292343",Vector3.new(0, 0, 0),Vector3.new(5, 5, 15))
  892. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(2.20000005, 1, 1))
  893. 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))
  894.  
  895. local moosick = it("Sound",Character)
  896. moosick.SoundId = "rbxassetid://142653441"
  897. --142653441, 175067863
  898. moosick.Looped = true
  899. moosick.Pitch = 1
  900. moosick.Volume = 0
  901. moosick:Play()
  902.  
  903. anim = Character:findFirstChild("Animate")
  904. if anim then
  905. anim:Destroy()
  906. end
  907.  
  908. local particleemitter = Instance.new("ParticleEmitter", Handle)
  909. particleemitter.VelocitySpread = 180
  910. particleemitter.Lifetime = NumberRange.new(0.1)
  911. particleemitter.Speed = NumberRange.new(2)
  912. particleemitter.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, 1), NumberSequenceKeypoint.new(1, 5.563)})
  913. particleemitter.RotSpeed = NumberRange.new(-45, 45)
  914. particleemitter.Rate = 100
  915. particleemitter.Rotation = NumberRange.new(-45, 45)
  916. particleemitter.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0), NumberSequenceKeypoint.new(0.701, 0), NumberSequenceKeypoint.new(1, 1)})
  917. particleemitter.LightEmission = 0
  918. particleemitter.Color = ColorSequence.new(Color3.new(0, 0, 0), Color3.new(0, 0, 0))
  919.  
  920. local particleemitter = Instance.new("ParticleEmitter", Handle2)
  921. particleemitter.VelocitySpread = 180
  922. particleemitter.Lifetime = NumberRange.new(0.1)
  923. particleemitter.Speed = NumberRange.new(2)
  924. particleemitter.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, 1), NumberSequenceKeypoint.new(1, 5.563)})
  925. particleemitter.RotSpeed = NumberRange.new(-45, 45)
  926. particleemitter.Rate = 100
  927. particleemitter.Rotation = NumberRange.new(-45, 45)
  928. particleemitter.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0), NumberSequenceKeypoint.new(0.701, 0), NumberSequenceKeypoint.new(1, 1)})
  929. particleemitter.LightEmission = 0
  930. particleemitter.Color = ColorSequence.new(Color3.new(0, 0, 0), Color3.new(0, 0, 0))
  931.  
  932. local particleemitter = Instance.new("ParticleEmitter", handle)
  933. particleemitter.VelocitySpread = 180
  934. particleemitter.Lifetime = NumberRange.new(0.1)
  935. particleemitter.Speed = NumberRange.new(2)
  936. particleemitter.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, 1), NumberSequenceKeypoint.new(1, 7.563)})
  937. particleemitter.RotSpeed = NumberRange.new(-45, 45)
  938. particleemitter.Rate = 100
  939. particleemitter.Rotation = NumberRange.new(-45, 45)
  940. particleemitter.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0), NumberSequenceKeypoint.new(0.701, 0), NumberSequenceKeypoint.new(1, 1)})
  941. particleemitter.LightEmission = 0.8
  942. particleemitter.Color = ColorSequence.new(Color3.new(0, 0, 0), Color3.new(0, 0, 0))
  943.  
  944. local light = Instance.new("PointLight", Character.Torso)
  945. light.Color = Color3.new(255,255,255)
  946. light.Brightness = 5
  947. light.Range = 15
  948.  
  949. particleemitter.Enabled = true
  950.  
  951. local Footsteps = it("Sound",Character.Torso)
  952. Footsteps.SoundId = "rbxassetid://142665235"
  953. Footsteps.Looped = true
  954. Footsteps.Pitch = 0.8
  955. Footsteps.Volume = 0.3
  956.  
  957. local Footsteps2 = it("Sound",Character.Torso)
  958. Footsteps2.SoundId = "rbxassetid://142665235"
  959. Footsteps2.Looped = true
  960. Footsteps2.Pitch = 1
  961. Footsteps2.Volume = 0.4
  962.  
  963. local cam = game.Workspace.CurrentCamera
  964.  
  965. --cam.CameraSubject = Character
  966.  
  967. for i,v in pairs(Head:children()) do
  968. if v:IsA("Sound") then
  969. v:Destroy()
  970. end
  971. end
  972.  
  973. mouse.Button1Down:connect(function()
  974. if attack==false and attacktype==1 then
  975. attacktype=2
  976. attackone()
  977. elseif attack==false and attacktype==2 then
  978. attacktype=3
  979. attacktwo()
  980. elseif attack==false and attacktype==3 then
  981. attacktype=4
  982. attackthree()
  983. elseif attack==false and attacktype==4 then
  984. attacktype=1
  985. attackfour()
  986. end
  987. end)
  988.  
  989. mouse.KeyDown:connect(function(k)
  990. k=k:lower()
  991. if k=='e' then
  992. if attack==false and mana>=20 then
  993. Push()
  994. end
  995. elseif k=='g' then
  996. if attack==false and mana>=50 then
  997. Twirl()
  998. end
  999. elseif k=='v' then
  1000. if attack==false and mana>=25 then
  1001. MagicJump()
  1002. end
  1003. elseif k=='q' then
  1004. if attack==false then
  1005. idle=1000
  1006. end
  1007. elseif k=='h' then
  1008. if attack==false then
  1009. mana=100
  1010. end
  1011. elseif k=='y' then
  1012. if attack==false and mana>=100 then
  1013. Shred()
  1014. end
  1015. elseif k=='f' then
  1016. if attack==false and mana>=40 then
  1017. Spin()
  1018. end
  1019. elseif k=='r' then
  1020. if attack==false and mana>=20 then
  1021. Clap()
  1022. end
  1023. elseif k=='t' then
  1024. if attack==false then
  1025. Hai()
  1026. end
  1027. elseif k=='0' then
  1028. if attack==false then
  1029. Humanoid.WalkSpeed=(56)
  1030. end
  1031. elseif k=='j' then
  1032. if attack==false then
  1033. Humanoid.Health = 100
  1034. print("Congrats, you commited suicide.")
  1035. end
  1036. end
  1037. end)
  1038.  
  1039. function MagicCircle(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  1040. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1041. prt.Anchored=true
  1042. prt.CFrame=cframe
  1043. local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  1044. game:GetService("Debris"):AddItem(prt,2)
  1045. coroutine.resume(coroutine.create(function(Part,Mesh)
  1046. for i=0,1,delay do
  1047. wait()
  1048. Part.CFrame=Part.CFrame
  1049. Part.Transparency=i
  1050. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1051. end
  1052. Part.Parent=nil
  1053. end),prt,msh)
  1054. end
  1055.  
  1056. TrailDeb = false
  1057.  
  1058. function equipanim()
  1059. attack=true
  1060. Humanoid.WalkSpeed = 0
  1061. if TrailDeb == false then
  1062. TrailDeb = true
  1063. end
  1064.  
  1065.  
  1066. coroutine.wrap(function()
  1067. local Old = handle.CFrame.p
  1068. while wait()do
  1069. if not TrailDeb then break end
  1070. local New = handle.CFrame.p
  1071. local Mag =(Old -New).magnitude
  1072. local Dis =(Old +New)/2
  1073. local Trail = Instance.new("Part",Character)
  1074. Trail.Material = "Neon"
  1075. Trail.Anchored = true
  1076. Trail.CanCollide = false
  1077. Trail.BrickColor = "Lime green"
  1078. Trail.Size = Vector3.new(0.2,Mag,0.2)
  1079. Trail.TopSurface = 0
  1080. Trail.BottomSurface = 0
  1081. Trail.formFactor = "Custom"
  1082. Trail.CFrame = CFrame.new(Dis,New)* CFrame.Angles(math.pi/2,0,0)
  1083. local ms = Instance.new("BlockMesh",Trail)
  1084. ms.Scale = Vector3.new(1,1,1)
  1085. local TM = Instance.new("CylinderMesh",Trail)
  1086. TM.Scale = Vector3.new(1,1,1)
  1087. Old = New
  1088. coroutine.wrap(function()
  1089. for i = 1,0,-0.1 do
  1090. wait()
  1091. TM.Scale = TM.Scale * Vector3.new(i,1,i)
  1092. end
  1093. Trail:remove()
  1094. end)()
  1095. coroutine.wrap(function()
  1096. for i = 1,10 do
  1097. wait()
  1098. Trail.Transparency = Trail.Transparency +0.1
  1099. end end)()end end)()
  1100. coroutine.wrap(function()
  1101. local Old = Handle.CFrame.p
  1102. while wait()do
  1103. if not TrailDeb then break end
  1104. local New = Handle.CFrame.p
  1105. local Mag =(Old -New).magnitude
  1106. local Dis =(Old +New)/2
  1107. local Trail = Instance.new("Part",Character)
  1108. Trail.Material = "Neon"
  1109. Trail.Anchored = true
  1110. Trail.CanCollide = false
  1111. Trail.BrickColor = "Lime green"
  1112. Trail.Size = Vector3.new(0.2,Mag,0.2)
  1113. Trail.TopSurface = 0
  1114. Trail.BottomSurface = 0
  1115. Trail.formFactor = "Custom"
  1116. Trail.CFrame = CFrame.new(Dis,New)* CFrame.Angles(math.pi/2,0,0)
  1117. local ms = Instance.new("BlockMesh",Trail)
  1118. ms.Scale = Vector3.new(1,1,1)
  1119. local TM = Instance.new("CylinderMesh",Trail)
  1120. TM.Scale = Vector3.new(1,1,1)
  1121. Old = New
  1122. coroutine.wrap(function()
  1123. for i = 1,0,-0.1 do
  1124. wait()
  1125. TM.Scale = TM.Scale * Vector3.new(i,1,i)
  1126. end
  1127. Trail:remove()
  1128. end)()
  1129. coroutine.wrap(function()
  1130. for i = 1,10 do
  1131. wait()
  1132. Trail.Transparency = Trail.Transparency +0.1
  1133. end end)()end end)()
  1134. coroutine.wrap(function()
  1135. local Old = Handle2.CFrame.p
  1136. while wait()do
  1137. if not TrailDeb then break end
  1138. local New = Handle2.CFrame.p
  1139. local Mag =(Old -New).magnitude
  1140. local Dis =(Old +New)/2
  1141. local Trail = Instance.new("Part",Character)
  1142. Trail.Material = "Neon"
  1143. Trail.Anchored = true
  1144. Trail.CanCollide = false
  1145. Trail.BrickColor = "Lime green"
  1146. Trail.Size = Vector3.new(0.2,Mag,0.2)
  1147. Trail.TopSurface = 0
  1148. Trail.BottomSurface = 0
  1149. Trail.formFactor = "Custom"
  1150. Trail.CFrame = CFrame.new(Dis,New)* CFrame.Angles(math.pi/2,0,0)
  1151. local ms = Instance.new("BlockMesh",Trail)
  1152. ms.Scale = Vector3.new(1,1,1)
  1153. local TM = Instance.new("CylinderMesh",Trail)
  1154. TM.Scale = Vector3.new(1,1,1)
  1155. Old = New
  1156. coroutine.wrap(function()
  1157. for i = 1,0,-0.1 do
  1158. wait()
  1159. TM.Scale = TM.Scale * Vector3.new(i,1,i)
  1160. end
  1161. Trail:remove()
  1162. end)()
  1163. coroutine.wrap(function()
  1164. for i = 1,10 do
  1165. wait()
  1166. Trail.Transparency = Trail.Transparency +0.1
  1167. end end)()end end)()
  1168. so("http://www.roblox.com/asset/?id=200632370",Torso,1,0.5)
  1169. for i=0,1,0.005 do
  1170. swait()
  1171. moosick.Volume = 0+1*i
  1172. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,100-100*i)*euler(0,0,0+90*i),.2)
  1173. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0.1,0,0),.2)
  1174. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.05)
  1175. Handle2weld.C0=clerp(Handle2weld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.05)
  1176. Handleweld.C0=clerp(Handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.05)
  1177. LW.C0=clerp(LW.C0,cf(-1,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(40)),.2)
  1178. RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(-40)),.2)
  1179. end
  1180. for i=0,1,0.005 do
  1181. swait()
  1182. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,2.5)*euler(0,0,0+90*i),.2)
  1183. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0.1,0,0),.2)
  1184. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.05)
  1185. Handle2weld.C0=clerp(Handle2weld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.05)
  1186. Handleweld.C0=clerp(Handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.05)
  1187. LW.C0=clerp(LW.C0,cf(-1,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(40)),.2)
  1188. RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(-40)),.2)
  1189. end
  1190. so("http://www.roblox.com/asset/?id=150829983",Character,1,0.9)
  1191. so("http://www.roblox.com/asset/?id=150829983",Character,1,0.9)
  1192. for i=0,1,0.005 do
  1193. swait()
  1194. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,5+1*i)*angles(math.rad(-15),math.rad(0),math.rad(0)),0.1)
  1195. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-25),math.rad(0),math.rad(0)),0.1)
  1196. handleweld.C0=clerp(handleweld.C0,cf(0,0+1*i,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.1)
  1197. Handle2weld.C0=clerp(Handle2weld.C0,cf(0-1*i,0,0)*angles(math.rad(90),math.rad(15),math.rad(0)),0.1)
  1198. Handleweld.C0=clerp(Handleweld.C0,cf(0+1*i,0,0)*angles(math.rad(90),math.rad(-15),math.rad(0)),0.1)
  1199. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-30),math.rad(0),math.rad(-30)),0.1)
  1200. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-30),math.rad(0),math.rad(30)),0.1)
  1201. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-30),math.rad(0),math.rad(-30)),0.1)
  1202. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-30),math.rad(0),math.rad(30)),0.1)
  1203. end
  1204. for i=0,1,0.04 do
  1205. swait()
  1206. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-1)*angles(math.rad(40),math.rad(0),math.rad(-40)),.3)
  1207. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  1208. Handleweld.C0=clerp(Handleweld.C0,cf(1.5,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  1209. Handle2weld.C0=clerp(Handle2weld.C0,cf(-1.5,3,0)*angles(math.rad(0),math.rad(180),math.rad(180)),.2)
  1210. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-40),math.rad(0),math.rad(40)),.3)
  1211. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(70),math.rad(0),math.rad(-45)),.3)
  1212. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0,1.57,0)*angles(math.rad(0),math.rad(0),math.rad(-20)),.3)
  1213. LH.C0=clerp(LH.C0,cf(-1,0.5,0)*euler(0,-1.57,0)*angles(math.rad(-10),math.rad(30),math.rad(-40)),.3)
  1214. end
  1215. --dmgstop()
  1216. attack=false
  1217. Humanoid.WalkSpeed = 12
  1218. if TrailDeb == true then
  1219. TrailDeb = false
  1220. end
  1221. end
  1222.  
  1223. function attackone()
  1224. attack=true
  1225. if TrailDeb == false then
  1226. TrailDeb = true
  1227. end
  1228.  
  1229.  
  1230. coroutine.wrap(function()
  1231. local Old = Handle.CFrame.p
  1232. while wait()do
  1233. if not TrailDeb then break end
  1234. local New = Handle.CFrame.p
  1235. local Mag =(Old -New).magnitude
  1236. local Dis =(Old +New)/2
  1237. local Trail = Instance.new("Part",Character)
  1238. Trail.Material = "Neon"
  1239. Trail.Anchored = true
  1240. Trail.CanCollide = false
  1241. Trail.BrickColor = "Lime green"
  1242. Trail.Size = Vector3.new(0.2,Mag,0.2)
  1243. Trail.TopSurface = 0
  1244. Trail.BottomSurface = 0
  1245. Trail.formFactor = "Custom"
  1246. Trail.CFrame = CFrame.new(Dis,New)* CFrame.Angles(math.pi/2,0,0)
  1247. local ms = Instance.new("BlockMesh",Trail)
  1248. ms.Scale = Vector3.new(1,1,1)
  1249. local TM = Instance.new("CylinderMesh",Trail)
  1250. TM.Scale = Vector3.new(1,1,1)
  1251. Old = New
  1252. coroutine.wrap(function()
  1253. for i = 1,0,-0.1 do
  1254. wait()
  1255. TM.Scale = TM.Scale * Vector3.new(i,1,i)
  1256. end
  1257. Trail:remove()
  1258. end)()
  1259. coroutine.wrap(function()
  1260. for i = 1,10 do
  1261. wait()
  1262. Trail.Transparency = Trail.Transparency +0.1
  1263. end end)()end end)()
  1264. con1=Gear.Touched:connect(function(hit) Damagefunc(hit,10,20,math.random(20,40),"Normal",RootPart,.2,1) end)
  1265. for i=0,1,0.08 do
  1266. swait()
  1267. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(-5),math.rad(0),math.rad(-10)),.3)
  1268. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(5),math.rad(0),math.rad(10)),.3)
  1269. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  1270. Handleweld.C0=clerp(Handleweld.C0,cf(-3,1,2)*angles(math.rad(90),math.rad(0),math.rad(0)),.2)
  1271. Handle2weld.C0=clerp(Handle2weld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  1272. RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*euler(.5,1.8,1.5),.3)
  1273. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(2),math.rad(25),math.rad(-15)),.3)
  1274. end
  1275. so("http://www.roblox.com/asset/?id=231917758",Handle,1,.9)
  1276. so("http://www.roblox.com/asset/?id=159972643",Torso,1,1)
  1277. for i=0,1,0.1 do
  1278. swait()
  1279. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(10),math.rad(0),math.rad(20)),.3)
  1280. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(-20)),.3)
  1281. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  1282. Handleweld.C0=clerp(Handleweld.C0,cf(-4,1,-8)*angles(math.rad(-85),math.rad(0),math.rad(0)),.2)
  1283. Handle2weld.C0=clerp(Handle2weld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  1284. RW.C0=clerp(RW.C0,cf(1.5,0.5,-0.5)*euler(80,1.8,1.5),.3)
  1285. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(2),math.rad(25),math.rad(-15)),.3)
  1286. end
  1287. --dmgstop()
  1288. attack=false
  1289. con1:disconnect()
  1290. if TrailDeb == true then
  1291. TrailDeb = false
  1292. end
  1293. end
  1294.  
  1295. function attacktwo()
  1296. attack=true
  1297. if TrailDeb == false then
  1298. TrailDeb = true
  1299. end
  1300.  
  1301.  
  1302. coroutine.wrap(function()
  1303. local Old = Handle2.CFrame.p
  1304. while wait()do
  1305. if not TrailDeb then break end
  1306. local New = Handle2.CFrame.p
  1307. local Mag =(Old -New).magnitude
  1308. local Dis =(Old +New)/2
  1309. local Trail = Instance.new("Part",Character)
  1310. Trail.Material = "Neon"
  1311. Trail.Anchored = true
  1312. Trail.CanCollide = false
  1313. Trail.BrickColor = "Lime green"
  1314. Trail.Size = Vector3.new(0.2,Mag,0.2)
  1315. Trail.TopSurface = 0
  1316. Trail.BottomSurface = 0
  1317. Trail.formFactor = "Custom"
  1318. Trail.CFrame = CFrame.new(Dis,New)* CFrame.Angles(math.pi/2,0,0)
  1319. local ms = Instance.new("BlockMesh",Trail)
  1320. ms.Scale = Vector3.new(1,1,1)
  1321. local TM = Instance.new("CylinderMesh",Trail)
  1322. TM.Scale = Vector3.new(1,1,1)
  1323. Old = New
  1324. coroutine.wrap(function()
  1325. for i = 1,0,-0.1 do
  1326. wait()
  1327. TM.Scale = TM.Scale * Vector3.new(i,1,i)
  1328. end
  1329. Trail:remove()
  1330. end)()
  1331. coroutine.wrap(function()
  1332. for i = 1,10 do
  1333. wait()
  1334. Trail.Transparency = Trail.Transparency +0.1
  1335. end end)()end end)()
  1336. con1=Gear2.Touched:connect(function(hit) Damagefunc(hit,10,20,math.random(20,40),"Normal",RootPart,.2,1) end)
  1337. for i=0,1,0.08 do
  1338. swait()
  1339. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(20)),.3)
  1340. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(-20)),.3)
  1341. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  1342. Handle2weld.C0=clerp(Handle2weld.C0,cf(-5,1,-5)*angles(math.rad(0),math.rad(0),math.rad(20)),.2)
  1343. Handleweld.C0=clerp(Handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  1344. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-30,0,-20),.3)
  1345. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-2),math.rad(-25),math.rad(15)),.3)
  1346. end
  1347. so("http://www.roblox.com/asset/?id=231917758",Handle2,1,.8)
  1348. so("http://www.roblox.com/asset/?id=159972627",Torso,1,1)
  1349. for i=0,1,0.1 do
  1350. swait()
  1351. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-20)),.3)
  1352. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(20)),.3)
  1353. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  1354. Handle2weld.C0=clerp(Handle2weld.C0,cf(10,1,-5)*angles(math.rad(0),math.rad(-80),math.rad(20)),.2)
  1355. Handleweld.C0=clerp(Handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  1356. LW.C0=clerp(LW.C0,cf(-1,0.5,-1)*euler(-30,0,20),.3)
  1357. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-2),math.rad(-25),math.rad(15)),.3)
  1358. end
  1359. --dmgstop()
  1360. attack=false
  1361. con1:disconnect()
  1362. if TrailDeb == true then
  1363. TrailDeb = false
  1364. end
  1365. end
  1366.  
  1367. function attackthree()
  1368. attack=true
  1369. if TrailDeb == false then
  1370. TrailDeb = true
  1371. end
  1372.  
  1373.  
  1374. coroutine.wrap(function()
  1375. local Old = Handle.CFrame.p
  1376. while wait()do
  1377. if not TrailDeb then break end
  1378. local New = Handle.CFrame.p
  1379. local Mag =(Old -New).magnitude
  1380. local Dis =(Old +New)/2
  1381. local Trail = Instance.new("Part",Character)
  1382. Trail.Material = "Neon"
  1383. Trail.Anchored = true
  1384. Trail.CanCollide = false
  1385. Trail.BrickColor = "Lime green"
  1386. Trail.Size = Vector3.new(0.2,Mag,0.2)
  1387. Trail.TopSurface = 0
  1388. Trail.BottomSurface = 0
  1389. Trail.formFactor = "Custom"
  1390. Trail.CFrame = CFrame.new(Dis,New)* CFrame.Angles(math.pi/2,0,0)
  1391. local ms = Instance.new("BlockMesh",Trail)
  1392. ms.Scale = Vector3.new(1,1,1)
  1393. local TM = Instance.new("CylinderMesh",Trail)
  1394. TM.Scale = Vector3.new(1,1,1)
  1395. Old = New
  1396. coroutine.wrap(function()
  1397. for i = 1,0,-0.1 do
  1398. wait()
  1399. TM.Scale = TM.Scale * Vector3.new(i,1,i)
  1400. end
  1401. Trail:remove()
  1402. end)()
  1403. coroutine.wrap(function()
  1404. for i = 1,10 do
  1405. wait()
  1406. Trail.Transparency = Trail.Transparency +0.1
  1407. end end)()end end)()
  1408. con1=Gear.Touched:connect(function(hit) Damagefunc(hit,10,20,math.random(20,40),"Up",RootPart,.2,1) end)
  1409. for i=0,1,0.08 do
  1410. swait()
  1411. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(10),math.rad(0),math.rad(0)),.3)
  1412. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,0),.2)
  1413. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  1414. Handleweld.C0=clerp(Handleweld.C0,cf(3,7,-1)*angles(math.rad(20),math.rad(0),math.rad(-120)),.2)
  1415. Handle2weld.C0=clerp(Handle2weld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  1416. RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*euler(0.5,-1.3,-0.1),.3)
  1417. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(2),math.rad(25),math.rad(-15)),.3)
  1418. end
  1419. so("http://www.roblox.com/asset/?id=231917758",Handle,1,1)
  1420. so("http://www.roblox.com/asset/?id=159882477",Torso,1,1)
  1421. for i=0,1,0.05 do
  1422. swait()
  1423. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  1424. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(5),math.rad(0),math.rad(0)),.3)
  1425. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  1426. Handleweld.C0=clerp(Handleweld.C0,cf(2,4,-3)*angles(math.rad(120),math.rad(0),math.rad(-120)),.2)
  1427. Handle2weld.C0=clerp(Handle2weld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  1428. RW.C0=clerp(RW.C0,cf(1.5,0.5,-0.5)*euler(2,-1.3,0.1),.3)
  1429. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(2),math.rad(25),math.rad(-15)),.3)
  1430. end
  1431. --dmgstop()
  1432. attack=false
  1433. con1:disconnect()
  1434. if TrailDeb == true then
  1435. TrailDeb = false
  1436. end
  1437. end
  1438.  
  1439. function attackfour()
  1440. attack=true
  1441. if TrailDeb == false then
  1442. TrailDeb = true
  1443. end
  1444.  
  1445.  
  1446. coroutine.wrap(function()
  1447. local Old = Handle2.CFrame.p
  1448. while wait()do
  1449. if not TrailDeb then break end
  1450. local New = Handle2.CFrame.p
  1451. local Mag =(Old -New).magnitude
  1452. local Dis =(Old +New)/2
  1453. local Trail = Instance.new("Part",Character)
  1454. Trail.Material = "Neon"
  1455. Trail.Anchored = true
  1456. Trail.CanCollide = false
  1457. Trail.BrickColor = "Lime green"
  1458. Trail.Size = Vector3.new(0.2,Mag,0.2)
  1459. Trail.TopSurface = 0
  1460. Trail.BottomSurface = 0
  1461. Trail.formFactor = "Custom"
  1462. Trail.CFrame = CFrame.new(Dis,New)* CFrame.Angles(math.pi/2,0,0)
  1463. local ms = Instance.new("BlockMesh",Trail)
  1464. ms.Scale = Vector3.new(1,1,1)
  1465. local TM = Instance.new("CylinderMesh",Trail)
  1466. TM.Scale = Vector3.new(1,1,1)
  1467. Old = New
  1468. coroutine.wrap(function()
  1469. for i = 1,0,-0.1 do
  1470. wait()
  1471. TM.Scale = TM.Scale * Vector3.new(i,1,i)
  1472. end
  1473. Trail:remove()
  1474. end)()
  1475. coroutine.wrap(function()
  1476. for i = 1,10 do
  1477. wait()
  1478. Trail.Transparency = Trail.Transparency +0.1
  1479. end end)()end end)()
  1480. coroutine.wrap(function()
  1481. local Old = Handle.CFrame.p
  1482. while wait()do
  1483. if not TrailDeb then break end
  1484. local New = Handle.CFrame.p
  1485. local Mag =(Old -New).magnitude
  1486. local Dis =(Old +New)/2
  1487. local Trail = Instance.new("Part",Character)
  1488. Trail.Material = "Neon"
  1489. Trail.Anchored = true
  1490. Trail.CanCollide = false
  1491. Trail.BrickColor = "Lime green"
  1492. Trail.Size = Vector3.new(0.2,Mag,0.2)
  1493. Trail.TopSurface = 0
  1494. Trail.BottomSurface = 0
  1495. Trail.formFactor = "Custom"
  1496. Trail.CFrame = CFrame.new(Dis,New)* CFrame.Angles(math.pi/2,0,0)
  1497. local ms = Instance.new("BlockMesh",Trail)
  1498. ms.Scale = Vector3.new(1,1,1)
  1499. local TM = Instance.new("CylinderMesh",Trail)
  1500. TM.Scale = Vector3.new(1,1,1)
  1501. Old = New
  1502. coroutine.wrap(function()
  1503. for i = 1,0,-0.1 do
  1504. wait()
  1505. TM.Scale = TM.Scale * Vector3.new(i,1,i)
  1506. end
  1507. Trail:remove()
  1508. end)()
  1509. coroutine.wrap(function()
  1510. for i = 1,10 do
  1511. wait()
  1512. Trail.Transparency = Trail.Transparency +0.1
  1513. end end)()end end)()
  1514. con1=Gear2.Touched:connect(function(hit) Damagefunc(hit,10,20,math.random(20,40),"Normal",RootPart,.2,1) end)
  1515. con2=Gear.Touched:connect(function(hit) Damagefunc(hit,10,20,math.random(20,40),"Normal",RootPart,.2,1) end)
  1516. for i=0,1,0.08 do
  1517. swait()
  1518. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-1)*angles(math.rad(40),math.rad(0),math.rad(-40)),.3)
  1519. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  1520. Handleweld.C0=clerp(Handleweld.C0,cf(1.5,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  1521. Handle2weld.C0=clerp(Handle2weld.C0,cf(-1.5,3,0)*angles(math.rad(0),math.rad(180),math.rad(180)),.2)
  1522. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-40),math.rad(0),math.rad(40)),.3)
  1523. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(70),math.rad(0),math.rad(-45)),.3)
  1524. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0,1.57,0)*angles(math.rad(0),math.rad(0),math.rad(-20)),.3)
  1525. LH.C0=clerp(LH.C0,cf(-1,0.5,0)*euler(0,-1.57,0)*angles(math.rad(-10),math.rad(30),math.rad(-40)),.3)
  1526. end
  1527. if anim then
  1528. anim.Disabled=true
  1529. end
  1530. so("http://www.roblox.com/asset/?id=231917758",Torso,1,0.7)
  1531. so("http://www.roblox.com/asset/?id=159882584",Torso,1,1)
  1532. for i=0,1,0.04 do
  1533. swait()
  1534. Torso.Velocity=RootPart.CFrame.lookVector*50
  1535. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1)*angles(math.rad(-5),math.rad(0),math.rad(0+360*i)),.3)
  1536. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  1537. Handleweld.C0=clerp(Handleweld.C0,cf(3,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  1538. Handle2weld.C0=clerp(Handle2weld.C0,cf(-3,0,0)*angles(math.rad(0),math.rad(180),math.rad(180)),.2)
  1539. RW.C0=clerp(RW.C0,cf(1.2,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(90)),.3)
  1540. LW.C0=clerp(LW.C0,cf(-1.2,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(-90)),.3)
  1541. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0,1.57,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  1542. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(0,-1.57,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  1543. end
  1544. --dmgstop()
  1545. attack=false
  1546. con1:disconnect()
  1547. con2:disconnect()
  1548. if anim then
  1549. anim.Disabled=false
  1550. end
  1551. if TrailDeb == true then
  1552. TrailDeb = false
  1553. end
  1554. end
  1555.  
  1556. function BlastEffect(brickcolor, cframe, x1, y1, z1, x2, y2, z2)
  1557. local prt = part(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
  1558. prt.Anchored = true
  1559. prt.CFrame = cframe
  1560. local msh = mesh("SpecialMesh", prt, "FileMesh", "http://www.roblox.com/asset/?id=20329976", vt(0, 0, 0), vt(x1, y1, z1))
  1561. coroutine.resume(coroutine.create(function()
  1562. for i = 0, 1, 0.05 do
  1563. wait()
  1564. prt.Transparency = i
  1565. msh.Scale = msh.Scale + vt(x2, y2, z2)
  1566. end
  1567. prt.Parent = nil
  1568. end))
  1569. end
  1570.  
  1571. function MagniDamage(Hit, Part, magni, mindam, maxdam, knock, Type)
  1572. for _, c in pairs(workspace:children()) do
  1573. local hum = c:findFirstChild("Humanoid")
  1574. if hum ~= nil then
  1575. local head = c:findFirstChild("Torso")
  1576. if head ~= nil then
  1577. local targ = head.Position - Part.Position
  1578. local mag = targ.magnitude
  1579. if mag <= magni and c.Name ~= Player.Name then
  1580. Damagefunc(Hit, head, mindam, maxdam, knock, Type, RootPart, .2, 1, 3)
  1581. end
  1582. end
  1583. end
  1584. end
  1585. end
  1586.  
  1587. function MagicCircle(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  1588. local prt = part(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
  1589. prt.Anchored = true
  1590. prt.CFrame = cframe
  1591. local msh = mesh("SpecialMesh", prt, "Sphere", "", vt(0, 0, 0), vt(x1, y1, z1))
  1592. game:GetService("Debris"):AddItem(prt, 2)
  1593. coroutine.resume(coroutine.create(function(Part, Mesh)
  1594. for i = 0, 1, delay do
  1595. swait()
  1596. Part.CFrame = Part.CFrame
  1597. Part.Transparency = i
  1598. Mesh.Scale = Mesh.Scale + vt(x3, y3, z3)
  1599. end
  1600. Part.Parent = nil
  1601. end), prt, msh)
  1602. end
  1603.  
  1604. function MagicJump()
  1605. if Anim == "Idle" or Anim == "Walk" or Anim == "Run" then
  1606. attack=true
  1607. mana=mana-25
  1608. --[[ Humanoid.WalkSpeed = 0
  1609. for i=0,1,0.01 do
  1610. swait()
  1611. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-1.2)*angles(math.rad(45),math.rad(0),math.rad(45)),.1)
  1612. Neck.C0=clerp(Neck.C0,necko*angles(math.rad(-15),math.rad(15),math.rad(-45)),.1)
  1613. Neck.C1=clerp(Neck.C1,necko2*euler(0,0,0),.1)
  1614. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(60),math.rad(0),math.rad(45)),.1)
  1615. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-15),math.rad(15),math.rad(-30)),.1)
  1616. RH.C0=clerp(RH.C0,cf(0.5,-1.25,0.75)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(15),math.rad(-60),math.rad(-15)),.1)
  1617. LH.C0=clerp(LH.C0,cf(-1,0.1,-0.8)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(40),math.rad(0),math.rad(-30)),.1)
  1618. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(45)),.1)
  1619. Handleweld.C0=clerp(Handleweld.C0,cf(0,0,-6)*angles(math.rad(-15),math.rad(-60),math.rad(45)),.1)
  1620. Handle2weld.C0=clerp(Handle2weld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(60),math.rad(45)),.1)
  1621. end]]--
  1622. Humanoid.Jump = true
  1623. Torso.Velocity = vt(0, 150, 0)
  1624. Humanoid.WalkSpeed = 64
  1625. so("http://www.roblox.com/asset/?id=199145497",Torso,1,0.8)
  1626. so("http://www.roblox.com/asset/?id=199145497",Torso,1,0.8)
  1627. for i=0,1,0.05 do
  1628. swait()
  1629. Neck.C0=clerp(Neck.C0,necko*euler(0.5,0,0),.3)
  1630. Neck.C1=clerp(Neck.C1,necko2*euler(0,0,0),.3)
  1631. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*euler(0+8*i,0,0),.3)
  1632. LW.C0=clerp(LW.C0,cf(-1,0.5,-1)*euler(-30,0,20),.3)
  1633. RW.C0=clerp(RW.C0,cf(1,0.5,-1)*euler(-30,0,-20),.3)
  1634. RH.C0=clerp(RH.C0,cf(1,0,-1)*euler(-0.5,1.57,0)*euler(0,0,0),.2)
  1635. LH.C0=clerp(LH.C0,cf(-1,0,-1)*euler(-0.5,-1.57,0)*euler(0,0,0),.2)
  1636. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(20),math.rad(0),math.rad(0)),.2)
  1637. Handleweld.C0=clerp(Handleweld.C0,cf(0,-5,0)*angles(math.rad(60),math.rad(60),math.rad(0)),.2)
  1638. Handle2weld.C0=clerp(Handle2weld.C0,cf(0,-5,0)*angles(math.rad(60),math.rad(-60),math.rad(0)),.2)
  1639. end
  1640. for i=0,1,0.02 do
  1641. swait()
  1642. Neck.C0=clerp(Neck.C0,necko*euler(0.3,0,0),.3)
  1643. Neck.C1=clerp(Neck.C1,necko2*euler(0,0,0),.3)
  1644. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*euler(0,0,0),.3)
  1645. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(0.1,0,1),.3)
  1646. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1647. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(0.1,0,-1),.3)
  1648. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1649. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0.6,1.57,0)*euler(0,0,0),.2)
  1650. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(-0.8,-1.57,0)*euler(0,0,0),.2)
  1651. handleweld.C0=clerp(handleweld.C0,cf(0,0,-1)*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  1652. Handleweld.C0=clerp(Handleweld.C0,cf(0,-1,0)*angles(math.rad(-20),math.rad(-10),math.rad(0)),.2)
  1653. Handle2weld.C0=clerp(Handle2weld.C0,cf(0,-1,0)*angles(math.rad(-20),math.rad(10),math.rad(0)),.2)
  1654. end
  1655. Humanoid.WalkSpeed = 0
  1656. swait(8)
  1657. so("http://www.roblox.com/asset/?id=199145477",Torso,1,1)
  1658. so("http://www.roblox.com/asset/?id=199145477",Torso,1,1)
  1659. local hit,pos=rayCast(Torso.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,100,Character)
  1660. if hit~=nil then
  1661. swait(2)
  1662. local ref=part(3,workspace,"SmoothPlastic",0,1,BrickColor.new("Really black"),"Effect",vt())
  1663. ref.Anchored=true
  1664. ref.CFrame=cf(pos)
  1665. game:GetService("Debris"):AddItem(ref,3)
  1666. for i=1,10 do
  1667. local Col=BrickColor.new("Really black")
  1668. local groundpart=part(3,Character,"SmoothPlastic",0,0,Col,"Ground",vt(math.random(50,200)/100,math.random(50,200)/100,math.random(50,200)/100))
  1669. groundpart.Anchored=true
  1670. groundpart.CanCollide=false
  1671. 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))
  1672. local Col2="Lime green"
  1673. local groundpart2=part(3,Character,"SmoothPlastic",0,0,Col2,"Ground",vt(math.random(50,200)/100,math.random(50,200)/100,math.random(50,200)/100))
  1674. groundpart2.Anchored=true
  1675. groundpart2.CanCollide=false
  1676. groundpart2.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))
  1677. game:GetService("Debris"):AddItem(groundpart,5)
  1678. game:GetService("Debris"):AddItem(groundpart2,5)
  1679. end
  1680. BlastEffect("Lime green",cf(pos),1,1,1,1.4,1.4,1.4)
  1681. BlastEffect(BrickColor.new("Really black"),cf(pos),.9,.9,.9,1.2,1.2,1.2)
  1682. MagicCircle(BrickColor.new("Really black"),cf(pos),5,5,5,5,5,5,0.05)
  1683. MagicCircle("Lime green",cf(pos),6,6,6,6,6,6,0.05)
  1684. for i=0,1,0.06 do
  1685. swait()
  1686. Neck.C0=clerp(Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.3)
  1687. Neck.C1=clerp(Neck.C1,necko2*euler(0,0,0),.3)
  1688. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.5)*angles(math.rad(50),math.rad(0),math.rad(0)),.3)
  1689. RW.C0=clerp(RW.C0,cf(1, 0.3, -.7)*angles(math.rad(50),math.rad(0),math.rad(-30)),.3)
  1690. LW.C0=clerp(LW.C0,cf(-1, 0.3, -.7)*angles(math.rad(50),math.rad(0),math.rad(30)),.3)
  1691. RH.C0=clerp(RH.C0,cf(1, -.5, -.5)*angles(math.rad(50),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(0),math.rad(0)),.3)
  1692. LH.C0=clerp(LH.C0,cf(-1, -1, -.5)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(0),math.rad(0)),.3)
  1693. handleweld.C0=clerp(handleweld.C0,cf(0,0,-1)*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  1694. Handleweld.C0=clerp(Handleweld.C0,cf(0,-1,0)*angles(math.rad(-20),math.rad(-10),math.rad(0)),.2)
  1695. Handle2weld.C0=clerp(Handle2weld.C0,cf(0,-1,0)*angles(math.rad(-20),math.rad(10),math.rad(0)),.2)
  1696. end
  1697. end
  1698. swait(20)
  1699. Humanoid.WalkSpeed = 12
  1700. --dmgstop()
  1701. attack=false
  1702. end
  1703. end
  1704.  
  1705. function Spin()
  1706. attack=true
  1707. mana=mana-40
  1708. if TrailDeb == false then
  1709. TrailDeb = true
  1710. end
  1711.  
  1712. coroutine.wrap(function()
  1713. local Old = Handle2.CFrame.p
  1714. while wait()do
  1715. if not TrailDeb then break end
  1716. local New = Handle2.CFrame.p
  1717. local Mag =(Old -New).magnitude
  1718. local Dis =(Old +New)/2
  1719. local Trail = Instance.new("Part",Character)
  1720. Trail.Material = "Neon"
  1721. Trail.Anchored = true
  1722. Trail.CanCollide = false
  1723. Trail.BrickColor = "Lime green"
  1724. Trail.Size = Vector3.new(0.2,Mag,0.2)
  1725. Trail.TopSurface = 0
  1726. Trail.BottomSurface = 0
  1727. Trail.formFactor = "Custom"
  1728. Trail.CFrame = CFrame.new(Dis,New)* CFrame.Angles(math.pi/2,0,0)
  1729. local ms = Instance.new("BlockMesh",Trail)
  1730. ms.Scale = Vector3.new(1,1,1)
  1731. local TM = Instance.new("CylinderMesh",Trail)
  1732. TM.Scale = Vector3.new(1,1,1)
  1733. Old = New
  1734. coroutine.wrap(function()
  1735. for i = 1,0,-0.1 do
  1736. wait()
  1737. TM.Scale = TM.Scale * Vector3.new(i,1,i)
  1738. end
  1739. Trail:remove()
  1740. end)()
  1741. coroutine.wrap(function()
  1742. for i = 1,10 do
  1743. wait()
  1744. Trail.Transparency = Trail.Transparency +0.1
  1745. end end)()end end)()
  1746. coroutine.wrap(function()
  1747. local Old = Handle.CFrame.p
  1748. while wait()do
  1749. if not TrailDeb then break end
  1750. local New = Handle.CFrame.p
  1751. local Mag =(Old -New).magnitude
  1752. local Dis =(Old +New)/2
  1753. local Trail = Instance.new("Part",Character)
  1754. Trail.Material = "Neon"
  1755. Trail.Anchored = true
  1756. Trail.CanCollide = false
  1757. Trail.BrickColor = "Lime green"
  1758. Trail.Size = Vector3.new(0.2,Mag,0.2)
  1759. Trail.TopSurface = 0
  1760. Trail.BottomSurface = 0
  1761. Trail.formFactor = "Custom"
  1762. Trail.CFrame = CFrame.new(Dis,New)* CFrame.Angles(math.pi/2,0,0)
  1763. local ms = Instance.new("BlockMesh",Trail)
  1764. ms.Scale = Vector3.new(1,1,1)
  1765. local TM = Instance.new("CylinderMesh",Trail)
  1766. TM.Scale = Vector3.new(1,1,1)
  1767. Old = New
  1768. coroutine.wrap(function()
  1769. for i = 1,0,-0.1 do
  1770. wait()
  1771. TM.Scale = TM.Scale * Vector3.new(i,1,i)
  1772. end
  1773. Trail:remove()
  1774. end)()
  1775. coroutine.wrap(function()
  1776. for i = 1,10 do
  1777. wait()
  1778. Trail.Transparency = Trail.Transparency +0.1
  1779. end end)()end end)()
  1780. Footsteps:Stop()
  1781. Footsteps2:Stop()
  1782. con1=Gear2.Touched:connect(function(hit) Damagefunc(hit,20,30,math.random(20,40),"Normal",RootPart,.2,1) end)
  1783. con2=Gear.Touched:connect(function(hit) Damagefunc(hit,20,30,math.random(20,40),"Normal",RootPart,.2,1) end)
  1784. so("http://www.roblox.com/asset/?id=159882497",Torso,1,1)
  1785. for i=0,1,0.1 do
  1786. swait()
  1787. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,10)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  1788. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  1789. Handleweld.C0=clerp(Handleweld.C0,cf(5,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  1790. Handle2weld.C0=clerp(Handle2weld.C0,cf(-5,0,0)*angles(math.rad(0),math.rad(180),math.rad(180)),.2)
  1791. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(90)),.3)
  1792. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(-90)),.3)
  1793. end
  1794. if anim then
  1795. anim.Disabled=true
  1796. end
  1797. so("http://www.roblox.com/asset/?id=231917758",LeftArm,1,1.2)
  1798. so("http://www.roblox.com/asset/?id=231917758",RightArm,1,1)
  1799. for i=0,1,0.05 do
  1800. swait()
  1801. Torso.Velocity=RootPart.CFrame.lookVector*100
  1802. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,10)*angles(math.rad(0),math.rad(90),math.rad(0+360*i)),.3)
  1803. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  1804. Handleweld.C0=clerp(Handleweld.C0,cf(5,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  1805. Handle2weld.C0=clerp(Handle2weld.C0,cf(-5,0,0)*angles(math.rad(0),math.rad(180),math.rad(180)),.2)
  1806. RW.C0=clerp(RW.C0,cf(1,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(90)),.3)
  1807. LW.C0=clerp(LW.C0,cf(-1,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(-90)),.3)
  1808. end
  1809. so("http://www.roblox.com/asset/?id=231917758",LeftArm,1,1.2)
  1810. so("http://www.roblox.com/asset/?id=231917758",RightArm,1,1)
  1811. for i=0,1,0.05 do
  1812. swait()
  1813. Torso.Velocity=RootPart.CFrame.lookVector*100
  1814. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,10)*angles(math.rad(0),math.rad(90),math.rad(0+360*i)),.3)
  1815. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  1816. Handleweld.C0=clerp(Handleweld.C0,cf(5,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  1817. Handle2weld.C0=clerp(Handle2weld.C0,cf(-5,0,0)*angles(math.rad(0),math.rad(180),math.rad(180)),.2)
  1818. RW.C0=clerp(RW.C0,cf(1,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(90)),.3)
  1819. LW.C0=clerp(LW.C0,cf(-1,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(-90)),.3)
  1820. end
  1821. so("http://www.roblox.com/asset/?id=231917758",LeftArm,1,1.2)
  1822. so("http://www.roblox.com/asset/?id=231917758",RightArm,1,1)
  1823. for i=0,1,0.05 do
  1824. swait()
  1825. Torso.Velocity=RootPart.CFrame.lookVector*100
  1826. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,10)*angles(math.rad(0),math.rad(90),math.rad(0+360*i)),.3)
  1827. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  1828. Handleweld.C0=clerp(Handleweld.C0,cf(5,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  1829. Handle2weld.C0=clerp(Handle2weld.C0,cf(-5,0,0)*angles(math.rad(0),math.rad(180),math.rad(180)),.2)
  1830. RW.C0=clerp(RW.C0,cf(1,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(90)),.3)
  1831. LW.C0=clerp(LW.C0,cf(-1,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(-90)),.3)
  1832. end
  1833. --dmgstop()
  1834. Humanoid.WalkSpeed=12
  1835. attack=false
  1836. con1:disconnect()
  1837. con2:disconnect()
  1838. if anim then
  1839. anim.Disabled=false
  1840. end
  1841. if TrailDeb == true then
  1842. TrailDeb = false
  1843. end
  1844. end
  1845.  
  1846. function Twirl()
  1847. mana=mana-50
  1848. attack=true
  1849. if TrailDeb == false then
  1850. TrailDeb = true
  1851. end
  1852.  
  1853.  
  1854. coroutine.wrap(function()
  1855. local Old = Handle2.CFrame.p
  1856. while wait()do
  1857. if not TrailDeb then break end
  1858. local New = Handle2.CFrame.p
  1859. local Mag =(Old -New).magnitude
  1860. local Dis =(Old +New)/2
  1861. local Trail = Instance.new("Part",Character)
  1862. Trail.Material = "Neon"
  1863. Trail.Anchored = true
  1864. Trail.CanCollide = false
  1865. Trail.BrickColor = "Lime green"
  1866. Trail.Size = Vector3.new(0.2,Mag,0.2)
  1867. Trail.TopSurface = 0
  1868. Trail.BottomSurface = 0
  1869. Trail.formFactor = "Custom"
  1870. Trail.CFrame = CFrame.new(Dis,New)* CFrame.Angles(math.pi/2,0,0)
  1871. local ms = Instance.new("BlockMesh",Trail)
  1872. ms.Scale = Vector3.new(1,1,1)
  1873. local TM = Instance.new("CylinderMesh",Trail)
  1874. TM.Scale = Vector3.new(1,1,1)
  1875. Old = New
  1876. coroutine.wrap(function()
  1877. for i = 1,0,-0.1 do
  1878. wait()
  1879. TM.Scale = TM.Scale * Vector3.new(i,1,i)
  1880. end
  1881. Trail:remove()
  1882. end)()
  1883. coroutine.wrap(function()
  1884. for i = 1,10 do
  1885. wait()
  1886. Trail.Transparency = Trail.Transparency +0.1
  1887. end end)()end end)()
  1888. coroutine.wrap(function()
  1889. local Old = Handle.CFrame.p
  1890. while wait()do
  1891. if not TrailDeb then break end
  1892. local New = Handle.CFrame.p
  1893. local Mag =(Old -New).magnitude
  1894. local Dis =(Old +New)/2
  1895. local Trail = Instance.new("Part",Character)
  1896. Trail.Material = "Neon"
  1897. Trail.Anchored = true
  1898. Trail.CanCollide = false
  1899. Trail.BrickColor = "Lime green"
  1900. Trail.Size = Vector3.new(0.2,Mag,0.2)
  1901. Trail.TopSurface = 0
  1902. Trail.BottomSurface = 0
  1903. Trail.formFactor = "Custom"
  1904. Trail.CFrame = CFrame.new(Dis,New)* CFrame.Angles(math.pi/2,0,0)
  1905. local ms = Instance.new("BlockMesh",Trail)
  1906. ms.Scale = Vector3.new(1,1,1)
  1907. local TM = Instance.new("CylinderMesh",Trail)
  1908. TM.Scale = Vector3.new(1,1,1)
  1909. Old = New
  1910. coroutine.wrap(function()
  1911. for i = 1,0,-0.1 do
  1912. wait()
  1913. TM.Scale = TM.Scale * Vector3.new(i,1,i)
  1914. end
  1915. Trail:remove()
  1916. end)()
  1917. coroutine.wrap(function()
  1918. for i = 1,10 do
  1919. wait()
  1920. Trail.Transparency = Trail.Transparency +0.1
  1921. end end)()end end)()
  1922. Footsteps:Stop()
  1923. Footsteps2:Stop()
  1924. con1=Gear2.Touched:connect(function(hit) Damagefunc(hit,20,30,math.random(20,40),"Normal",RootPart,.2,1) end)
  1925. con2=Gear.Touched:connect(function(hit) Damagefunc(hit,20,30,math.random(20,40),"Normal",RootPart,.2,1) end)
  1926. so("http://www.roblox.com/asset/?id=159882598",Torso,1,1)
  1927. for i=0,1,0.1 do
  1928. swait()
  1929. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,10)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  1930. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  1931. Handleweld.C0=clerp(Handleweld.C0,cf(5,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  1932. Handle2weld.C0=clerp(Handle2weld.C0,cf(-5,0,0)*angles(math.rad(0),math.rad(180),math.rad(180)),.2)
  1933. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(90)),.3)
  1934. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(-90)),.3)
  1935. end
  1936. if anim then
  1937. anim.Disabled=true
  1938. end
  1939. so("http://www.roblox.com/asset/?id=231917758",LeftArm,1,1)
  1940. so("http://www.roblox.com/asset/?id=231917758",RightArm,1,0.8)
  1941. for i=0,1,0.05 do
  1942. swait()
  1943. Torso.Velocity=RootPart.CFrame.lookVector*80
  1944. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,10)*angles(math.rad(90),math.rad(0),math.rad(0+360*i)),.3)
  1945. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  1946. Handleweld.C0=clerp(Handleweld.C0,cf(5,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  1947. Handle2weld.C0=clerp(Handle2weld.C0,cf(-5,0,0)*angles(math.rad(0),math.rad(180),math.rad(180)),.2)
  1948. RW.C0=clerp(RW.C0,cf(1,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(90)),.3)
  1949. LW.C0=clerp(LW.C0,cf(-1,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(-90)),.3)
  1950. end
  1951. so("http://www.roblox.com/asset/?id=231917758",LeftArm,1,1)
  1952. so("http://www.roblox.com/asset/?id=231917758",RightArm,1,0.8)
  1953. for i=0,1,0.05 do
  1954. swait()
  1955. Torso.Velocity=RootPart.CFrame.lookVector*80
  1956. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,10)*angles(math.rad(90),math.rad(0),math.rad(0+360*i)),.3)
  1957. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  1958. Handleweld.C0=clerp(Handleweld.C0,cf(5,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  1959. Handle2weld.C0=clerp(Handle2weld.C0,cf(-5,0,0)*angles(math.rad(0),math.rad(180),math.rad(180)),.2)
  1960. RW.C0=clerp(RW.C0,cf(1,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(90)),.3)
  1961. LW.C0=clerp(LW.C0,cf(-1,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(-90)),.3)
  1962. end
  1963. so("http://www.roblox.com/asset/?id=231917758",LeftArm,1,1)
  1964. so("http://www.roblox.com/asset/?id=231917758",RightArm,1,0.8)
  1965. for i=0,1,0.05 do
  1966. swait()
  1967. Torso.Velocity=RootPart.CFrame.lookVector*80
  1968. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,10)*angles(math.rad(90),math.rad(0),math.rad(0+360*i)),.3)
  1969. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  1970. Handleweld.C0=clerp(Handleweld.C0,cf(5,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  1971. Handle2weld.C0=clerp(Handle2weld.C0,cf(-5,0,0)*angles(math.rad(0),math.rad(180),math.rad(180)),.2)
  1972. RW.C0=clerp(RW.C0,cf(1,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(90)),.3)
  1973. LW.C0=clerp(LW.C0,cf(-1,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(-90)),.3)
  1974. end
  1975. so("http://www.roblox.com/asset/?id=231917758",LeftArm,1,1)
  1976. so("http://www.roblox.com/asset/?id=231917758",RightArm,1,0.8)
  1977. for i=0,1,0.05 do
  1978. swait()
  1979. Torso.Velocity=RootPart.CFrame.lookVector*80
  1980. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,10)*angles(math.rad(90),math.rad(0),math.rad(0+360*i)),.3)
  1981. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  1982. Handleweld.C0=clerp(Handleweld.C0,cf(5,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  1983. Handle2weld.C0=clerp(Handle2weld.C0,cf(-5,0,0)*angles(math.rad(0),math.rad(180),math.rad(180)),.2)
  1984. RW.C0=clerp(RW.C0,cf(1,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(90)),.3)
  1985. LW.C0=clerp(LW.C0,cf(-1,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(-90)),.3)
  1986. end
  1987. --dmgstop()
  1988. Humanoid.WalkSpeed=12
  1989. attack=false
  1990. con1:disconnect()
  1991. con2:disconnect()
  1992. if anim then
  1993. anim.Disabled=false
  1994. end
  1995. if TrailDeb == true then
  1996. TrailDeb = false
  1997. end
  1998. end
  1999.  
  2000. function Shred()
  2001. attack=true
  2002. mana=mana-100
  2003. if TrailDeb == false then
  2004. TrailDeb = true
  2005. end
  2006.  
  2007.  
  2008. coroutine.wrap(function()
  2009. local Old = Handle2.CFrame.p
  2010. while wait()do
  2011. if not TrailDeb then break end
  2012. local New = Handle2.CFrame.p
  2013. local Mag =(Old -New).magnitude
  2014. local Dis =(Old +New)/2
  2015. local Trail = Instance.new("Part",Character)
  2016. Trail.Material = "Neon"
  2017. Trail.Anchored = true
  2018. Trail.CanCollide = false
  2019. Trail.BrickColor = "Lime green"
  2020. Trail.Size = Vector3.new(0.2,Mag,0.2)
  2021. Trail.TopSurface = 0
  2022. Trail.BottomSurface = 0
  2023. Trail.formFactor = "Custom"
  2024. Trail.CFrame = CFrame.new(Dis,New)* CFrame.Angles(math.pi/2,0,0)
  2025. local ms = Instance.new("BlockMesh",Trail)
  2026. ms.Scale = Vector3.new(1,1,1)
  2027. local TM = Instance.new("CylinderMesh",Trail)
  2028. TM.Scale = Vector3.new(1,1,1)
  2029. Old = New
  2030. coroutine.wrap(function()
  2031. for i = 1,0,-0.1 do
  2032. wait()
  2033. TM.Scale = TM.Scale * Vector3.new(i,1,i)
  2034. end
  2035. Trail:remove()
  2036. end)()
  2037. coroutine.wrap(function()
  2038. for i = 1,10 do
  2039. wait()
  2040. Trail.Transparency = Trail.Transparency +0.1
  2041. end end)()end end)()
  2042. coroutine.wrap(function()
  2043. local Old = Handle.CFrame.p
  2044. while wait()do
  2045. if not TrailDeb then break end
  2046. local New = Handle.CFrame.p
  2047. local Mag =(Old -New).magnitude
  2048. local Dis =(Old +New)/2
  2049. local Trail = Instance.new("Part",Character)
  2050. Trail.Material = "Neon"
  2051. Trail.Anchored = true
  2052. Trail.CanCollide = false
  2053. Trail.BrickColor = "Lime green"
  2054. Trail.Size = Vector3.new(0.2,Mag,0.2)
  2055. Trail.TopSurface = 0
  2056. Trail.BottomSurface = 0
  2057. Trail.formFactor = "Custom"
  2058. Trail.CFrame = CFrame.new(Dis,New)* CFrame.Angles(math.pi/2,0,0)
  2059. local ms = Instance.new("BlockMesh",Trail)
  2060. ms.Scale = Vector3.new(1,1,1)
  2061. local TM = Instance.new("CylinderMesh",Trail)
  2062. TM.Scale = Vector3.new(1,1,1)
  2063. Old = New
  2064. coroutine.wrap(function()
  2065. for i = 1,0,-0.1 do
  2066. wait()
  2067. TM.Scale = TM.Scale * Vector3.new(i,1,i)
  2068. end
  2069. Trail:remove()
  2070. end)()
  2071. coroutine.wrap(function()
  2072. for i = 1,10 do
  2073. wait()
  2074. Trail.Transparency = Trail.Transparency +0.1
  2075. end end)()end end)()
  2076. Footsteps:Stop()
  2077. Footsteps2:Stop()
  2078. con1=Gear2.Touched:connect(function(hit) Damagefunc(hit,30,40,math.random(20,40),"Normal",RootPart,.2,1) end)
  2079. con2=Gear.Touched:connect(function(hit) Damagefunc(hit,30,40,math.random(20,40),"Normal",RootPart,.2,1) end)
  2080. so("http://www.roblox.com/asset/?id=159882578",Torso,1,1)
  2081. for i=0,1,0.1 do
  2082. swait()
  2083. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,3)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  2084. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  2085. Handleweld.C0=clerp(Handleweld.C0,cf(5,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  2086. Handle2weld.C0=clerp(Handle2weld.C0,cf(-5,0,0)*angles(math.rad(0),math.rad(180),math.rad(180)),.2)
  2087. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(90)),.3)
  2088. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(-90)),.3)
  2089. end
  2090. if anim then
  2091. anim.Disabled=true
  2092. end
  2093. for i=0,1,0.05 do
  2094. swait()
  2095. Torso.Velocity=RootPart.CFrame.lookVector*20
  2096. so("http://www.roblox.com/asset/?id=231917758",LeftArm,0.2,1.2)
  2097. so("http://www.roblox.com/asset/?id=231917758",RightArm,0.2,1)
  2098. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,3)*angles(math.rad(0),math.rad(0),math.rad(0+40*i)),.5)
  2099. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  2100. Handleweld.C0=clerp(Handleweld.C0,cf(5,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  2101. Handle2weld.C0=clerp(Handle2weld.C0,cf(-5,0,0)*angles(math.rad(0),math.rad(180),math.rad(180)),.2)
  2102. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(90)),.3)
  2103. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(-90)),.3)
  2104. end
  2105. for i=0,1,0.05 do
  2106. swait()
  2107. Torso.Velocity=RootPart.CFrame.lookVector*40
  2108. so("http://www.roblox.com/asset/?id=231917758",LeftArm,0.2,1.2)
  2109. so("http://www.roblox.com/asset/?id=231917758",RightArm,0.2,1)
  2110. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,3)*angles(math.rad(0),math.rad(0),math.rad(41+80*i)),.5)
  2111. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  2112. Handleweld.C0=clerp(Handleweld.C0,cf(5,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  2113. Handle2weld.C0=clerp(Handle2weld.C0,cf(-5,0,0)*angles(math.rad(0),math.rad(180),math.rad(180)),.2)
  2114. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(90)),.3)
  2115. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(-90)),.3)
  2116. end
  2117. for i=0,1,0.05 do
  2118. swait()
  2119. Torso.Velocity=RootPart.CFrame.lookVector*60
  2120. so("http://www.roblox.com/asset/?id=231917758",LeftArm,0.2,1.2)
  2121. so("http://www.roblox.com/asset/?id=231917758",RightArm,0.2,1)
  2122. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,3)*angles(math.rad(0),math.rad(0),math.rad(82+120*i)),.5)
  2123. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  2124. Handleweld.C0=clerp(Handleweld.C0,cf(5,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  2125. Handle2weld.C0=clerp(Handle2weld.C0,cf(-5,0,0)*angles(math.rad(0),math.rad(180),math.rad(180)),.2)
  2126. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(90)),.3)
  2127. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(-90)),.3)
  2128. end
  2129. so("http://www.roblox.com/asset/?id=159882625",Torso,1,1)
  2130. so("http://www.roblox.com/asset/?id=231917758",Torso,1,0.1)
  2131. so("http://www.roblox.com/asset/?id=231917758",Torso,1,0.1)
  2132. so("http://www.roblox.com/asset/?id=231917758",Torso,1,0.1)
  2133. so("http://www.roblox.com/asset/?id=231917758",Torso,1,0.1)
  2134. for i=0,1,0.05 do
  2135. swait()
  2136. Torso.Velocity=RootPart.CFrame.lookVector*80
  2137. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,3)*angles(math.rad(0),math.rad(0),math.rad(124+160*i)),.5)
  2138. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  2139. Handleweld.C0=clerp(Handleweld.C0,cf(5,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  2140. Handle2weld.C0=clerp(Handle2weld.C0,cf(-5,0,0)*angles(math.rad(0),math.rad(180),math.rad(180)),.2)
  2141. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(90)),.3)
  2142. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(-90)),.3)
  2143. end
  2144. for i=0,1,0.005 do
  2145. swait()
  2146. Torso.Velocity=RootPart.CFrame.lookVector*100
  2147. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,3)*angles(math.rad(0),math.rad(0),math.rad(168+4200*i)),.5)
  2148. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  2149. Handleweld.C0=clerp(Handleweld.C0,cf(5,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  2150. Handle2weld.C0=clerp(Handle2weld.C0,cf(-5,0,0)*angles(math.rad(0),math.rad(180),math.rad(180)),.2)
  2151. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(90)),.3)
  2152. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(-90)),.3)
  2153. end
  2154. --dmgstop()
  2155. Humanoid.WalkSpeed=12
  2156. attack=false
  2157. con1:disconnect()
  2158. con2:disconnect()
  2159. if anim then
  2160. anim.Disabled=false
  2161. end
  2162. if TrailDeb == true then
  2163. TrailDeb = false
  2164. end
  2165. end
  2166.  
  2167. function Push()
  2168. attack=true
  2169. mana=mana-20
  2170. if TrailDeb == false then
  2171. TrailDeb = true
  2172. end
  2173.  
  2174.  
  2175. coroutine.wrap(function()
  2176. local Old = Handle2.CFrame.p
  2177. while wait()do
  2178. if not TrailDeb then break end
  2179. local New = Handle2.CFrame.p
  2180. local Mag =(Old -New).magnitude
  2181. local Dis =(Old +New)/2
  2182. local Trail = Instance.new("Part",Character)
  2183. Trail.Material = "Neon"
  2184. Trail.Anchored = true
  2185. Trail.CanCollide = false
  2186. Trail.BrickColor = "Lime green"
  2187. Trail.Size = Vector3.new(0.2,Mag,0.2)
  2188. Trail.TopSurface = 0
  2189. Trail.BottomSurface = 0
  2190. Trail.formFactor = "Custom"
  2191. Trail.CFrame = CFrame.new(Dis,New)* CFrame.Angles(math.pi/2,0,0)
  2192. local ms = Instance.new("BlockMesh",Trail)
  2193. ms.Scale = Vector3.new(1,1,1)
  2194. local TM = Instance.new("CylinderMesh",Trail)
  2195. TM.Scale = Vector3.new(1,1,1)
  2196. Old = New
  2197. coroutine.wrap(function()
  2198. for i = 1,0,-0.1 do
  2199. wait()
  2200. TM.Scale = TM.Scale * Vector3.new(i,1,i)
  2201. end
  2202. Trail:remove()
  2203. end)()
  2204. coroutine.wrap(function()
  2205. for i = 1,10 do
  2206. wait()
  2207. Trail.Transparency = Trail.Transparency +0.1
  2208. end end)()end end)()
  2209. coroutine.wrap(function()
  2210. local Old = Handle.CFrame.p
  2211. while wait()do
  2212. if not TrailDeb then break end
  2213. local New = Handle.CFrame.p
  2214. local Mag =(Old -New).magnitude
  2215. local Dis =(Old +New)/2
  2216. local Trail = Instance.new("Part",Character)
  2217. Trail.Material = "Neon"
  2218. Trail.Anchored = true
  2219. Trail.CanCollide = false
  2220. Trail.BrickColor = "Lime green"
  2221. Trail.Size = Vector3.new(0.2,Mag,0.2)
  2222. Trail.TopSurface = 0
  2223. Trail.BottomSurface = 0
  2224. Trail.formFactor = "Custom"
  2225. Trail.CFrame = CFrame.new(Dis,New)* CFrame.Angles(math.pi/2,0,0)
  2226. local ms = Instance.new("BlockMesh",Trail)
  2227. ms.Scale = Vector3.new(1,1,1)
  2228. local TM = Instance.new("CylinderMesh",Trail)
  2229. TM.Scale = Vector3.new(1,1,1)
  2230. Old = New
  2231. coroutine.wrap(function()
  2232. for i = 1,0,-0.1 do
  2233. wait()
  2234. TM.Scale = TM.Scale * Vector3.new(i,1,i)
  2235. end
  2236. Trail:remove()
  2237. end)()
  2238. coroutine.wrap(function()
  2239. for i = 1,10 do
  2240. wait()
  2241. Trail.Transparency = Trail.Transparency +0.1
  2242. end end)()end end)()
  2243. con1=Gear2.Touched:connect(function(hit) Damagefunc(hit,10,20,math.random(20,40),"Normal",RootPart,.2,1) end)
  2244. con2=Gear.Touched:connect(function(hit) Damagefunc(hit,10,20,math.random(20,40),"Normal",RootPart,.2,1) end)
  2245. for i=0,1,0.1 do
  2246. swait()
  2247. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  2248. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,0),.2)
  2249. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  2250. Handleweld.C0=clerp(Handleweld.C0,cf(-5,0,-10)*angles(math.rad(20),math.rad(-20),math.rad(0)),.2)
  2251. Handle2weld.C0=clerp(Handle2weld.C0,cf(5,0,-10)*angles(math.rad(20),math.rad(20),math.rad(0)),.2)
  2252. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(-20)),.3)
  2253. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(20)),.3)
  2254. end
  2255. so("http://www.roblox.com/asset/?id=231917758",Handle2,1,.8)
  2256. so("http://www.roblox.com/asset/?id=231917758",Handle,1,1)
  2257. so("http://www.roblox.com/asset/?id=159882481",Torso,1,1)
  2258. for i=0,1,0.1 do
  2259. swait()
  2260. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  2261. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,0),.2)
  2262. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  2263. Handleweld.C0=clerp(Handleweld.C0,cf(-4,0,-20)*angles(math.rad(20),math.rad(-20),math.rad(0)),.2)
  2264. Handle2weld.C0=clerp(Handle2weld.C0,cf(4,0,-20)*angles(math.rad(20),math.rad(20),math.rad(0)),.2)
  2265. RW.C0=clerp(RW.C0,cf(1,0.5,-1)*angles(math.rad(90),math.rad(0),math.rad(-20)),.3)
  2266. LW.C0=clerp(LW.C0,cf(-1,0.5,-1)*angles(math.rad(90),math.rad(0),math.rad(20)),.3)
  2267. end
  2268. --dmgstop()
  2269. attack=false
  2270. con1:disconnect()
  2271. con2:disconnect()
  2272. if TrailDeb == true then
  2273. TrailDeb = false
  2274. end
  2275. end
  2276.  
  2277. function Clap()
  2278. attack=true
  2279. mana=mana-20
  2280. if TrailDeb == false then
  2281. TrailDeb = true
  2282. end
  2283.  
  2284.  
  2285. coroutine.wrap(function()
  2286. local Old = Handle2.CFrame.p
  2287. while wait()do
  2288. if not TrailDeb then break end
  2289. local New = Handle2.CFrame.p
  2290. local Mag =(Old -New).magnitude
  2291. local Dis =(Old +New)/2
  2292. local Trail = Instance.new("Part",Character)
  2293. Trail.Material = "Neon"
  2294. Trail.Anchored = true
  2295. Trail.CanCollide = false
  2296. Trail.BrickColor = "Lime green"
  2297. Trail.Size = Vector3.new(0.2,Mag,0.2)
  2298. Trail.TopSurface = 0
  2299. Trail.BottomSurface = 0
  2300. Trail.formFactor = "Custom"
  2301. Trail.CFrame = CFrame.new(Dis,New)* CFrame.Angles(math.pi/2,0,0)
  2302. local ms = Instance.new("BlockMesh",Trail)
  2303. ms.Scale = Vector3.new(1,1,1)
  2304. local TM = Instance.new("CylinderMesh",Trail)
  2305. TM.Scale = Vector3.new(1,1,1)
  2306. Old = New
  2307. coroutine.wrap(function()
  2308. for i = 1,0,-0.1 do
  2309. wait()
  2310. TM.Scale = TM.Scale * Vector3.new(i,1,i)
  2311. end
  2312. Trail:remove()
  2313. end)()
  2314. coroutine.wrap(function()
  2315. for i = 1,10 do
  2316. wait()
  2317. Trail.Transparency = Trail.Transparency +0.1
  2318. end end)()end end)()
  2319. coroutine.wrap(function()
  2320. local Old = Handle.CFrame.p
  2321. while wait()do
  2322. if not TrailDeb then break end
  2323. local New = Handle.CFrame.p
  2324. local Mag =(Old -New).magnitude
  2325. local Dis =(Old +New)/2
  2326. local Trail = Instance.new("Part",Character)
  2327. Trail.Material = "Neon"
  2328. Trail.Anchored = true
  2329. Trail.CanCollide = false
  2330. Trail.BrickColor = "Lime green"
  2331. Trail.Size = Vector3.new(0.2,Mag,0.2)
  2332. Trail.TopSurface = 0
  2333. Trail.BottomSurface = 0
  2334. Trail.formFactor = "Custom"
  2335. Trail.CFrame = CFrame.new(Dis,New)* CFrame.Angles(math.pi/2,0,0)
  2336. local ms = Instance.new("BlockMesh",Trail)
  2337. ms.Scale = Vector3.new(1,1,1)
  2338. local TM = Instance.new("CylinderMesh",Trail)
  2339. TM.Scale = Vector3.new(1,1,1)
  2340. Old = New
  2341. coroutine.wrap(function()
  2342. for i = 1,0,-0.1 do
  2343. wait()
  2344. TM.Scale = TM.Scale * Vector3.new(i,1,i)
  2345. end
  2346. Trail:remove()
  2347. end)()
  2348. coroutine.wrap(function()
  2349. for i = 1,10 do
  2350. wait()
  2351. Trail.Transparency = Trail.Transparency +0.1
  2352. end end)()end end)()
  2353. con1=Gear2.Touched:connect(function(hit) Damagefunc(hit,20,30,math.random(20,40),"Normal",RootPart,.2,1) end)
  2354. con2=Gear.Touched:connect(function(hit) Damagefunc(hit,20,30,math.random(20,40),"Normal",RootPart,.2,1) end)
  2355. so("http://www.roblox.com/asset/?id=159882584",Torso,1,0.9)
  2356. for i=0,1,0.08 do
  2357. swait()
  2358. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  2359. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,0),.2)
  2360. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  2361. Handle2weld.C0=clerp(Handle2weld.C0,cf(-5,1,-5)*angles(math.rad(0),math.rad(-40),math.rad(20)),.2)
  2362. Handleweld.C0=clerp(Handleweld.C0,cf(5,1,-5)*angles(math.rad(0),math.rad(40),math.rad(-20)),.2)
  2363. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-30,0,-20),.3)
  2364. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-30,0,20),.3)
  2365. end
  2366. so("http://www.roblox.com/asset/?id=231917758",Handle2,1,.8)
  2367. so("http://www.roblox.com/asset/?id=231917758",Handle,1,1)
  2368. for i=0,1,0.08 do
  2369. swait()
  2370. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  2371. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,0),.2)
  2372. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  2373. Handle2weld.C0=clerp(Handle2weld.C0,cf(4,1,-5)*angles(math.rad(0),math.rad(-43),math.rad(20)),.2)
  2374. Handleweld.C0=clerp(Handleweld.C0,cf(-4,1,-5)*angles(math.rad(0),math.rad(43),math.rad(-20)),.2)
  2375. LW.C0=clerp(LW.C0,cf(-1,0.5,-1)*euler(-30,0,20),.3)
  2376. RW.C0=clerp(RW.C0,cf(1,0.5,-1)*euler(-30,0,-20),.3)
  2377. end
  2378. --dmgstop()
  2379. attack=false
  2380. con1:disconnect()
  2381. con2:disconnect()
  2382. if TrailDeb == true then
  2383. TrailDeb = false
  2384. end
  2385. end
  2386.  
  2387. function Hai()
  2388. attack=true
  2389. Humanoid.WalkSpeed=0
  2390. so("http://www.roblox.com/asset/?id=159882567",Torso,1,1)
  2391. for i=0,1,0.1 do
  2392. swait()
  2393. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  2394. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,0),.2)
  2395. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  2396. Handleweld.C0=clerp(Handleweld.C0,cf(0,5,3)*angles(math.rad(20),math.rad(-20),math.rad(20)),.2)
  2397. Handle2weld.C0=clerp(Handle2weld.C0,cf(0,0,0)*angles(math.rad(5),math.rad(0),math.rad(0)),.2)
  2398. 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)
  2399. 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)
  2400. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(170),math.rad(0),math.rad(0)),.3)
  2401. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(10),math.rad(0),math.rad(-16)),.3)
  2402. end
  2403. so("http://www.roblox.com/asset/?id=231917758",Handle,1,.8)
  2404. for i=0,1,0.1 do
  2405. swait()
  2406. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  2407. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,0),.2)
  2408. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  2409. Handleweld.C0=clerp(Handleweld.C0,cf(3,8,0)*angles(math.rad(0),math.rad(-20),math.rad(-30)),.2)
  2410. Handle2weld.C0=clerp(Handle2weld.C0,cf(0.5,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  2411. 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)
  2412. 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)
  2413. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(170),math.rad(0),math.rad(50)),.5)
  2414. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(10),math.rad(0),math.rad(-16)),.3)
  2415. end
  2416. so("http://www.roblox.com/asset/?id=231917758",Handle,1,1)
  2417. for i=0,1,0.1 do
  2418. swait()
  2419. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  2420. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,0),.2)
  2421. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  2422. Handleweld.C0=clerp(Handleweld.C0,cf(0,5,3)*angles(math.rad(20),math.rad(-20),math.rad(20)),.2)
  2423. Handle2weld.C0=clerp(Handle2weld.C0,cf(0,0,0)*angles(math.rad(5),math.rad(0),math.rad(0)),.2)
  2424. 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)
  2425. 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)
  2426. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(170),math.rad(0),math.rad(0)),.3)
  2427. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(10),math.rad(0),math.rad(-16)),.3)
  2428.  
  2429. end
  2430. so("http://www.roblox.com/asset/?id=231917758",Handle,1,.8)
  2431. for i=0,1,0.1 do
  2432. swait()
  2433. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  2434. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,0),.2)
  2435. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  2436. Handleweld.C0=clerp(Handleweld.C0,cf(3,8,0)*angles(math.rad(0),math.rad(-20),math.rad(-30)),.2)
  2437. Handle2weld.C0=clerp(Handle2weld.C0,cf(0.5,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  2438. 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)
  2439. 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)
  2440. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(170),math.rad(0),math.rad(50)),.3)
  2441. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(10),math.rad(0),math.rad(-16)),.3)
  2442. end
  2443. so("http://www.roblox.com/asset/?id=231917758",Handle,1,1)
  2444. for i=0,1,0.1 do
  2445. swait()
  2446. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  2447. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,0),.2)
  2448. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  2449. Handleweld.C0=clerp(Handleweld.C0,cf(0,5,3)*angles(math.rad(20),math.rad(-20),math.rad(20)),.2)
  2450. Handle2weld.C0=clerp(Handle2weld.C0,cf(0,0,0)*angles(math.rad(5),math.rad(0),math.rad(0)),.2)
  2451. 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)
  2452. 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)
  2453. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(170),math.rad(0),math.rad(0)),.3)
  2454. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(10),math.rad(0),math.rad(-16)),.3)
  2455. end
  2456. --dmgstop()
  2457. Humanoid.WalkSpeed=12
  2458. attack=false
  2459. end
  2460.  
  2461. function Die()
  2462. attack=true
  2463. Footsteps:Stop()
  2464. Footsteps2:Stop()
  2465. local Fire = it("Sound",Character.Torso)
  2466. Fire.SoundId = "rbxassetid://192104941"
  2467. Fire.Looped = true
  2468. Fire.Pitch = 1
  2469. Fire.Volume = 1
  2470. local Fire2 = it("Sound",Handle2)
  2471. Fire2.SoundId = "rbxassetid://192104941"
  2472. Fire2.Looped = true
  2473. Fire2.Pitch = 1
  2474. Fire2.Volume = 1
  2475. local Fire3 = it("Sound",Handle)
  2476. Fire3.SoundId = "rbxassetid://192104941"
  2477. Fire3.Looped = true
  2478. Fire3.Pitch = 1
  2479. Fire3.Volume = 1
  2480. local Fire4 = it("Sound",handle)
  2481. Fire4.SoundId = "rbxassetid://192104941"
  2482. Fire4.Looped = true
  2483. Fire4.Pitch = 1
  2484. Fire4.Volume = 1
  2485. local fire = Instance.new("ParticleEmitter", Character.Torso)
  2486. fire.Lifetime = NumberRange.new(0.5)
  2487. fire.Speed = NumberRange.new(1, 3)
  2488. fire.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, 3.564, 2.521), NumberSequenceKeypoint.new(1, 3.534, 2.521)})
  2489. fire.Rate = 0
  2490. fire.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0), NumberSequenceKeypoint.new(0.627, 0.587), NumberSequenceKeypoint.new(1, 1)})
  2491. fire.LightEmission = 0.6
  2492. fire.Texture = "http://www.roblox.com/asset/?id=242911609"
  2493. fire.Color = ColorSequence.new(Color3.new(1, 0, 0), Color3.new(1, 0.666667, 0))
  2494. local fire2 = Instance.new("ParticleEmitter", Handle)
  2495. fire2.Lifetime = NumberRange.new(0.5)
  2496. fire2.Speed = NumberRange.new(1, 3)
  2497. fire2.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, 6.564, 5.521), NumberSequenceKeypoint.new(1, 6.534, 5.521)})
  2498. fire2.Rate = 0
  2499. fire2.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0), NumberSequenceKeypoint.new(0.627, 0.587), NumberSequenceKeypoint.new(1, 1)})
  2500. fire2.LightEmission = 0.6
  2501. fire2.Texture = "http://www.roblox.com/asset/?id=242911609"
  2502. fire2.Color = ColorSequence.new(Color3.new(1, 0, 0), Color3.new(1, 0.666667, 0))
  2503. local fire3 = Instance.new("ParticleEmitter", Handle2)
  2504. fire3.Lifetime = NumberRange.new(0.5)
  2505. fire3.Speed = NumberRange.new(1, 3)
  2506. fire3.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, 6.564, 5.521), NumberSequenceKeypoint.new(1, 6.534, 5.521)})
  2507. fire3.Rate = 0
  2508. fire3.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0), NumberSequenceKeypoint.new(0.627, 0.587), NumberSequenceKeypoint.new(1, 1)})
  2509. fire3.LightEmission = 0.6
  2510. fire3.Texture = "http://www.roblox.com/asset/?id=242911609"
  2511. fire3.Color = ColorSequence.new(Color3.new(1, 0, 0), Color3.new(1, 0.666667, 0))
  2512. local fire4 = Instance.new("ParticleEmitter", handle)
  2513. fire4.Lifetime = NumberRange.new(0.5)
  2514. fire4.Speed = NumberRange.new(1, 3)
  2515. fire4.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, 3.564, 2.521), NumberSequenceKeypoint.new(1, 3.534, 2.521)})
  2516. fire4.Rate = 0
  2517. fire4.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0), NumberSequenceKeypoint.new(0.627, 0.587), NumberSequenceKeypoint.new(1, 1)})
  2518. fire4.LightEmission = 0.6
  2519. fire4.Texture = "http://www.roblox.com/asset/?id=242911609"
  2520. fire4.Color = ColorSequence.new(Color3.new(1, 0, 0), Color3.new(1, 0.666667, 0))
  2521. Humanoid.WalkSpeed = 0
  2522. so("http://www.roblox.com/asset/?id=199149297",Head,1,1)
  2523. so("http://www.roblox.com/asset/?id=209527203",Head,1,1)
  2524. for i=0,1,0.08 do
  2525. swait()
  2526. Torso.Velocity=RootPart.CFrame.lookVector*-30
  2527. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,1,0)*angles(math.rad(-45),math.rad(0),math.rad(90)),.2)
  2528. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(45)),.2)
  2529. handleweld.C0=clerp(handleweld.C0,cf(0,5,0)*angles(math.rad(45),math.rad(0),math.rad(0)),.2)
  2530. Handleweld.C0=clerp(Handleweld.C0,cf(0,5,0)*angles(math.rad(45),math.rad(0),math.rad(0)),.2)
  2531. Handle2weld.C0=clerp(Handle2weld.C0,cf(0,5,0)*angles(math.rad(45),math.rad(0),math.rad(0)),.2)
  2532. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(45)),.2)
  2533. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-45)),.2)
  2534. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-10),math.rad(0),math.rad(0)),.2)
  2535. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-10),math.rad(0),math.rad(0)),.2)
  2536. end
  2537. for i=0,1,0.005 do
  2538. swait()
  2539. moosick.Volume=1-2*i
  2540. light.Range=15-10*i
  2541. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,1,-2.5)*angles(math.rad(-90),math.rad(0),math.rad(180)),.2)
  2542. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(90)),.4)
  2543. handleweld.C0=clerp(handleweld.C0,cf(0,10,-5)*angles(math.rad(60),math.rad(30),math.rad(30)),.2)
  2544. Handleweld.C0=clerp(Handleweld.C0,cf(0,20,-5)*angles(math.rad(150),math.rad(0),math.rad(0)),.2)
  2545. Handle2weld.C0=clerp(Handle2weld.C0,cf(0,20,-5)*angles(math.rad(90),math.rad(0),math.rad(0)),.2)
  2546. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(180),math.rad(0),math.rad(90)),.2)
  2547. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.2)
  2548. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  2549. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  2550. end
  2551. light.Range=0
  2552. for i=0,1,0.01 do
  2553. swait()
  2554. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,1,-2.5)*angles(math.rad(-90),math.rad(0),math.rad(180)),.2)
  2555. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(90)),.4)
  2556. handleweld.C0=clerp(handleweld.C0,cf(0,10,-5)*angles(math.rad(60),math.rad(30),math.rad(30)),.2)
  2557. Handleweld.C0=clerp(Handleweld.C0,cf(0,20,-5)*angles(math.rad(150),math.rad(0),math.rad(0)),.2)
  2558. Handle2weld.C0=clerp(Handle2weld.C0,cf(0,20,-5)*angles(math.rad(90),math.rad(0),math.rad(0)),.2)
  2559. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(180),math.rad(0),math.rad(90)),.2)
  2560. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.2)
  2561. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  2562. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  2563. end
  2564. so("http://www.roblox.com/asset/?id=209527175",Head,1,0.9)
  2565. fire.Rate = 1000
  2566. fire2.Rate = 1000
  2567. fire3.Rate = 1000
  2568. fire4.Rate = 1000
  2569. Fire:Play()
  2570. Fire2:Play()
  2571. Fire3:Play()
  2572. Fire4:Play()
  2573. for i=0,1,0.005 do
  2574. swait()
  2575. Character.Head.face.Transparency = 0+1*i
  2576. LeftArm.Transparency=0+1*i
  2577. RightArm.Transparency=0+1*i
  2578. LeftLeg.Transparency=0+1*i
  2579. RightLeg.Transparency=0+1*i
  2580. Head.Transparency=0+1*i
  2581. Torso.Transparency=0+1*i
  2582. for _,v in pairs(Character:children()) do
  2583. if v:IsA("Hat") then
  2584. v.Handle.Transparency = 0+1*i
  2585. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,1,-2.5)*angles(math.rad(-90),math.rad(0),math.rad(180)),.2)
  2586. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(90)),.4)
  2587. handleweld.C0=clerp(handleweld.C0,cf(0,10,-5)*angles(math.rad(60),math.rad(30),math.rad(30)),.2)
  2588. Handleweld.C0=clerp(Handleweld.C0,cf(0,20,-5)*angles(math.rad(150),math.rad(0),math.rad(0)),.2)
  2589. Handle2weld.C0=clerp(Handle2weld.C0,cf(0,20,-5)*angles(math.rad(90),math.rad(0),math.rad(0)),.2)
  2590. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(180),math.rad(0),math.rad(90)),.2)
  2591. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.2)
  2592. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  2593. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  2594. end
  2595. end
  2596. --dmgstop()
  2597. end
  2598. Humanoid.Health = 0
  2599. end
  2600.  
  2601. equipanim()
  2602.  
  2603. local sine = 0
  2604. local change = 1
  2605. local val = 0
  2606.  
  2607. local mananum=0
  2608. while true do
  2609. swait()
  2610. sine = sine + change
  2611. local torvel=(RootPart.Velocity*Vector3.new(1,0,1)).magnitude
  2612. local velderp=RootPart.Velocity.y
  2613. hitfloor,posfloor=rayCast(RootPart.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,4,Character)
  2614. if equipped==true or equipped==false then
  2615. if Anim=="Idle" and attack==false then
  2616. idle=idle+1
  2617. else
  2618. idle=0
  2619. end
  2620. if Humanoid.Health <=20 then
  2621. if attack == false then
  2622. Humanoid.Health = math.huge
  2623. Die()
  2624. end
  2625. end
  2626. if idle>=1000 then
  2627. if attack==false then
  2628. --Sheath()
  2629. end
  2630. end
  2631. if RootPart.Velocity.y > 1 and hitfloor==nil then
  2632. Anim="Jump"
  2633. if attack==false then
  2634. Footsteps:Stop()
  2635. Footsteps2:Stop()
  2636. Neck.C0=clerp(Neck.C0,necko*euler(-0.2,0,0),.3)
  2637. Neck.C1=clerp(Neck.C1,necko2*euler(0,0,0),.3)
  2638. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0),.3)
  2639. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-.25,0,0.5),.3)
  2640. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  2641. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-.25,0,-0.5),.3)
  2642. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  2643. RH.C0=clerp(RH.C0,cf(1,0,-.75)*euler(-0.5,1.57,0)*euler(0,0,0),.2)
  2644. LH.C0=clerp(LH.C0,cf(-1,-1,-.3)*euler(-0.5,-1.57,0)*euler(0,0,0),.2)
  2645. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(20),math.rad(0),math.rad(0)),.2)
  2646. Handleweld.C0=clerp(Handleweld.C0,cf(0,0,0)*angles(math.rad(20),math.rad(20),math.rad(0)),.2)
  2647. Handle2weld.C0=clerp(Handle2weld.C0,cf(0,0,0)*angles(math.rad(20),math.rad(-20),math.rad(0)),.2)
  2648. end
  2649. elseif RootPart.Velocity.y < -1 and hitfloor==nil then
  2650. Anim="Fall"
  2651. if attack==false then
  2652. Footsteps:Stop()
  2653. Footsteps2:Stop()
  2654. Neck.C0=clerp(Neck.C0,necko*euler(0.3,0,0),.3)
  2655. Neck.C1=clerp(Neck.C1,necko2*euler(0,0,0),.3)
  2656. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*euler(0,0,0),.3)
  2657. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(0.1,0,1),.3)
  2658. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  2659. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(0.1,0,-1),.3)
  2660. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  2661. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0.6,1.57,0)*euler(0,0,0),.2)
  2662. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(-0.8,-1.57,0)*euler(0,0,0),.2)
  2663. handleweld.C0=clerp(handleweld.C0,cf(0,0,-1)*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  2664. Handleweld.C0=clerp(Handleweld.C0,cf(0,-1,0)*angles(math.rad(-20),math.rad(-10),math.rad(0)),.2)
  2665. Handle2weld.C0=clerp(Handle2weld.C0,cf(0,-1,0)*angles(math.rad(-20),math.rad(10),math.rad(0)),.2)
  2666. end
  2667. elseif torvel<1 and hitfloor~=nil then
  2668. Anim="Idle"
  2669. change=0.5
  2670. if idle>=1000 then
  2671. if attack==false then
  2672. Footsteps:Stop()
  2673. Footsteps2:Stop()
  2674. Humanoid.WalkSpeed=12
  2675. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,6-0.25*math.cos(sine/5))*angles(math.rad(0),math.rad(0),math.rad(50)),.1)
  2676. Neck.C0=clerp(Neck.C0,necko*angles(math.rad(5+2*math.cos(sine/5.5)),math.rad(-5-2*math.cos(sine/5.5)),math.rad(-50)),.1)
  2677. Neck.C1=clerp(Neck.C1,necko2*euler(0,0,0),.1)
  2678. RW.C0=clerp(RW.C0,cf(0.8,0.3,-0.5)*angles(math.rad(70),math.rad(0),math.rad(-85)),.5)
  2679. LW.C0=clerp(LW.C0,cf(-0.6,0.5,-0.7)*angles(math.rad(70),math.rad(0),math.rad(85)),.5)
  2680. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  2681. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  2682. handleweld.C0=clerp(handleweld.C0,cf(3.2,-1,-2)*angles(math.rad(90),math.rad(0),math.rad(60)),.3)
  2683. Handleweld.C0=clerp(Handleweld.C0,cf(-2,-1.5+1*math.cos(sine/50),6)*angles(math.rad(60),math.rad(-25),math.rad(-90)),.4)
  2684. Handle2weld.C0=clerp(Handle2weld.C0,cf(5,1.5-0.5*math.cos(sine/50),-5)*angles(math.rad(-110),math.rad(25),math.rad(60)),.3)
  2685. end
  2686. else
  2687. if attack==false then
  2688. Footsteps:Stop()
  2689. Footsteps2:Stop()
  2690. Humanoid.WalkSpeed=12
  2691. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(6),math.rad(0),math.rad(0)),.3)
  2692. Neck.C0=clerp(Neck.C0,necko*angles(math.rad(3+3*math.cos(sine/36)),math.rad(0),math.rad(0)),.3)
  2693. Neck.C1=clerp(Neck.C1,necko2*euler(0,0,0),.3)
  2694. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(10),math.rad(0),math.rad(16-6*math.cos(sine/28))),.3)
  2695. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(10),math.rad(0),math.rad(-16+6*math.cos(sine/28))),.3)
  2696. 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(16)),.3)
  2697. LH.C0=clerp(LH.C0,cf(-1,-1.1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(24)),.3)
  2698. handleweld.C0=clerp(handleweld.C0,cf(0-1*math.cos(sine/40),0-0.5*math.cos(sine/20),0)*angles(math.rad(-5+5*math.cos(sine/20)),math.rad(0),math.rad(0)),.2)
  2699. Handleweld.C0=clerp(Handleweld.C0,cf(0-1*math.cos(sine/30),0,0-1*math.cos(sine/30))*angles(math.rad(0+8*math.cos(sine/30)),math.rad(0),math.rad(0-8*math.cos(sine/30))),.2)
  2700. Handle2weld.C0=clerp(Handle2weld.C0,cf(0+1*math.cos(sine/36),0,0+1*math.cos(sine/36))*angles(math.rad(0-12*math.cos(sine/36)),math.rad(0),math.rad(0-12*math.cos(sine/36))),.2)
  2701. end
  2702. end
  2703. elseif torvel>2 and torvel<22 and hitfloor~=nil then
  2704. Anim="Walk"
  2705. if attack==false then
  2706. change=0.8
  2707. --[[RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(35),math.rad(0),math.rad(15*math.cos(sine/10))),.3)
  2708. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-30),math.rad(0),math.rad(0)),.3)
  2709. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-135*math.cos(sine/9)),math.rad(0),math.rad(0)),.3)
  2710. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(135*math.cos(sine/9)),math.rad(0),math.rad(0)),.3)
  2711. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0)),.3)
  2712. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0)),.3)
  2713. --Handleweld.C0=clerp(--Handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  2714. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,0),.2)
  2715. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0.1,0,0),.2)
  2716. --RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-0.1,0,0.2),.2)
  2717. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-5),math.rad(-25),math.rad(20)),.3)
  2718. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(5),math.rad(25),math.rad(-20)),.3)
  2719. RH.C0=clerp(RH.C0,RHC0,.3)
  2720. LH.C0=clerp(LH.C0,LHC0,.3)
  2721. Handleweld.C0=clerp(Handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  2722. Handle2weld.C0=clerp(Handle2weld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  2723. ]]--
  2724. Footsteps:Play()
  2725. Footsteps2:Stop()
  2726. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0+0.1*math.cos(sine/2.5))*angles(math.rad(10+1*math.cos(sine/2.5)),math.rad(0),math.rad(1-5*math.cos(sine/5))),.3)
  2727. Neck.C0=clerp(Neck.C0,necko*euler(0+0.075*math.cos(sine/2.5),0,0)*angles(math.rad(0),math.rad(0),math.rad(1+5*math.cos(sine/5))),.3)
  2728. Neck.C1=clerp(Neck.C1,necko2*euler(0,0,0),.3)
  2729. RW.C0=clerp(RW.C0,cf(1.4+0.25*math.cos(sine/5),0.5+0.25*math.cos(sine/5),-0.2+0.5*math.cos(sine/5))*angles(math.rad(20-60*math.cos(sine/5)),math.rad(0),math.rad(-4+30*math.cos(sine/5))),.3)
  2730. LW.C0=clerp(LW.C0,cf(-1.4+0.25*math.cos(sine/5),0.5-0.25*math.cos(sine/5),-0.2-0.5*math.cos(sine/5))*angles(math.rad(20+60*math.cos(sine/5)),math.rad(0),math.rad(4+30*math.cos(sine/5))),.3)
  2731. RH.C0=clerp(RH.C0,cf(1,-1-0.1*math.cos(sine/5),0-0.25*math.cos(sine/5))*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0+50*math.cos(sine/5))),.3)
  2732. LH.C0=clerp(LH.C0,cf(-1,-1+0.1*math.cos(sine/5),0+0.25*math.cos(sine/5))*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0+50*math.cos(sine/5))),.3)
  2733. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  2734. Handleweld.C0=clerp(Handleweld.C0,cf(0-.5*math.cos(sine/30),0,0-.5*math.cos(sine/30))*angles(math.rad(0+1*math.cos(sine/30)),math.rad(-30),math.rad(0-1*math.cos(sine/30))),.2)
  2735. Handle2weld.C0=clerp(Handle2weld.C0,cf(0+.5*math.cos(sine/36),0,0+.5*math.cos(sine/36))*angles(math.rad(0-3*math.cos(sine/36)),math.rad(30),math.rad(0-3*math.cos(sine/36))),.2)
  2736. end
  2737. elseif torvel>=22 and hitfloor~=nil then
  2738. Anim="Run"
  2739. change=1
  2740. if attack==false then
  2741. Footsteps:Stop()
  2742. Footsteps2:Play()
  2743. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0+0.1*math.cos(sine/2.5))*angles(math.rad(20+1*math.cos(sine/2.5)),math.rad(0),math.rad(0)),.3)
  2744. Neck.C0=clerp(Neck.C0,necko*euler(-0.2+0.075*math.cos(sine/2.5),0,0),.3)
  2745. Neck.C1=clerp(Neck.C1,necko2*euler(0,0,0),.3)
  2746. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-40),math.rad(0),math.rad(24)),.3)
  2747. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-40),math.rad(0),math.rad(-24)),.3)
  2748. RH.C0=clerp(RH.C0,cf(1,-1-0.1*math.cos(sine/5),0-0.5*math.cos(sine/5))*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(0+70*math.cos(sine/5))),.3)
  2749. LH.C0=clerp(LH.C0,cf(-1,-1+0.1*math.cos(sine/5),0+0.5*math.cos(sine/5))*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(0+70*math.cos(sine/5))),.3)
  2750. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  2751. Handleweld.C0=clerp(Handleweld.C0,cf(0-.5*math.cos(sine/30),0,0-.5*math.cos(sine/30))*angles(math.rad(0+1*math.cos(sine/30)),math.rad(-60),math.rad(0-1*math.cos(sine/30))),.2)
  2752. Handle2weld.C0=clerp(Handle2weld.C0,cf(0+.5*math.cos(sine/36),0,0+.5*math.cos(sine/36))*angles(math.rad(0-3*math.cos(sine/36)),math.rad(60),math.rad(0-3*math.cos(sine/36))),.2)
  2753. end
  2754. end
  2755. end
  2756. fenbarmana2:TweenSize(UDim2.new(4*mana/100,0,0.2,0),nil,1,0.4,true)
  2757. fenbarmana4.Text="[Energy] <{[ "..mana.." ]}> [Energy]"
  2758. if mana>=100 then
  2759. mana=100
  2760. else
  2761. if mananum<=8 then
  2762. mananum=mananum+1
  2763. else
  2764. mananum=0
  2765. mana=mana+1
  2766. end
  2767. end
  2768. end
  2769. -- ~CLarramore
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement