Advertisement
RealPieDiePew

Untitled

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