battleman22222

gatser sin

Jun 30th, 2017
133
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 145.68 KB | None | 0 0
  1. dot = false
  2. des = f
  3.  
  4. pls=game:GetService'Players';
  5. rs=game:GetService'RunService';
  6. uinps=game:GetService'UserInputService';
  7. lp=pls.LocalPlayer;
  8. mouse=lp:GetMouse();
  9. c=lp.Character;
  10. rayModel=Instance.new('Model',c);
  11. human=c.Humanoid;
  12. Health = c.Humanoid.Health;
  13. Cone=nil;
  14. human.MaxHealth=5000;
  15. wait();
  16. human.Health=5000;
  17. c.Health:Destroy();
  18. Debounces={
  19. FPS=0;
  20. isAttacking=false;
  21. isMoving=false;
  22. isSprinting=false;
  23. Debounce=false;
  24. isTyping=false;
  25. isJumping=false;
  26. isFlash=false;
  27. };
  28.  
  29.  
  30.  
  31.  
  32.  
  33.  
  34.  
  35.  
  36.  
  37.  
  38.  
  39.  
  40.  
  41.  
  42.  
  43.  
  44.  
  45.  
  46.  
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62. pls=game:GetService'Players';
  63. rs=game:GetService'RunService';
  64. uinps=game:GetService'UserInputService';
  65. lp=pls.LocalPlayer;
  66. mouse=lp:GetMouse();
  67. c=lp.Character;
  68. rayModel=Instance.new('Model',c);
  69. human=c.Humanoid;
  70. Cone=nil;
  71. wait();
  72. Debounces={
  73. FPS=0;
  74. isAttacking=false;
  75. isMoving=false;
  76. isSprinting=false;
  77. Debounce=false;
  78. isTyping=false;
  79. isJumping=false;
  80. isFlash=false;
  81. };
  82. numLerp=function(start,goal,alpha)
  83. return(((goal-start)*alpha)+start);
  84. end;
  85. CFrameZero=function()
  86. return CFrame.new(Vector3.new());
  87. end;
  88. local function a()
  89. local t=tick();
  90. local l=t%1*3;
  91. local t=.5*math.pi*(l%1);
  92. if l<1 then
  93. return Color3.new(1,1-math.cos(t),1-math.sin(t));
  94. elseif l<2 then
  95. return Color3.new(1-math.sin(t),1,1-math.cos(t));
  96. else
  97. return Color3.new(1-math.cos(t),1-math.sin(t),1);
  98. end;
  99. end;
  100. rad=function(value)
  101. return math.rad(value);
  102. end;
  103. CFAngles=function(Vector)
  104. return CFrame.Angles(rad(Vector.x),rad(Vector.y),rad(Vector.z));
  105. end;
  106. AnimStat={
  107. lerpSpeed=.2;
  108. lerpSpeed2=.35;
  109. lerpTween=0;
  110. };
  111. Joints={
  112. c.HumanoidRootPart.RootJoint;
  113. c.Torso.Neck;
  114. c.Torso['Left Shoulder'];
  115. c.Torso['Right Shoulder'];
  116. c.Torso['Left Hip'];
  117. c.Torso['Right Hip'];
  118. };
  119. prepareCharacter=function()
  120. music=Instance.new('Sound',c.HumanoidRootPart);
  121. music.SoundId='rbxassetid://394144904';
  122. music.Looped=true;
  123. music.Volume=.6;
  124. music2=Instance.new('Sound',c);
  125. music2.SoundId='rbxassetid://259613634';
  126. music2.Looped=true;
  127. music2.Volume=1;
  128. music3=Instance.new('Sound',c.HumanoidRootPart);
  129. music3.SoundId='rbxassetid://266530326';
  130. music3.Looped=true;
  131. music3.Volume=1;
  132. music4=Instance.new('Sound',c.HumanoidRootPart);
  133. music4.SoundId='rbxassetid://155738252';
  134. music4.Looped=true;
  135. music4.Volume=1;
  136. music5=Instance.new('Sound',c.HumanoidRootPart);
  137. music5.SoundId='rbxassetid://215391212';
  138. music5.Looped=true;
  139. music5.Volume=1;
  140. human.WalkSpeed=0;
  141. human.JumpPower=0;
  142. end;
  143. triWave=function(x)
  144. local pi2=math.pi/2;
  145. return math.abs((x/pi2)%4-2)-1;
  146. end;
  147. setLerp=function(speed)
  148. AnimStat.lerpSpeed=speed;
  149. end;
  150. setTween=function(tween)
  151. AnimStat.lerpTween=tween;
  152. end;
  153. playSound=function(id,part,vol,pitch)
  154. local vol=vol or 1;
  155. local pitch=pitch or 1;
  156. local x=Instance.new('Sound',part);
  157. x.Volume=vol;
  158. x.Pitch=pitch;
  159. x.SoundId='rbxassetid://'..id;
  160. spawn(function()
  161. wait();
  162. x:Play();
  163. wait(x.TimeLength+.2);
  164. x:Destroy();
  165. end);
  166. end;
  167. lerpBoom=function()
  168. if Cone then
  169. Cone.CFrame=CFrame.new(c.HumanoidRootPart.CFrame.p,c.HumanoidRootPart.CFrame.p+c.HumanoidRootPart.Velocity)*CFrame.Angles(-math.pi/2,0,0);
  170. cMesh.Scale=Vector3.new(20,20+c.HumanoidRootPart.Velocity.magnitude/10,20);
  171. Cone.Transparency=1-c.HumanoidRootPart.Velocity.magnitude/1000;
  172. else
  173. Cone=Instance.new('Part',c);
  174. Cone.Anchored=true;
  175. Cone.CanCollide=false;
  176. Cone.Transparency=math.random(50,70)/100;
  177. Cone.Size=Vector3.new(1,1,1);
  178. Cone.CFrame=CFrame.new(c.HumanoidRootPart.CFrame.p,c.HumanoidRootPart.CFrame.p+c.HumanoidRootPart.Velocity)*CFrame.Angles(-math.pi/2,0,0);
  179. cMesh=Instance.new('SpecialMesh',Cone);
  180. cMesh.MeshId='rbxassetid://1033714';
  181. cMesh.Scale=Vector3.new(20,50,20);
  182. end;
  183. end;
  184. noBoom=function()
  185. if Cone then local x=Cone Cone=nil;
  186. for i=1,20 do
  187. wait();
  188. x.Mesh.Scale=x.Mesh.Scale+Vector3.new(-.5,1,-.5);
  189. x.Transparency=x.Transparency+1/30;
  190. end;
  191. end;
  192. end;
  193. gasterBlast=function(tCFrame,aimPos,charge)
  194. local aimTarget;
  195. if aimPos then
  196. aimTarget=CFrame.new(tCFrame,aimPos);
  197. else
  198. aimTarget=tCFrame;
  199. end;
  200. local gast=Instance.new('Part',c);
  201. gast.Size=Vector3.new(12,.2,12);
  202. gast.CanCollide=false;
  203. gast.Anchored=true;
  204. gast.Transparency=1;
  205. if charge then
  206. playSound(400523331,gast,math.random(90,110)/100);
  207. end;
  208. wait();
  209. for i=1,2 do
  210. local decal=Instance.new('Decal',gast);
  211. decal.Texture='rbxassetid://323497117';
  212. if i==1 then
  213. decal.Face=Enum.NormalId.Top;
  214. else
  215. decal.Face=Enum.NormalId.Bottom;
  216. end;
  217. end;
  218. gast.CFrame=CFrame.new(aimTarget.p-Vector3.new(math.sin(tick()*10)*10,20,math.cos(tick()*10)*10));
  219. spawn(function()
  220. local tarCFrame=gast.CFrame;
  221. local isLooping=true;
  222. spawn(function()
  223. while rs.RenderStepped:wait()and isLooping do
  224. gast.CFrame=gast.CFrame:lerp(tarCFrame,.6/(Debounces.FPS/60));
  225. end;
  226. end);
  227. for i=1,30 do
  228. wait();
  229. tarCFrame=gast.CFrame:lerp(aimTarget,.24);
  230. end;
  231. playSound(340722848,gast,math.random(90,110)/100);
  232. isLooping=false;
  233. wait(.08);
  234. local ray=Ray.new(aimTarget.p,aimTarget.lookVector.unit*999);
  235. local _,pos=workspace:FindPartOnRay(ray,c);
  236. local dis=(aimTarget.p-pos).magnitude;
  237. local rayCFrame=CFrame.new(gast.CFrame.p+(pos-gast.CFrame.p).unit*(dis/2+200),gast.CFrame.p+(pos-gast.CFrame.p).unit*dis*2)*CFrame.Angles(0,math.pi/2,0);
  238. local rayPart=Instance.new('Part',rayModel);
  239. rayPart.Material='Neon';
  240. rayPart.FormFactor='Custom';
  241. rayPart.Anchored=true;
  242. rayPart.CanCollide=false;
  243. rayPart.Shape='Cylinder';
  244. rayPart.Size=Vector3.new(dis+400,8,8);
  245. rayPart.CFrame=rayCFrame;
  246. gast:Destroy();
  247. end);
  248. end;
  249. largegasterBlast=function(tCFrame,aimPos)
  250. local aimTarget;
  251. if aimPos then
  252. aimTarget=CFrame.new(tCFrame,aimPos);
  253. else
  254. aimTarget=tCFrame;
  255. end;
  256. local gast=Instance.new('Part',c);
  257. gast.Size=Vector3.new(25,.2,25);
  258. gast.CanCollide=false;
  259. gast.Anchored=true;
  260. gast.Transparency=1;
  261. playSound(400523331,gast,math.random(85,97)/100);
  262. wait();
  263. for i=1,2 do
  264. local decal=Instance.new('Decal',gast);
  265. decal.Texture='rbxassetid://323497117';
  266. if i==1 then
  267. decal.Face=Enum.NormalId.Top;
  268. else
  269. decal.Face=Enum.NormalId.Bottom;
  270. end;
  271. end;
  272. gast.CFrame=CFrame.new(aimTarget.p-Vector3.new(math.sin(tick()*10)*10,20,math.cos(tick()*10)*10));
  273. spawn(function()
  274. local tarCFrame=gast.CFrame;
  275. local isLooping=true;
  276. spawn(function()
  277. while rs.RenderStepped:wait()and isLooping do
  278. gast.CFrame=gast.CFrame:lerp(tarCFrame,.6/(Debounces.FPS/60));
  279. end;
  280. end);
  281. for i=1,40 do
  282. wait();
  283. tarCFrame=gast.CFrame:lerp(aimTarget,.18);
  284. end;
  285. playSound(340722848,gast,math.random(80,95)/100);
  286. isLooping=false;
  287. wait(.08);
  288. local ray=Ray.new(aimTarget.p,aimTarget.lookVector.unit*999);
  289. local _,pos=workspace:FindPartOnRay(ray,c);
  290. local dis=(aimTarget.p-pos).magnitude;
  291. local rayCFrame=CFrame.new(gast.CFrame.p+(pos-gast.CFrame.p).unit*(dis/2+200),gast.CFrame.p+(pos-gast.CFrame.p).unit*dis*2)*CFrame.Angles(0,math.pi/2,0);
  292. local rayPart=Instance.new('Part',rayModel);
  293. rayPart.Material='Neon';
  294. rayPart.FormFactor='Custom';
  295. rayPart.Anchored=true;
  296. rayPart.CanCollide=false;
  297. rayPart.Shape='Cylinder';
  298. rayPart.Size=Vector3.new(dis+400,17,17);
  299. rayPart.CFrame=rayCFrame;
  300. gast:Destroy();
  301. end);
  302. end;
  303.  
  304. if Debounces.isAttacking==false and Debounces.isMoving==false and Debounces.Debounce==false and Debounces.isJumping==false then
  305. setLerp(.8);
  306. elseif Debounces.isAttacking==false and Debounces.isMoving==true and Debounces.Debounce==false and Debounces.isSprinting==true and Debounces.isJumping==false then
  307. sine=tick()*28;
  308. human.WalkSpeed=400;
  309. lerpBoom();
  310. setLerp(.65);
  311. end;
  312. human.Changed:connect(function(prop)
  313. if prop=='MoveDirection'then
  314. if human.MoveDirection.magnitude>.02 then
  315. Debounces.isMoving=true;
  316. else
  317. Debounces.isMoving=false;
  318. end;
  319. end;
  320. end);
  321. uinps.InputBegan:connect(function(InputObj)
  322. if InputObj.KeyCode==Enum.KeyCode.Slash then
  323. local finishEvent=nil;
  324. Debounces.isTyping=true
  325. finishEvent=uinps.InputBegan:connect(function(InputObj)
  326. if InputObj.KeyCode==Enum.KeyCode.Return or InputObj.UserInputType==Enum.UserInputType.MouseButton1 then
  327. Debounces.isTyping=false;
  328. finishEvent:disconnect();
  329. end;
  330. end);
  331. end;
  332. end);
  333. mouse.KeyDown:connect(function(key)
  334. if key=='.'then
  335. Debounces.isSprinting=true;
  336. playSound(160248522,c.Torso);
  337. for i=1,3 do
  338. spawn(function()
  339. local e=Instance.new('Part',c);
  340. e.Size=Vector3.new(1,1,1);
  341. e.Material='Neon';
  342. e.Anchored=true;
  343. e.CFrame=c.HumanoidRootPart.CFrame*CFrame.Angles(0,0,-math.pi/2);
  344. e.CanCollide=false;
  345. local rm=Instance.new('SpecialMesh',e);
  346. rm.MeshType='FileMesh';
  347. rm.MeshId='rbxassetid://3270017';
  348. rm.Scale=Vector3.new(3.2,3.2,10);
  349. for x=1,30 do
  350. wait();
  351. rm.Scale=rm.Scale:lerp(Vector3.new(i*30,i*30,(4-i)*450),.1);
  352. e.Transparency=x/30+.5;
  353. end;
  354. end);
  355. end;
  356. c.HumanoidRootPart.Velocity=c.HumanoidRootPart.CFrame.lookVector*200;
  357. end;
  358. end);
  359. mouse.KeyUp:connect(function(key)
  360. if key=='.'then
  361. Debounces.isSprinting=false;
  362. end;
  363. end);
  364. mouse.KeyDown:connect(function(key)
  365. if key=='n'then
  366. playSound(446961725,c.Torso,math.random(90,120)/100);
  367. local oldPos=c.HumanoidRootPart.CFrame.p;
  368. local mHit=mouse.Hit.p;
  369. for i=1,2 do
  370. spawn(function()
  371. local pos
  372. if i==1 then pos=oldPos else pos=mHit end
  373. end);
  374. end;
  375. if Debounces.isMoving then
  376. c.HumanoidRootPart.CFrame=CFrame.new(mouse.Hit.p+Vector3.new(0,4,0),Vector3.new(c.HumanoidRootPart.Velocity.x,mouse.Hit.p.y+4,c.HumanoidRootPart.Velocity.z));
  377. else
  378. c.HumanoidRootPart.CFrame=CFrame.new(mouse.Hit.p+Vector3.new(0,4,0),Vector3.new(oldPos.x,mouse.Hit.p.y+4,oldPos.z));
  379.  
  380. end;
  381. end;
  382. end);
  383. mouse.KeyDown:connect(function(key)
  384. if key=='x'then
  385. local pointTarget=mouse.Hit.p;
  386.  
  387.  
  388. for i=1,20 do
  389. wait();
  390. gasterBlast(CFrame.new(pointTarget+Vector3.new(math.sin(tick()*10)*20,5+math.abs(math.sin(tick()*5)*10),math.cos(tick()*10)*20),pointTarget));
  391. end;
  392. wait();
  393. largegasterBlast(CFrame.new(pointTarget+Vector3.new(0,35,0),pointTarget));
  394. end;
  395. end);
  396. mouse.KeyDown:connect(function(key)
  397. if key=='c'then
  398. local pointTarget=mouse.Hit.p;
  399. for i=1,20 do
  400. wait();
  401.  
  402.  
  403. gasterBlast(CFrame.new(c.HumanoidRootPart.CFrame.p+Vector3.new(0,50,0),pointTarget):toWorldSpace(CFrame.new(math.sin(i/2)*(20-i),math.cos(i/2)*(20-i),-i)));
  404. end;
  405. largegasterBlast(CFrame.new(c.HumanoidRootPart.CFrame.p+Vector3.new(0,50,0),pointTarget):toWorldSpace(CFrame.new(0,0,-25)));
  406. end;
  407. end);
  408. mouse.Button1Down:connect(function()
  409. Debounces.isFlash=true;
  410. end);
  411. mouse.Button1Up:connect(function()
  412. Debounces.isFlash=false;
  413. end);
  414. mouse.KeyDown:connect(function(key)
  415. if key=='v'then
  416. if music2.isPlaying then music2:Stop();else music2:Play();end;
  417. end;
  418. end);
  419. mouse.KeyDown:connect(function(key)
  420. if key==','then
  421. if music3.isPlaying then music3:Stop();else music3:Play();end;
  422. end;
  423. end);
  424. mouse.KeyDown:connect(function(key)
  425. if key==','then
  426. if music5.isPlaying then music4:Stop();else music5:Play();end;
  427. end;
  428. end);
  429. mouse.KeyDown:connect(function(key)
  430. if key=='b'then
  431.  
  432.  
  433. gasterBlast(c.Torso.CFrame.p+Vector3.new(math.sin(tick()*10)*10,12,math.cos(tick()*10)*10),mouse.Hit.p,true);
  434.  
  435.  
  436. end;
  437. end);
  438. mouse.KeyDown:connect(function(key)
  439. if key=='f'then
  440.  
  441.  
  442. largegasterBlast(c.Torso.CFrame.p+Vector3.new(math.sin(tick()*10)*10,12,math.cos(tick()*10)*10),mouse.Hit.p);
  443.  
  444.  
  445. end;
  446. end);
  447. mouse.KeyDown:connect(function(key)
  448. if key=='g'then
  449. eye.Transparency = 1
  450.  
  451. for i=1,5 do
  452. wait();
  453. gasterBlast(c.Torso.CFrame.p+Vector3.new(math.sin(tick()*10)*10,12,math.cos(tick()*10)*10),mouse.Hit.p);
  454.  
  455.  
  456. end;
  457. largegasterBlast(c.Torso.CFrame.p+Vector3.new(0,25,0),mouse.Hit.p);
  458. end;
  459. end);
  460. mouse.KeyDown:connect(function(key)
  461. if key=='h'then
  462.  
  463.  
  464. local pointTarget=mouse.Hit.p;
  465. for i=1,20 do
  466. gasterBlast(pointTarget+Vector3.new(math.sin(math.deg((360/40)*i))*(20-i),5+i,math.cos(math.deg((360/40)*i))*(20-i)),pointTarget);
  467.  
  468.  
  469. end;
  470. wait(.2);
  471. for i=1,10 do
  472. largegasterBlast(pointTarget+Vector3.new(math.sin(math.deg((360/20)*i))*25,20,math.cos(math.deg((360/20)*i))*25),pointTarget);
  473. end;
  474. end;
  475. end);
  476. human.StateChanged:connect(function(os,ns)
  477. if c.HumanoidRootPart.Velocity.Y<.1 and Debounces.isJumping==true and ns==Enum.HumanoidStateType.Landed then
  478. Debounces.isJumping=false;
  479. end;
  480. end);
  481. rs.RenderStepped:connect(function()
  482. Debounces.FPS=1/rs.RenderStepped:wait();
  483. if Debounces.FPS<30 then
  484. Debounces.FPS=30;
  485. end;
  486. if Debounces.isSprinting then
  487. lerpBoom();
  488. else
  489. noBoom();
  490. end;
  491. for _,v in pairs(rayModel:children())do
  492. v.Transparency=v.Transparency+.06/(Debounces.FPS/60);
  493. if v.Transparency>.99 then v:Destroy();return;end;
  494. v.CanCollide=true;
  495. local tParts=v:GetTouchingParts();
  496. v.CanCollide=false;
  497. local vCFrame=v.CFrame;
  498. v.Size=v.Size+Vector3.new(0,1,1)/(Debounces.FPS/60);
  499. v.CFrame=vCFrame;
  500. for _,x in pairs(tParts)do
  501. if x and x.Parent and x.Parent:FindFirstChild'Humanoid'and x.Parent.Humanoid:isA'Humanoid'and x.Parent~=c then
  502. x.Parent.Humanoid.Health=0;
  503. end;
  504. end;
  505. end;
  506. local FPSLerp=AnimStat.lerpSpeed/(Debounces.FPS/60);
  507. end);
  508.  
  509.  
  510.  
  511.  
  512.  
  513.  
  514.  
  515.  
  516.  
  517.  
  518.  
  519.  
  520.  
  521.  
  522.  
  523.  
  524.  
  525.  
  526.  
  527.  
  528.  
  529.  
  530.  
  531.  
  532.  
  533.  
  534.  
  535.  
  536.  
  537.  
  538.  
  539.  
  540.  
  541.  
  542.  
  543.  
  544.  
  545.  
  546.  
  547.  
  548.  
  549.  
  550.  
  551.  
  552.  
  553.  
  554. gasterBlast=function(tCFrame,aimPos,charge)
  555. local aimTarget;
  556. if aimPos then
  557. aimTarget=CFrame.new(tCFrame,aimPos);
  558. else
  559. aimTarget=tCFrame;
  560. end;
  561. local gast=Instance.new('Part',c);
  562. gast.Size=Vector3.new(12,.2,12);
  563. gast.CanCollide=false;
  564. gast.Anchored=true;
  565. gast.Transparency=1;
  566. if charge then
  567. playSound(400523331,gast,math.random(90,110)/100);
  568. end;
  569. wait();
  570. for i=1,2 do
  571. local decal=Instance.new('Decal',gast);
  572. decal.Texture='rbxassetid://323497117';
  573. if i==1 then
  574. decal.Face=Enum.NormalId.Top;
  575. else
  576. decal.Face=Enum.NormalId.Bottom;
  577. end;
  578. end;
  579. gast.CFrame=CFrame.new(aimTarget.p-Vector3.new(math.sin(tick()*10)*10,20,math.cos(tick()*10)*10));
  580. spawn(function()
  581. local tarCFrame=gast.CFrame;
  582. local isLooping=true;
  583. spawn(function()
  584. while rs.RenderStepped:wait()and isLooping do
  585. gast.CFrame=gast.CFrame:lerp(tarCFrame,.6/(Debounces.FPS/60));
  586. end;
  587. end);
  588. for i=1,30 do
  589. wait();
  590. tarCFrame=gast.CFrame:lerp(aimTarget,.24);
  591. end;
  592. playSound(340722848,gast,math.random(90,110)/100);
  593. isLooping=false;
  594. wait(.08);
  595. local ray=Ray.new(aimTarget.p,aimTarget.lookVector.unit*999);
  596. local _,pos=workspace:FindPartOnRay(ray,c);
  597. local dis=(aimTarget.p-pos).magnitude;
  598. local rayCFrame=CFrame.new(gast.CFrame.p+(pos-gast.CFrame.p).unit*(dis/2+200),gast.CFrame.p+(pos-gast.CFrame.p).unit*dis*2)*CFrame.Angles(0,math.pi/2,0);
  599. local rayPart=Instance.new('Part',rayModel);
  600. rayPart.Material='Neon';
  601. rayPart.FormFactor='Custom';
  602. rayPart.Color= Color3.new (1, 1, 1)
  603. rayPart.Anchored=true;
  604. rayPart.CanCollide=false;
  605. rayPart.Shape='Cylinder';
  606. rayPart.Size=Vector3.new(dis+400,8,8);
  607. rayPart.CFrame=rayCFrame;
  608. gast:Destroy();
  609. end);
  610. end;
  611. largegasterBlast=function(tCFrame,aimPos)
  612. local aimTarget;
  613. if aimPos then
  614. aimTarget=CFrame.new(tCFrame,aimPos);
  615. else
  616. aimTarget=tCFrame;
  617. end;
  618. local gast=Instance.new('Part',c);
  619. gast.Size=Vector3.new(25,.2,25);
  620. gast.CanCollide=false;
  621. gast.Anchored=true;
  622. gast.Transparency=1;
  623. playSound(400523331,gast,math.random(85,97)/100);
  624. wait();
  625. for i=1,2 do
  626. local decal=Instance.new('Decal',gast);
  627. decal.Texture='rbxassetid://323497117';
  628. if i==1 then
  629. decal.Face=Enum.NormalId.Top;
  630. else
  631. decal.Face=Enum.NormalId.Bottom;
  632. end;
  633. end;
  634. gast.CFrame=CFrame.new(aimTarget.p-Vector3.new(math.sin(tick()*10)*10,20,math.cos(tick()*10)*10));
  635. spawn(function()
  636. local tarCFrame=gast.CFrame;
  637. local isLooping=true;
  638. spawn(function()
  639. while rs.RenderStepped:wait()and isLooping do
  640. gast.CFrame=gast.CFrame:lerp(tarCFrame,.6/(Debounces.FPS/60));
  641. end;
  642. end);
  643. for i=1,40 do
  644. wait();
  645. tarCFrame=gast.CFrame:lerp(aimTarget,.18);
  646. end;
  647. playSound(340722848,gast,math.random(80,95)/100);
  648. isLooping=false;
  649. wait(.08);
  650. local ray=Ray.new(aimTarget.p,aimTarget.lookVector.unit*999);
  651. local _,pos=workspace:FindPartOnRay(ray,c);
  652. local dis=(aimTarget.p-pos).magnitude;
  653. local rayCFrame=CFrame.new(gast.CFrame.p+(pos-gast.CFrame.p).unit*(dis/2+200),gast.CFrame.p+(pos-gast.CFrame.p).unit*dis*2)*CFrame.Angles(0,math.pi/2,0);
  654. local rayPart=Instance.new('Part',rayModel);
  655. rayPart.Material='Neon';
  656. rayPart.FormFactor='Custom';
  657. rayPart.Color=Color3.new (1, 1, 1)
  658. rayPart.Anchored=true;
  659. rayPart.CanCollide=false;
  660. rayPart.Shape='Cylinder';
  661. rayPart.Size=Vector3.new(dis+400,17,17);
  662. rayPart.CFrame=rayCFrame;
  663. gast:Destroy();
  664. end);
  665. end;
  666.  
  667.  
  668. human.Changed:connect(function(prop)
  669. if prop=='MoveDirection'then
  670. if human.MoveDirection.magnitude>.02 then
  671. Debounces.isMoving=true;
  672. else
  673. Debounces.isMoving=false;
  674. end;
  675. end;
  676. end);
  677. uinps.InputBegan:connect(function(InputObj)
  678. if InputObj.KeyCode==Enum.KeyCode.Slash then
  679. local finishEvent=nil;
  680. Debounces.isTyping=true
  681. finishEvent=uinps.InputBegan:connect(function(InputObj)
  682. if InputObj.KeyCode==Enum.KeyCode.Return or InputObj.UserInputType==Enum.UserInputType.MouseButton1 then
  683. Debounces.isTyping=false;
  684. finishEvent:disconnect();
  685. end;
  686. end);
  687. end;
  688. end);
  689. mouse.KeyDown:connect(function(key)
  690. if key==','then
  691. Debounces.isSprinting=true;
  692. playSound(160248522,c.Torso);
  693. for i=1,3 do
  694. spawn(function()
  695. end);
  696. local e=Instance.new('Part',c);
  697. e.Size=Vector3.new(1,1,1);
  698. e.Material='Neon';
  699. e.Color=Color3.new(1, 1, 1)
  700. e.Anchored=true;
  701. e.CFrame=c.HumanoidRootPart.CFrame*CFrame.Angles(0,0,-math.pi/2);
  702. e.CanCollide=false;
  703. local rm=Instance.new('SpecialMesh',e);
  704. rm.MeshType='FileMesh';
  705. rm.MeshId='rbxassetid://3270017';
  706. rm.Scale=Vector3.new(3.2,3.2,10);
  707. for x=1,30 do
  708. wait();
  709. rm.Scale=rm.Scale:lerp(Vector3.new(i*30,i*30,(4-i)*450),.1);
  710. e.Transparency=x/30+.5;
  711. end;
  712. end;
  713. end;
  714. end);
  715.  
  716.  
  717.  
  718.  
  719.  
  720.  
  721. for i,v in pairs(c:children())do
  722. if v:isA'Hat'then v:Destroy();end;
  723. if v:FindFirstChild'roblox'then v.roblox:Destroy();end;
  724. if v.Name=='Head'then v.Transparency=1 for _,x in pairs(v:children())do if x.ClassName=='Sound'then x:Destroy();end;end;end;
  725. if v:isA'Part'then v.BrickColor=BrickColor.new'White';end;
  726. end
  727. local shirt=c:FindFirstChild'Shirt'or Instance.new('Shirt',c);
  728. local pants=c:FindFirstChild'Pants'or Instance.new('Pants',c);
  729. shirt.ShirtTemplate='rbxassetid://380669876';
  730. pants.PantsTemplate='rbxassetid://380670039';
  731. local Head=Instance.new('Part',c);
  732. Head.Size=Vector3.new(2.5,2.5,1);
  733. Head.Transparency=1;
  734. Head:BreakJoints();
  735. local hw=Instance.new('Weld',c.Head);
  736. hw.Part0=c.Head;
  737. hw.Part1=Head;
  738. hw.C0=CFrame.new(0,0.5,0);
  739. faceDecal = Instance.new('Decal',Head);
  740. faceDecal.Face=Enum.NormalId.Front;
  741. faceDecal.Texture='rbxassetid://470787985';
  742. local backDecal = Instance.new('Decal',Head);
  743. backDecal.Face=Enum.NormalId.Back;
  744. backDecal.Texture='rbxassetid://470992211';
  745. local mes=Instance.new('BlockMesh',Head);
  746. mes.Scale=Vector3.new(1,1,.4);
  747. local Anim=human:FindFirstChild'Animator'
  748. if Anim then Anim:Destroy();end;
  749.  
  750.  
  751.  
  752.  
  753.  
  754.  
  755. numLerp=function(start,goal,alpha)
  756. return(((goal-start)*alpha)+start);
  757. end;
  758.  
  759. print 'Beware of the man who speaks in hands.'
  760. local ChatService = game:GetService("Chat")
  761. local player = game.Players.LocalPlayer
  762. char = player.Character
  763. hum = char.Humanoid
  764. torso = hum.Torso
  765. lig = Instance.new("PointLight",player.Character.Torso)
  766. lig.Color=Color3.new(0, 0, 0)
  767. m=player:GetMouse()
  768. bb = Instance.new("BillboardGui",player.Character.Head)
  769. bb.Enabled = true
  770. bb.AlwaysOnTop = true
  771. bb.Size = UDim2.new(0,200,0,50)
  772. bb.StudsOffset = Vector3.new(0,1,0)
  773. gui=Instance.new("TextBox",bb)
  774. gui.Text = "*"
  775. gui.Size = UDim2.new(0,133,0,45)
  776. gui.Position=UDim2.new(0,57,0,-40)
  777. gui.TextColor3 = Color3.new(0, 0, 0)
  778. gui.BackgroundColor3=Color3.new(255, 255, 255)
  779. gui.TextWrapped = true
  780. gui.TextScaled = true
  781. gui.TextXAlignment = "Left"
  782. gui.TextYAlignment = "Top"
  783. gui.Visible = false
  784. gui.BorderColor3 = Color3.new(255, 255, 255)
  785.  
  786. gui1=Instance.new("TextButton",bb)
  787. gui1.Position=UDim2.new(0,5,0,-43)
  788. gui1.Size = UDim2.new(0,190,0,51)
  789.  
  790. gui1.TextColor3 = Color3.new(0, 0, 0)
  791. gui1.BackgroundColor3=Color3.new(0, 0, 0)
  792.  
  793. gui1.Visible = false
  794. img = Instance.new("ImageLabel",bb)
  795. img.Size = UDim2.new(0,46,0,47)
  796. img.Position = UDim2.new(0,10,0,-41)
  797. img.Image = "rbxassetid://470787985"
  798. img.BorderColor3 = Color3.new(0,0,0)
  799. img.Visible = false
  800. asd = Instance.new("Sound",player.Character.Torso)
  801. asd.SoundId = "http://www.roblox.com/asset/?id = 470794204"
  802.  
  803. asd1 = Instance.new("Sound",player.Character.Torso)
  804. asd1.SoundId = "http://www.roblox.com/asset/?id = 470794204"
  805.  
  806. asd2 = Instance.new("Sound",player.Character.Torso)
  807. asd2.SoundId = "http://www.roblox.com/asset/?id = 470794204"
  808. asd2.Looped = true
  809. asd3 = Instance.new("Sound",player.Character.Torso)
  810. asd3.SoundId = "http://www.roblox.com/asset/?id = 470794204"
  811. asd3.Looped = true
  812. asd4 = Instance.new("Sound",player.Character.Torso)
  813. asd4.SoundId = "http://www.roblox.com/asset/?id = 470794204"
  814. asd4.Looped = false
  815. asd5 = Instance.new("Sound",player.Character.Torso)
  816. asd5.SoundId = "http://www.roblox.com/asset/?id = 0"
  817. asd5.Looped = true
  818. dunkd = Instance.new("Sound",player.Character.Torso)
  819. dunkd.SoundId = "http://www.roblox.com/asset/?id = 470794204"
  820. dunkd.Looped = false
  821. function play(play)
  822. asd:Play()
  823. asd1:Play()
  824. end
  825. eye = Instance.new("Part",player.Character)
  826. eye.BrickColor = BrickColor.new("Toothpaste")
  827. eye.Material = "Neon"
  828. eye.FormFactor = 3
  829. eye.Shape = "Ball"
  830. eye.Size = Vector3.new(0.37,0.37,0.1)
  831. weld = Instance.new("Weld",eye)
  832. weld.Part0 = eye
  833. weld.Part1 = player.Character.Head
  834. weld.C0 = CFrame.new(0.1,-0.2,0.45)
  835. eye.Transparency = 1
  836. -- listen for their chatting
  837. player.Chatted:connect(function(message)
  838. a = string.len(message)
  839. gui.Text = " "
  840. gui.Visible = true
  841. gui1.Visible = true
  842. des = false
  843. img.Visible = true
  844. print(a)
  845. if dot == false then
  846. for i = 1,string.len(message) do wait(0.07)
  847. gui.Text =gui.Text..message:sub(i,i)
  848. play()
  849. end
  850. end
  851. des = true
  852. end)
  853. m.KeyDown:connect(function(k)
  854. if k == "z" then
  855. img.Image = "rbxassetid://470787985"
  856. end
  857. end)
  858. m.KeyDown:connect(function(k)
  859. if k == "c" then
  860. img.Image = "rbxassetid://470787985"
  861. end
  862. end)
  863. m.KeyDown:connect(function(k)
  864. if k == "n" then
  865. img.Image = "rbxassetid://470787985"
  866. end
  867. end)
  868. m.KeyDown:connect(function(k)
  869. if k == "b" then
  870. img.Image = "rbxassetid://470787985"
  871. end
  872. end)
  873. m.KeyDown:connect(function(k)
  874. if k == "m" then
  875. img.Image = "rbxassetid://470787985"
  876. end
  877. end)
  878. m.KeyDown:connect(function(k)
  879. if k == "v" then
  880. img.Image = "rbxassetid://470787985"
  881. end
  882. end)
  883. m.KeyDown:connect(function(k)
  884. if k == "h" then
  885. img.Image = "rbxassetid://470787985"
  886. end
  887. end)
  888. m.KeyDown:connect(function(k)
  889. if k == "j" then
  890. img.Image = "rbxassetid://470787985"
  891. end
  892. end)
  893. m.KeyDown:connect(function(k)
  894. if k == "l" then
  895. img.Image = "rbxassetid://470787985"
  896. print("You take your very last breath...")
  897. asdd = Instance.new("Sound", Torso)
  898. asdd.SoundId = "http://www.roblox.com/asset/?id = 387187707"
  899. wait(4)
  900. Humanoid:Remove()
  901. end
  902. end)
  903. m.KeyDown:connect(function(k)
  904. if k == "x" then
  905. if des == true then
  906. gui.Visible = false
  907. gui.Text = "> "
  908. gui1.Visible = false
  909. img.Visible = false
  910. end
  911. end
  912. end)
  913.  
  914. playSound=function(id,part,vol,pitch)
  915. end
  916.  
  917.  
  918.  
  919.  
  920.  
  921.  
  922.  
  923.  
  924.  
  925. gasterBlast=function(tCFrame,aimPos,charge)
  926. local aimTarget;
  927. if aimPos then
  928. aimTarget=CFrame.new(tCFrame,aimPos);
  929. else
  930. aimTarget=tCFrame;
  931. end;
  932. local gast=Instance.new('Part',c);
  933. gast.Size=Vector3.new(12,.2,12);
  934. gast.CanCollide=false;
  935. gast.Anchored=true;
  936. gast.Transparency=1;
  937. if charge then
  938. playSound(400523331,gast,math.random(90,110)/100);
  939. end;
  940. wait();
  941. for i=1,2 do
  942. local decal=Instance.new('Decal',gast);
  943. decal.Texture='rbxassetid://323497117';
  944. if i==1 then
  945. decal.Face=Enum.NormalId.Top;
  946. else
  947. decal.Face=Enum.NormalId.Bottom;
  948. end;
  949. end;
  950. gast.CFrame=CFrame.new(aimTarget.p-Vector3.new(math.sin(tick()*10)*10,20,math.cos(tick()*10)*10));
  951. spawn(function()
  952. local tarCFrame=gast.CFrame;
  953. local isLooping=true;
  954. spawn(function()
  955. while rs.RenderStepped:wait()and isLooping do
  956. gast.CFrame=gast.CFrame:lerp(tarCFrame,.6/(Debounces.FPS/60));
  957. end;
  958. end);
  959. for i=1,30 do
  960. wait();
  961. tarCFrame=gast.CFrame:lerp(aimTarget,.24);
  962. end;
  963. playSound(340722848,gast,math.random(90,110)/100);
  964. isLooping=false;
  965. wait(.08);
  966. local ray=Ray.new(aimTarget.p,aimTarget.lookVector.unit*999);
  967. local _,pos=workspace:FindPartOnRay(ray,c);
  968. local dis=(aimTarget.p-pos).magnitude;
  969. local rayCFrame=CFrame.new(gast.CFrame.p+(pos-gast.CFrame.p).unit*(dis/2+200),gast.CFrame.p+(pos-gast.CFrame.p).unit*dis*2)*CFrame.Angles(0,math.pi/2,0);
  970. local rayPart=Instance.new('Part',rayModel);
  971. rayPart.Material='Neon';
  972. rayPart.FormFactor='Custom';
  973. rayPart.Color=Color3.new (1, 1, 1)
  974. rayPart.Anchored=true;
  975. rayPart.CanCollide=false;
  976. rayPart.Shape='Cylinder';
  977. rayPart.Size=Vector3.new(dis+400,8,8);
  978. rayPart.CFrame=rayCFrame;
  979. gast:Destroy();
  980. end)
  981. end
  982.  
  983.  
  984. mouse.KeyDown:connect(function(key)
  985. if key=='z'then
  986. gasterBlast(c.Torso.CFrame.p+Vector3.new(math.sin(tick()*10)*10,12,math.cos(tick()*10)*10),mouse.Hit.p,true);
  987. end
  988. end)
  989.  
  990.  
  991. Player=game:GetService("Players").LocalPlayer
  992. Character=Player.Character
  993. PlayerGui=Player.PlayerGui
  994. Backpack=Player.Backpack
  995. Torso=Character.Torso
  996. Head=Character.Head
  997. Humanoid=Character.Humanoid
  998. m=Instance.new('Model',Character)
  999. LeftArm=Character["Left Arm"]
  1000. LeftLeg=Character["Left Leg"]
  1001. RightArm=Character["Right Arm"]
  1002. RightLeg=Character["Right Leg"]
  1003. LS=Torso["Left Shoulder"]
  1004. LH=Torso["Left Hip"]
  1005. RS=Torso["Right Shoulder"]
  1006. RH=Torso["Right Hip"]
  1007. Face = Head.face
  1008. Neck=Torso.Neck
  1009. it=Instance.new
  1010. attacktype=1
  1011. vt=Vector3.new
  1012. cf=CFrame.new
  1013. euler=CFrame.fromEulerAnglesXYZ
  1014. angles=CFrame.Angles
  1015. cloaked=false
  1016. --------------
  1017. Humanoid.MaxHealth = math.huge
  1018. --------------
  1019. necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  1020. necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  1021. LHC0=cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0)
  1022. LHC1=cf(-0.5,1,0,-0,-0,-1,0,1,0,1,0,0)
  1023. RHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0)
  1024. RHC1=cf(0.5,1,0,0,0,1,0,1,0,-1,-0,-0)
  1025. RootPart=Character.HumanoidRootPart
  1026. RootJoint=RootPart.RootJoint
  1027. RootCF=euler(-1.57,0,3.14)
  1028. attack = false
  1029. attackdebounce = false
  1030. deb=false
  1031. equipped=true
  1032. hand=false
  1033. MMouse=nil
  1034. combo=0
  1035. mana=0
  1036. trispeed=1
  1037. pathtrans=.7
  1038. attackmode='none'
  1039. local idle=0
  1040. local Anim="Idle"
  1041. local Effects={}
  1042. local gun=false
  1043. local shoot=false
  1044. player=nil
  1045. cloak=false
  1046. lightcolor='Bright blue'
  1047.  
  1048. local Color1= BrickColor.new ("Institutional White")
  1049.  
  1050. local fengui=it("GuiMain")
  1051. fengui.Parent=Player.PlayerGui
  1052. fengui.Name="WeaponGUI"
  1053. local fenframe=it("Frame")
  1054. fenframe.Parent=fengui
  1055. fenframe.BackgroundColor3=Color3.new(255,255,255)
  1056. fenframe.BackgroundTransparency=1
  1057. fenframe.BorderColor3=Color3.new(0,0,0)
  1058. fenframe.Size=UDim2.new(0.0500000007, 0, 0.100000001, 0)
  1059. fenframe.Position=UDim2.new(0.4,0,0.1,0)
  1060. local fenbarmana1=it("TextLabel")
  1061. fenbarmana1.Parent=fenframe
  1062. fenbarmana1.Text=" "
  1063. fenbarmana1.BackgroundTransparency=0
  1064. fenbarmana1.BackgroundColor3=Color3.new(0,0,0)
  1065. fenbarmana1.SizeConstraint="RelativeXY"
  1066. fenbarmana1.TextXAlignment="Center"
  1067. fenbarmana1.TextYAlignment="Center"
  1068. fenbarmana1.Position=UDim2.new(0,0,0,0)
  1069. fenbarmana1.Size=UDim2.new(4,0,0.2,0)
  1070. local fenbarmana2=it("TextLabel")
  1071. fenbarmana2.Parent=fenframe
  1072. fenbarmana2.Text=" "
  1073. fenbarmana2.BackgroundTransparency=0
  1074. fenbarmana2.BackgroundColor3=Torso.Color
  1075. fenbarmana2.SizeConstraint="RelativeXY"
  1076. fenbarmana2.TextXAlignment="Center"
  1077. fenbarmana2.TextYAlignment="Center"
  1078. fenbarmana2.Position=UDim2.new(0,0,0,0)
  1079. fenbarmana2.Size=UDim2.new(4*mana/100,0,0.2,0)
  1080. local fenbarmana3=it("TextLabel")
  1081. fenbarmana3.Parent=fenframe
  1082. fenbarmana3.Text=" "
  1083. fenbarmana3.BackgroundTransparency=0
  1084. fenbarmana3.BackgroundColor3=Color3.new(Col1,Col2,Col3)
  1085. fenbarmana3.SizeConstraint="RelativeXY"
  1086. fenbarmana3.TextXAlignment="Center"
  1087. fenbarmana3.TextYAlignment="Center"
  1088. fenbarmana3.Position=UDim2.new(0,0,0,0)
  1089. fenbarmana3.Size=UDim2.new(0,0,0.2,0)
  1090. local fenbarmana4=it("TextLabel")
  1091. fenbarmana4.Parent=fenframe
  1092. fenbarmana4.Text="Energy("..mana..")"
  1093. fenbarmana4.BackgroundTransparency=1
  1094. fenbarmana4.BackgroundColor3=Color3.new(0,0,0)
  1095. fenbarmana4.SizeConstraint="RelativeXY"
  1096. fenbarmana4.TextXAlignment="Center"
  1097. fenbarmana4.TextYAlignment="Center"
  1098. fenbarmana4.Position=UDim2.new(0,0,-0.3,0)
  1099. fenbarmana4.Size=UDim2.new(4,0,0.2,0)
  1100. fenbarmana4.FontSize="Size9"
  1101. fenbarmana4.TextStrokeTransparency=0
  1102. fenbarmana4.TextColor=BrickColor.new("Institutional White")
  1103.  
  1104. mouse=Player:GetMouse()
  1105. --save shoulders
  1106. RSH, LSH=nil, nil
  1107. --welds
  1108. RW, LW=Instance.new("Weld"), Instance.new("Weld")
  1109. RW.Name="Right Shoulder" LW.Name="Left Shoulder"
  1110. LH=Torso["Left Hip"]
  1111. RH=Torso["Right Hip"]
  1112. TorsoColor= BrickColor.new ("Institutional White")
  1113. function NoOutline(Part)
  1114. Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
  1115. end
  1116. player=Player
  1117. ch=Character
  1118. RSH=ch.Torso["Right Shoulder"]
  1119. LSH=ch.Torso["Left Shoulder"]
  1120. --
  1121. RSH.Parent=nil
  1122. LSH.Parent=nil
  1123. --
  1124. RW.Name="Right Shoulder"
  1125. RW.Part0=ch.Torso
  1126. RW.C0=cf(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5)
  1127. RW.C1=cf(0, 0.5, 0)
  1128. RW.Part1=ch["Right Arm"]
  1129. RW.Parent=ch.Torso
  1130. --
  1131. LW.Name="Left Shoulder"
  1132. LW.Part0=ch.Torso
  1133. LW.C0=cf(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8)
  1134. LW.C1=cf(0, 0.5, 0)
  1135. LW.Part1=ch["Left Arm"]
  1136. LW.Parent=ch.Torso
  1137.  
  1138. function part(formfactor,parent,reflectance,transparency,brickcolor,name,size)
  1139. local fp=it("Part")
  1140. fp.formFactor=formfactor
  1141. fp.Parent=parent
  1142. fp.Reflectance=reflectance
  1143. fp.Transparency=transparency
  1144. fp.CanCollide=false
  1145. fp.Locked=true
  1146. fp.BrickColor=brickcolor
  1147. fp.Name=name
  1148. fp.Size=size
  1149. fp.Position=Torso.Position
  1150. NoOutline(fp)
  1151. fp.Material="Neon"
  1152. fp:BreakJoints()
  1153. return fp
  1154. end
  1155.  
  1156. function mesh(Mesh,part,meshtype,meshid,offset,scale)
  1157. local mesh=it(Mesh)
  1158. mesh.Parent=part
  1159. if Mesh=="SpecialMesh" then
  1160. mesh.MeshType=meshtype
  1161. if meshid~="nil" then
  1162. mesh.MeshId="http://www.roblox.com/asset/?id="..meshid
  1163. end
  1164. end
  1165. mesh.Offset=offset
  1166. mesh.Scale=scale
  1167. return mesh
  1168. end
  1169.  
  1170. function weld(parent,part0,part1,c0)
  1171. local weld=it("Weld")
  1172. weld.Parent=parent
  1173. weld.Part0=part0
  1174. weld.Part1=part1
  1175. weld.C0=c0
  1176. return weld
  1177. end
  1178.  
  1179. local Color1= BrickColor.new ("Institutional White")
  1180.  
  1181. local bodvel=Instance.new("BodyVelocity")
  1182. local bg=Instance.new("BodyGyro")
  1183.  
  1184. function swait(num)
  1185. if num==0 or num==nil then
  1186. game:service'RunService'.Stepped:wait(0)
  1187. else
  1188. for i=0,num do
  1189. game:service'RunService'.Stepped:wait(0)
  1190. end
  1191. end
  1192. end
  1193.  
  1194.  
  1195. so = function(id,par,vol,pit)
  1196. coroutine.resume(coroutine.create(function()
  1197. local sou = Instance.new("Sound",par or workspace)
  1198. sou.Volume=vol
  1199. sou.Pitch=pit or 1
  1200. sou.SoundId=id
  1201. swait()
  1202. sou:play()
  1203. game:GetService("Debris"):AddItem(sou,6)
  1204. end))
  1205. end
  1206.  
  1207. function clerp(a,b,t)
  1208. local qa = {QuaternionFromCFrame(a)}
  1209. local qb = {QuaternionFromCFrame(b)}
  1210. local ax, ay, az = a.x, a.y, a.z
  1211. local bx, by, bz = b.x, b.y, b.z
  1212. local _t = 1-t
  1213. return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t))
  1214. end
  1215.  
  1216. function QuaternionFromCFrame(cf)
  1217. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  1218. local trace = m00 + m11 + m22
  1219. if trace > 0 then
  1220. local s = math.sqrt(1 + trace)
  1221. local recip = 0.5/s
  1222. return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5
  1223. else
  1224. local i = 0
  1225. if m11 > m00 then
  1226. i = 1
  1227. end
  1228. if m22 > (i == 0 and m00 or m11) then
  1229. i = 2
  1230. end
  1231. if i == 0 then
  1232. local s = math.sqrt(m00-m11-m22+1)
  1233. local recip = 0.5/s
  1234. return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip
  1235. elseif i == 1 then
  1236. local s = math.sqrt(m11-m22-m00+1)
  1237. local recip = 0.5/s
  1238. return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip
  1239. elseif i == 2 then
  1240. local s = math.sqrt(m22-m00-m11+1)
  1241. local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip
  1242. end
  1243. end
  1244. end
  1245.  
  1246. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  1247. local xs, ys, zs = x + x, y + y, z + z
  1248. local wx, wy, wz = w*xs, w*ys, w*zs
  1249. local xx = x*xs
  1250. local xy = x*ys
  1251. local xz = x*zs
  1252. local yy = y*ys
  1253. local yz = y*zs
  1254. local zz = z*zs
  1255. 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))
  1256. end
  1257.  
  1258. function QuaternionSlerp(a, b, t)
  1259. local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4]
  1260. local startInterp, finishInterp;
  1261. if cosTheta >= 0.0001 then
  1262. if (1 - cosTheta) > 0.0001 then
  1263. local theta = math.acos(cosTheta)
  1264. local invSinTheta = 1/math.sin(theta)
  1265. startInterp = math.sin((1-t)*theta)*invSinTheta
  1266. finishInterp = math.sin(t*theta)*invSinTheta
  1267. else
  1268. startInterp = 1-t
  1269. finishInterp = t
  1270. end
  1271. else
  1272. if (1+cosTheta) > 0.0001 then
  1273. local theta = math.acos(-cosTheta)
  1274. local invSinTheta = 1/math.sin(theta)
  1275. startInterp = math.sin((t-1)*theta)*invSinTheta
  1276. finishInterp = math.sin(t*theta)*invSinTheta
  1277. else
  1278. startInterp = t-1
  1279. finishInterp = t
  1280. end
  1281. end
  1282. 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
  1283. end
  1284.  
  1285. function rayCast(Pos, Dir, Max, Ignore) -- Origin Position , Direction, MaxDistance , IgnoreDescendants
  1286. return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  1287. end
  1288.  
  1289. function SkullEffect(brickcolor,cframe,x1,y1,z1,delay)
  1290. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1291. prt.Anchored=true
  1292. prt.CFrame=cframe
  1293. local msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=4770583",vt(0,0,0),vt(x1,y1,z1))
  1294. --http://www.roblox.com/asset/?id=4770560
  1295. game:GetService("Debris"):AddItem(prt,2)
  1296. CF=prt.CFrame
  1297. coroutine.resume(coroutine.create(function(Part,Mesh,TehCF)
  1298. for i=0,1,0.2 do
  1299. wait()
  1300. Part.CFrame=CF*cf(0,0,-0.4)
  1301. end
  1302. for i=0,1,delay do
  1303. wait()
  1304. --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)
  1305. Mesh.Scale=Mesh.Scale
  1306. end
  1307. for i=0,1,0.1 do
  1308. wait()
  1309. Part.Transparency=i
  1310. end
  1311. Part.Parent=nil
  1312. end),prt,msh,CF)
  1313. end
  1314.  
  1315. function MagicBlock(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  1316. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1317. prt.Anchored=true
  1318. prt.CFrame=cframe
  1319. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  1320. game:GetService("Debris"):AddItem(prt,5)
  1321. coroutine.resume(coroutine.create(function(Part,Mesh)
  1322. for i=0,1,delay do
  1323. wait()
  1324. Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1325. Part.Transparency=i
  1326. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1327. end
  1328. Part.Parent=nil
  1329. end),prt,msh)
  1330. end
  1331.  
  1332. function MagicBlock2(brickcolor,cframe,Parent,x1,y1,z1,x3,y3,z3,delay)
  1333. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1334. prt.Anchored=false
  1335. prt.CFrame=cframe
  1336. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  1337. local wld=weld(prt,prt,Parent,cframe)
  1338. game:GetService("Debris"):AddItem(prt,5)
  1339. coroutine.resume(coroutine.create(function(Part,Mesh,Weld)
  1340. for i=0,1,delay do
  1341. wait()
  1342. Weld.C0=euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))*cframe
  1343. --Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1344. Part.Transparency=i
  1345. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1346. end
  1347. Part.Parent=nil
  1348. end),prt,msh,wld)
  1349. end
  1350.  
  1351. function MagicBlock3(brickcolor,cframe,Parent,x1,y1,z1,x3,y3,z3,delay)
  1352. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1353. prt.Anchored=false
  1354. prt.CFrame=cframe
  1355. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  1356. local wld=weld(prt,prt,Parent,euler(0,0,0)*cf(0,0,0))
  1357. game:GetService("Debris"):AddItem(prt,5)
  1358. coroutine.resume(coroutine.create(function(Part,Mesh,Weld)
  1359. for i=0,1,delay do
  1360. wait()
  1361. Weld.C0=euler(i*20,0,0)
  1362. --Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1363. Part.Transparency=i
  1364. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1365. end
  1366. Part.Parent=nil
  1367. end),prt,msh,wld)
  1368. end
  1369.  
  1370. function MagicCircle2(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  1371. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1372. prt.Anchored=true
  1373. prt.CFrame=cframe
  1374. local msh=mesh("CylinderMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  1375. game:GetService("Debris"):AddItem(prt,2)
  1376. coroutine.resume(coroutine.create(function(Part,Mesh)
  1377. for i=0,1,delay do
  1378. wait()
  1379. Part.CFrame=Part.CFrame
  1380. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1381. local prt2=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1382. prt2.Anchored=true
  1383. prt2.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1384. local msh2=mesh("SpecialMesh",prt2,"Sphere","",vt(0,0,0),vt(0.5,0.5,0.5))
  1385. game:GetService("Debris"):AddItem(prt2,2)
  1386. coroutine.resume(coroutine.create(function(Part,Mesh)
  1387. for i=0,1,0.1 do
  1388. wait()
  1389. Part.CFrame=Part.CFrame*cf(0,0.5,0)
  1390. end
  1391. Part.Parent=nil
  1392. end),prt2,msh2)
  1393. end
  1394. for i=0,1,delay*2 do
  1395. wait()
  1396. Part.CFrame=Part.CFrame
  1397. Mesh.Scale=vt((x1+x3)-(x1+x3)*i,(y1+y3)-(y1+y3)*i,(z1+z3)-(z1+z3)*i)
  1398. end
  1399. Part.Parent=nil
  1400. end),prt,msh)
  1401. end
  1402.  
  1403. function MagicCircle(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  1404. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1405. prt.Anchored=true
  1406. prt.CFrame=cframe
  1407. local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  1408. game:GetService("Debris"):AddItem(prt,2)
  1409. coroutine.resume(coroutine.create(function(Part,Mesh)
  1410. for i=0,1,delay do
  1411. wait()
  1412. Part.CFrame=Part.CFrame
  1413. Part.Transparency=i
  1414. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1415. end
  1416. Part.Parent=nil
  1417. end),prt,msh)
  1418. end
  1419.  
  1420. function MagicRing(brickcolor,cframe,x1,y1,z1,x2,y2,z2,x3,y3,z3)
  1421. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1422. prt.Anchored=true
  1423. prt.CFrame=cframe*euler(x2,y2,z2)
  1424. --"http://www.roblox.com/asset/?id=168892465"
  1425. local msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=3270017",vt(0,0,0),vt(x1,y1,z1))
  1426. game:GetService("Debris"):AddItem(prt,2)
  1427. coroutine.resume(coroutine.create(function(Part,Mesh)
  1428. for i=0,1,0.03 do
  1429. wait()
  1430. Part.CFrame=Part.CFrame
  1431. Part.Transparency=i
  1432. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1433. end
  1434. Part.Parent=nil
  1435. end),prt,msh)
  1436. end
  1437.  
  1438. function BreakEffect(brickcolor,cframe,x1,y1,z1)
  1439. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1440. prt.Anchored=true
  1441. prt.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1442. local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  1443. game:GetService("Debris"):AddItem(prt,2)
  1444. coroutine.resume(coroutine.create(function(Part,CF,Numbb,randnumb)
  1445. CF=Part.CFrame
  1446. Numbb=0
  1447. randnumb=math.random()/10
  1448. rand1=math.random()/10
  1449. for i=0,1,rand1 do
  1450. wait()
  1451. CF=CF*cf(0,math.random()/2,0)
  1452. --Part.CFrame=Part.CFrame*euler(0.5,0,0)*cf(0,1,0)
  1453. Part.CFrame=CF*euler(Numbb,0,0)
  1454. Part.Transparency=i
  1455. Numbb=Numbb+randnumb
  1456. end
  1457. Part.Parent=nil
  1458. end),prt,CF,Numbb,randnumb)
  1459. end
  1460.  
  1461. function MagicWaveThing(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  1462. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1463. prt.Anchored=true
  1464. prt.CFrame=cframe
  1465. msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=1051557",vt(0,0,0),vt(x1,y1,z1))
  1466. game:GetService("Debris"):AddItem(prt,5)
  1467. coroutine.resume(coroutine.create(function(Part,Mesh)
  1468. for i=0,1,delay do
  1469. wait()
  1470. Part.CFrame=Part.CFrame*euler(0,0.7,0)
  1471. Part.Transparency=i
  1472. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1473. end
  1474. Part.Parent=nil
  1475. end),prt,msh)
  1476. end
  1477.  
  1478. function WaveEffect(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  1479. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1480. prt.Anchored=true
  1481. prt.CFrame=cframe
  1482. msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=20329976",vt(0,0,0),vt(x1,y1,z1))
  1483. game:GetService("Debris"):AddItem(prt,2)
  1484. coroutine.resume(coroutine.create(function(Part,Mesh)
  1485. for i=0,1,delay do
  1486. wait()
  1487. Part.CFrame=Part.CFrame*cf(0,y3/2,0)
  1488. Part.Transparency=i
  1489. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1490. end
  1491. Part.Parent=nil
  1492. end),prt,msh)
  1493. end
  1494.  
  1495. function StravEffect(brickcolor,cframe,x,y,z,x1,y1,z1,delay)
  1496. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1497. prt.Anchored=true
  1498. prt.CFrame=cframe*cf(x,y,z)
  1499. msh=mesh("SpecialMesh",prt,"FileMesh","rbxassetid://168892363",vt(0,0,0),vt(x1,y1,z1))
  1500. game:GetService("Debris"):AddItem(prt,5)
  1501. coroutine.resume(coroutine.create(function(Part,Mesh,ex,why,zee)
  1502. local num=math.random()
  1503. local num2=math.random(-3,2)+math.random()
  1504. local numm=0
  1505. for i=0,1,delay*2 do
  1506. swait()
  1507. Part.CFrame=cframe*euler(0,numm*num*10,0)*cf(ex,why,zee)*cf(-i*10,num2,0)
  1508. Part.Transparency=i
  1509. numm=numm+0.01
  1510. end
  1511. Part.Parent=nil
  1512. Mesh.Parent=nil
  1513. end),prt,msh,x,y,z)
  1514. end
  1515.  
  1516. Damagefunc=function(hit,minim,maxim,knockback,Type,Property,Delay,KnockbackType,decreaseblock)
  1517. if hit.Parent==nil then
  1518. return
  1519. end
  1520. h=hit.Parent:FindFirstChild("Humanoid")
  1521. for _,v in pairs(hit.Parent:children()) do
  1522. if v:IsA("Humanoid") then
  1523. h=v
  1524. end
  1525. end
  1526. if hit.Parent.Parent:FindFirstChild("Torso")~=nil then
  1527. h=hit.Parent.Parent:FindFirstChild("Humanoid")
  1528. end
  1529. if hit.Parent.className=="Hat" then
  1530. hit=hit.Parent.Parent:findFirstChild("Head")
  1531. end
  1532. if h~=nil and hit.Parent.Name~=Character.Name and hit.Parent:FindFirstChild("Torso")~=nil then
  1533. if hit.Parent:findFirstChild("DebounceHit")~=nil then if hit.Parent.DebounceHit.Value==true then return end end
  1534. --[[ if game.Players:GetPlayerFromCharacter(hit.Parent)~=nil then
  1535. return
  1536. end]]
  1537. -- hs(hit,1.2)
  1538. c=Instance.new("ObjectValue")
  1539. c.Name="creator"
  1540. c.Value=game:service("Players").LocalPlayer
  1541. c.Parent=h
  1542. game:GetService("Debris"):AddItem(c,.5)
  1543. Damage=math.random(minim,maxim)
  1544. -- h:TakeDamage(Damage)
  1545. blocked=false
  1546. block=hit.Parent:findFirstChild("Block")
  1547. if block~=nil then
  1548. print(block.className)
  1549. if block.className=="NumberValue" then
  1550. if block.Value>0 then
  1551. blocked=true
  1552. if decreaseblock==nil then
  1553. block.Value=block.Value-1
  1554. end
  1555. end
  1556. end
  1557. if block.className=="IntValue" then
  1558. if block.Value>0 then
  1559. blocked=true
  1560. if decreaseblock~=nil then
  1561. block.Value=block.Value-1
  1562. end
  1563. end
  1564. end
  1565. end
  1566. if blocked==false then
  1567. -- h:TakeDamage(Damage)
  1568. h.Health=h.Health-Damage
  1569. showDamage(hit.Parent,Damage,.5,TorsoColor)
  1570. else
  1571. h.Health=h.Health-(Damage/2)
  1572. showDamage(hit.Parent,Damage/2,.5,BrickColor.new("Institutional White"))
  1573. end
  1574. if Type=="Knockdown" then
  1575. hum=hit.Parent.Humanoid
  1576. hum.PlatformStand=true
  1577. coroutine.resume(coroutine.create(function(HHumanoid)
  1578. swait(1)
  1579. HHumanoid.PlatformStand=false
  1580. end),hum)
  1581. local angle=(hit.Position-(Property.Position+Vector3.new(0,0,0))).unit
  1582. --hit.CFrame=CFrame.new(hit.Position,Vector3.new(angle.x,hit.Position.y,angle.z))*CFrame.fromEulerAnglesXYZ(math.pi/4,0,0)
  1583. local bodvol=Instance.new("BodyVelocity")
  1584. bodvol.velocity=angle*knockback
  1585. bodvol.P=5000
  1586. bodvol.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
  1587. bodvol.Parent=hit
  1588. rl=Instance.new("BodyAngularVelocity")
  1589. rl.P=3000
  1590. rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000
  1591. rl.angularvelocity=Vector3.new(math.random(-10,10),math.random(-10,10),math.random(-10,10))
  1592. rl.Parent=hit
  1593. game:GetService("Debris"):AddItem(bodvol,.5)
  1594. game:GetService("Debris"):AddItem(rl,.5)
  1595. elseif Type=="Normal" then
  1596. vp=Instance.new("BodyVelocity")
  1597. vp.P=500
  1598. vp.maxForce=Vector3.new(math.huge,0,math.huge)
  1599. -- vp.velocity=Character.Torso.CFrame.lookVector*Knockback
  1600. if KnockbackType==1 then
  1601. vp.velocity=Property.CFrame.lookVector*knockback+Property.Velocity/1.05
  1602. elseif KnockbackType==2 then
  1603. vp.velocity=Property.CFrame.lookVector*knockback
  1604. end
  1605. if knockback>0 then
  1606. vp.Parent=hit.Parent.Torso
  1607. end
  1608. game:GetService("Debris"):AddItem(vp,.5)
  1609. elseif Type=="Up" then
  1610. local bodyVelocity=Instance.new("BodyVelocity")
  1611. bodyVelocity.velocity=vt(0,10,0)
  1612. bodyVelocity.P=1000
  1613. bodyVelocity.maxForce=Vector3.new(1e+009, 1e+009, 1e+009)
  1614. bodyVelocity.Parent=hit
  1615. game:GetService("Debris"):AddItem(bodyVelocity,1)
  1616. rl=Instance.new("BodyAngularVelocity")
  1617. rl.P=3000
  1618. rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000
  1619. rl.angularvelocity=Vector3.new(math.random(-20,20),math.random(-20,20),math.random(-20,20))
  1620. rl.Parent=hit
  1621. game:GetService("Debris"):AddItem(rl,.5)
  1622. elseif Type=="Snare" then
  1623. bp=Instance.new("BodyPosition")
  1624. bp.P=2000
  1625. bp.D=100
  1626. bp.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  1627. bp.position=hit.Parent.Torso.Position
  1628. bp.Parent=hit.Parent.Torso
  1629. game:GetService("Debris"):AddItem(bp,1)
  1630. elseif Type=="Target" then
  1631. if Targetting==false then
  1632. ZTarget=hit.Parent.Torso
  1633. coroutine.resume(coroutine.create(function(Part)
  1634. so("http://www.roblox.com/asset/?id=15666462",Part,1,1.5)
  1635. swait(5)
  1636. so("http://www.roblox.com/asset/?id=15666462",Part,1,1.5)
  1637. end),ZTarget)
  1638. TargHum=ZTarget.Parent:findFirstChild("Humanoid")
  1639. targetgui=Instance.new("BillboardGui")
  1640. targetgui.Parent=ZTarget
  1641. targetgui.Size=UDim2.new(10,100,10,100)
  1642. targ=Instance.new("ImageLabel")
  1643. targ.Parent=targetgui
  1644. targ.BackgroundTransparency=1
  1645. targ.Image="rbxassetid://4834067"
  1646. targ.Size=UDim2.new(1,0,1,0)
  1647. cam.CameraType="Scriptable"
  1648. cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
  1649. dir=Vector3.new(cam.CoordinateFrame.lookVector.x,0,cam.CoordinateFrame.lookVector.z)
  1650. workspace.CurrentCamera.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
  1651. Targetting=true
  1652. RocketTarget=ZTarget
  1653. for i=1,Property do
  1654. --while Targetting==true and Humanoid.Health>0 and Character.Parent~=nil do
  1655. if Humanoid.Health>0 and Character.Parent~=nil and TargHum.Health>0 and TargHum.Parent~=nil and Targetting==true then
  1656. swait()
  1657. end
  1658. --workspace.CurrentCamera.CoordinateFrame=CFrame.new(Head.CFrame.p,Head.CFrame.p+rmdir*100)
  1659. cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
  1660. dir=Vector3.new(cam.CoordinateFrame.lookVector.x,0,cam.CoordinateFrame.lookVector.z)
  1661. cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)*cf(0,5,10)*euler(-0.3,0,0)
  1662. end
  1663. Targetting=false
  1664. RocketTarget=nil
  1665. targetgui.Parent=nil
  1666. cam.CameraType="Custom"
  1667. end
  1668. end
  1669. debounce=Instance.new("BoolValue")
  1670. debounce.Name="DebounceHit"
  1671. debounce.Parent=hit.Parent
  1672. debounce.Value=true
  1673. game:GetService("Debris"):AddItem(debounce,Delay)
  1674. c=Instance.new("ObjectValue")
  1675. c.Name="creator"
  1676. c.Value=Player
  1677. c.Parent=h
  1678. game:GetService("Debris"):AddItem(c,.5)
  1679. CRIT=false
  1680. hitDeb=true
  1681. AttackPos=6
  1682. end
  1683. end
  1684.  
  1685. showDamage=function(Char,Dealt,du,Color)
  1686. m=Instance.new("Model")
  1687. m.Name=tostring(Dealt)
  1688. h=Instance.new("Humanoid")
  1689. h.Health=0
  1690. h.MaxHealth=0
  1691. h.Parent=m
  1692. c=Instance.new("Part")
  1693. c.Transparency=0
  1694. c.BrickColor=TorsoColor
  1695. c.Name="Head"
  1696. c.TopSurface=0
  1697. c.BottomSurface=0
  1698. c.formFactor="Plate"
  1699. c.Size=Vector3.new(1,.4,1)
  1700. ms=Instance.new("CylinderMesh")
  1701. ms.Scale=Vector3.new(.8,.8,.8)
  1702. so("http://www.roblox.com/asset/?id=199149269",c,1,1)
  1703. if CRIT==true then
  1704. ms.Scale=Vector3.new(1,1.25,1)
  1705. end
  1706. ms.Parent=c
  1707. c.Reflectance=0
  1708. Instance.new("BodyGyro").Parent=c
  1709. c.Parent=m
  1710. if Char:findFirstChild("Head")~=nil then
  1711. c.CFrame=CFrame.new(Char["Head"].CFrame.p+Vector3.new(0,1.5,0))
  1712. elseif Char.Parent:findFirstChild("Head")~=nil then
  1713. c.CFrame=CFrame.new(Char.Parent["Head"].CFrame.p+Vector3.new(0,1.5,0))
  1714. end
  1715. f=Instance.new("BodyPosition")
  1716. f.P=2000
  1717. f.D=100
  1718. f.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  1719. f.position=c.Position+Vector3.new(0,3,0)
  1720. f.Parent=c
  1721. game:GetService("Debris"):AddItem(m,.5+du)
  1722. c.CanCollide=false
  1723. m.Parent=workspace
  1724. c.CanCollide=false
  1725. end
  1726.  
  1727. Player=game:GetService('Players').LocalPlayer
  1728. Character=Player.Character
  1729. Mouse=Player:GetMouse()
  1730. m=Instance.new('Model',Character)
  1731.  
  1732.  
  1733. local function weldBetween(a, b)
  1734. local weldd = Instance.new("ManualWeld")
  1735. a = weldd.Part0
  1736. b = weldd.Part1
  1737. weldd.C0 = CFrame.new()
  1738. weldd.C1 = b.CFrame:inverse() * a.CFrame
  1739. weldd.Parent = a
  1740. return weldd
  1741. end
  1742.  
  1743. it=Instance.new
  1744.  
  1745. function nooutline(part)
  1746. part.TopSurface,part.BottomSurface,part.LeftSurface,part.RightSurface,part.FrontSurface,part.BackSurface = 10,10,10,10,10,10
  1747. end
  1748.  
  1749. function part(formfactor,parent,material,reflectance,transparency,brickcolor,name,size)
  1750. local fp=it("Part")
  1751. fp.formFactor=formfactor
  1752. fp.Parent=parent
  1753. fp.Reflectance=reflectance
  1754. fp.Transparency=transparency
  1755. fp.CanCollide=false
  1756. fp.Locked=true
  1757. fp.BrickColor=BrickColor.new(tostring(brickcolor))
  1758. fp.Name=name
  1759. fp.Size=size
  1760. fp.Position=Character.Torso.Position
  1761. nooutline(fp)
  1762. fp.Material=material
  1763. fp:BreakJoints()
  1764. return fp
  1765. end
  1766.  
  1767. function mesh(Mesh,part,meshtype,meshid,offset,scale)
  1768. local mesh=it(Mesh)
  1769. mesh.Parent=part
  1770. if Mesh=="SpecialMesh" then
  1771. mesh.MeshType=meshtype
  1772. mesh.MeshId=meshid
  1773. end
  1774. mesh.Offset=offset
  1775. mesh.Scale=scale
  1776. return mesh
  1777. end
  1778.  
  1779. function weld(parent,part0,part1,c0,c1)
  1780. local weld=it("Weld")
  1781. weld.Parent=parent
  1782. weld.Part0=part0
  1783. weld.Part1=part1
  1784. weld.C0=c0
  1785. weld.C1=c1
  1786. return weld
  1787. end
  1788.  
  1789. local modelzorz=Instance.new("Model")
  1790. modelzorz.Parent=Character
  1791. modelzorz.Name="Claw1"
  1792.  
  1793. Handle=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,TorsoColor,"Handle",Vector3.new(1.20000005, 1.20000005, 1))
  1794. 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))
  1795. mesh("SpecialMesh",Handle,Enum.MeshType.FileMesh,"http://www.roblox.com/Asset/?id=0",Vector3.new(0, 0, 0),Vector3.new(1, 1, 5))
  1796. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"White","Part",Vector3.new(2.20000005, 1, 1))
  1797. 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))
  1798. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,TorsoColor,"Part",Vector3.new(1, 0.400000006, 1))
  1799. 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))
  1800. 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))
  1801. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"White","Part",Vector3.new(2.20000005, 1, 1))
  1802. 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))
  1803. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"White","Part",Vector3.new(2.20000005, 1, 1))
  1804. 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))
  1805. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"White","Part",Vector3.new(2.20000005, 1, 1))
  1806. 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))
  1807. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"White","Part",Vector3.new(2.20000005, 1, 1))
  1808. 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))
  1809. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"White","Part",Vector3.new(2.20000005, 1, 1))
  1810. 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))
  1811. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"White","Part",Vector3.new(2.20000005, 1, 1))
  1812. 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))
  1813. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"White","Part",Vector3.new(2.20000005, 1, 1))
  1814. 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))
  1815. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"White","Part",Vector3.new(2.20000005, 1, 1))
  1816. 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))
  1817. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,TorsoColor,"Part",Vector3.new(1, 0.400000006, 1))
  1818. 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))
  1819. 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))
  1820. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"White","Part",Vector3.new(2.20000005, 1, 1))
  1821. 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))
  1822. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,TorsoColor,"Part",Vector3.new(1, 0.400000006, 1))
  1823. 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))
  1824. 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))
  1825. Gear=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Institutional White","Part",Vector3.new(4.29999971, 4.30000019, 1))
  1826. 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))
  1827. mesh("SpecialMesh",Gear,Enum.MeshType.FileMesh,"http://www.roblox.com/asset?id=3270017",Vector3.new(0, 0, 0),Vector3.new(5, 5, 15))
  1828. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,TorsoColor,"Part",Vector3.new(1, 0.400000006, 1))
  1829. 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))
  1830. 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))
  1831. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,TorsoColor,"Part",Vector3.new(1, 0.400000006, 1))
  1832. 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))
  1833. 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))
  1834.  
  1835. local modelzorz2=Instance.new("Model")
  1836. modelzorz2.Parent=Character
  1837. modelzorz2.Name="Claw2"
  1838.  
  1839. Handle2=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,TorsoColor,"Handle",Vector3.new(1.20000005, 1.20000005, 1))
  1840. 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))
  1841. mesh("SpecialMesh",Handle2,Enum.MeshType.FileMesh,"http://www.roblox.com/Asset/?id=0",Vector3.new(0, 0, 0),Vector3.new(1, 1, 5))
  1842. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"White","Part",Vector3.new(2.20000005, 1, 1))
  1843. 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))
  1844. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"White","Part",Vector3.new(2.20000005, 1, 1))
  1845. 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))
  1846. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"White","Part",Vector3.new(2.20000005, 1, 1))
  1847. 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))
  1848. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,TorsoColor,"Part",Vector3.new(1, 0.400000006, 1))
  1849. 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))
  1850. 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))
  1851. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,TorsoColor,"Part",Vector3.new(1, 0.400000006, 1))
  1852. 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))
  1853. 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))
  1854. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"White","Part",Vector3.new(2.20000005, 1, 1))
  1855. 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))
  1856. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,TorsoColor,"Part",Vector3.new(1, 0.400000006, 1))
  1857. 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))
  1858. 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))
  1859. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"White","Part",Vector3.new(2.20000005, 1, 1))
  1860. 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))
  1861. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,TorsoColor,"Part",Vector3.new(1, 0.400000006, 1))
  1862. 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))
  1863. 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))
  1864. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"White","Part",Vector3.new(2.20000005, 1, 1))
  1865. 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))
  1866. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,TorsoColor,"Part",Vector3.new(1, 0.400000006, 1))
  1867. 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))
  1868. 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))
  1869. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"White","Part",Vector3.new(2.20000005, 1, 1))
  1870. 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))
  1871. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"White","Part",Vector3.new(2.20000005, 1, 1))
  1872. 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))
  1873. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"White","Part",Vector3.new(2.20000005, 1, 1))
  1874. 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))
  1875. Gear2=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Institutional White","Part",Vector3.new(4.29999971, 4.30000019, 1))
  1876. 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))
  1877. mesh("SpecialMesh",Gear2,Enum.MeshType.FileMesh,"http://www.roblox.com/asset?id=3270017",Vector3.new(0, 0, 0),Vector3.new(5, 5, 15))
  1878. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"White","Part",Vector3.new(2.20000005, 1, 1))
  1879. 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))
  1880.  
  1881. local modelzorz3=Instance.new("Model")
  1882. modelzorz3.Parent=Character
  1883. modelzorz3.Name="Eye"
  1884.  
  1885. handle=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,TorsoColor,"Handle",Vector3.new(1.20000005, 1.20000005, 1.20000005))
  1886. handleweld=weld(m,Character["Torso"],handle,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-2.22326851, -3.5562191, -0.038143158, 0, 0, 1, 0, 1, 0, -1, 0, 0))
  1887. mesh("SpecialMesh",handle,Enum.MeshType.FileMesh,"http://www.roblox.com/Asset/?id=0",Vector3.new(0, 0, 0),Vector3.new(1, 3, 1))
  1888.  
  1889. local moosick = it("Sound",Character)
  1890. moosick.SoundId = "rbxassetid://0"
  1891. moosick.Looped = true
  1892. moosick.Pitch = 1
  1893. moosick.Volume = 1
  1894. moosick:Play()
  1895.  
  1896. anim = Character:findFirstChild("Animate")
  1897. if anim then
  1898. anim:Destroy()
  1899. end
  1900.  
  1901. local particleemitter = Instance.new("ParticleEmitter", Handle)
  1902. particleemitter.VelocitySpread = 180
  1903. particleemitter.Lifetime = NumberRange.new(0.4)
  1904. particleemitter.LockedToPart = true
  1905. particleemitter.Speed = NumberRange.new(2)
  1906. particleemitter.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, 1), NumberSequenceKeypoint.new(1, 5.563)})
  1907. particleemitter.RotSpeed = NumberRange.new(-45, 45)
  1908. particleemitter.Rate = 100
  1909. particleemitter.Rotation = NumberRange.new(-45, 45)
  1910. particleemitter.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 2), NumberSequenceKeypoint.new(1, 2), NumberSequenceKeypoint.new(1, 2)})
  1911. particleemitter.LightEmission = 0
  1912. particleemitter.Color = ColorSequence.new(Color3.new(255, 0, 0), Color3.new(255, 0, 0))
  1913.  
  1914. local particleemitter = Instance.new("ParticleEmitter", Handle2)
  1915. particleemitter.VelocitySpread = 180
  1916. particleemitter.Lifetime = NumberRange.new(0.4)
  1917. particleemitter.LockedToPart = true
  1918. particleemitter.Speed = NumberRange.new(2)
  1919. particleemitter.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, 1), NumberSequenceKeypoint.new(1, 5.563)})
  1920. particleemitter.RotSpeed = NumberRange.new(-45, 45)
  1921. particleemitter.Rate = 100
  1922. particleemitter.Rotation = NumberRange.new(-45, 45)
  1923. particleemitter.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 2), NumberSequenceKeypoint.new(1, 2), NumberSequenceKeypoint.new(1, 2)})
  1924. particleemitter.LightEmission = 0
  1925. particleemitter.Color = ColorSequence.new(Color3.new(255, 0, 0), Color3.new(255, 0, 0))
  1926.  
  1927. local particleemitter = Instance.new("ParticleEmitter", handle)
  1928. particleemitter.VelocitySpread = 180
  1929. particleemitter.LockedToPart = true
  1930. particleemitter.Lifetime = NumberRange.new(0.5)
  1931. particleemitter.Speed = NumberRange.new(2)
  1932. particleemitter.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, 1), NumberSequenceKeypoint.new(1, 7.563)})
  1933. particleemitter.RotSpeed = NumberRange.new(-45, 45)
  1934. particleemitter.Rate = 100
  1935. particleemitter.Rotation = NumberRange.new(-45, 45)
  1936. particleemitter.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 2), NumberSequenceKeypoint.new(1, 2), NumberSequenceKeypoint.new(1, 2)})
  1937. particleemitter.LightEmission = 0.8
  1938. particleemitter.Color = ColorSequence.new(Color3.new(255, 0, 0), Color3.new(255, 0, 0))
  1939.  
  1940. local light = Instance.new("PointLight", Character.Torso)
  1941. light.Color = Color3.new(255,0,0)
  1942. light.Brightness = 2
  1943. light.Range = 4
  1944.  
  1945. particleemitter.Enabled = true
  1946.  
  1947. local Footsteps = it("Sound",Character.Torso)
  1948. Footsteps.SoundId = "rbxassetid://142665235"
  1949. Footsteps.Looped = true
  1950. Footsteps.Pitch = 0.8
  1951. Footsteps.Volume = 0.3
  1952.  
  1953. local Footsteps2 = it("Sound",Character.Torso)
  1954. Footsteps2.SoundId = "rbxassetid://142665235"
  1955. Footsteps2.Looped = true
  1956. Footsteps2.Pitch = 1
  1957. Footsteps2.Volume = 0.4
  1958.  
  1959. local cam = game.Workspace.CurrentCamera
  1960.  
  1961. --cam.CameraSubject = Character
  1962.  
  1963. for i,v in pairs(Head:children()) do
  1964. if v:IsA("Sound") then
  1965. v:Destroy()
  1966. end
  1967. end
  1968.  
  1969. mouse.Button1Down:connect(function()
  1970. if attack==false and attacktype==1 then
  1971. attacktype=2
  1972. attackone()
  1973. elseif attack==false and attacktype==2 then
  1974. attacktype=3
  1975. attacktwo()
  1976. elseif attack==false and attacktype==3 then
  1977. attacktype=4
  1978. attackthree()
  1979. elseif attack==false and attacktype==4 then
  1980. attacktype=1
  1981. attackfour()
  1982. end
  1983. end)
  1984.  
  1985. mouse.KeyDown:connect(function(k)
  1986. k=k:lower()
  1987. if k=='e' then
  1988. if attack==false and mana>=20 then
  1989. Push()
  1990. end
  1991. elseif k=='g' then
  1992. if attack==false and mana>=50 then
  1993. Twirl()
  1994. end
  1995. elseif k=='v' then
  1996. if attack==false and mana>=25 then
  1997. MagicJump()
  1998. end
  1999. elseif k=='q' then
  2000. if attack==false then
  2001. idle=1000
  2002. end
  2003. elseif k=='h' then
  2004. if attack==false then
  2005. mana=100
  2006. end
  2007. elseif k=='y' then
  2008. if attack==false and mana>=100 then
  2009. Shred()
  2010. end
  2011. elseif k=='p' then
  2012. if attack==false and mana>=23 then
  2013. attackthree()
  2014. end
  2015. elseif k=='u' then
  2016. if attack==false and mana>=40 then
  2017. Spin()
  2018. end
  2019. elseif k=='r' then
  2020. if attack==false and mana>=20 then
  2021. Clap()
  2022. end
  2023. elseif k=='t' then
  2024. if attack==false then
  2025. Hai()
  2026. end
  2027. elseif k==',' then
  2028. if attack==false then
  2029. Humanoid.WalkSpeed=(24)
  2030. end
  2031. elseif k=='j' then
  2032. if attack==false then
  2033. Humanoid.Health = 10
  2034. print("Congrats, you commited suicide.")
  2035. end
  2036. end
  2037. end)
  2038.  
  2039. function MagicCircle(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  2040. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2041. prt.Anchored=true
  2042. prt.CFrame=cframe
  2043. local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  2044. game:GetService("Debris"):AddItem(prt,2)
  2045. coroutine.resume(coroutine.create(function(Part,Mesh)
  2046. for i=0,1,delay do
  2047. wait()
  2048. Part.CFrame=Part.CFrame
  2049. Part.Transparency=i
  2050. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2051. end
  2052. Part.Parent=nil
  2053. end),prt,msh)
  2054. end
  2055.  
  2056. TrailDeb = false
  2057.  
  2058. function equipanim()
  2059. attack=true
  2060. Humanoid.WalkSpeed = 0
  2061. if TrailDeb == false then
  2062. TrailDeb = true
  2063. end
  2064.  
  2065.  
  2066. coroutine.wrap(function()
  2067. local Old = handle.CFrame.p
  2068. while wait()do
  2069. if not TrailDeb then break end
  2070. local New = handle.CFrame.p
  2071. local Mag =(Old -New).magnitude
  2072. local Dis =(Old +New)/2
  2073. local Trail = Instance.new("Part",Character)
  2074. Trail.Material = "Neon"
  2075. Trail.Anchored = true
  2076. Trail.CanCollide = false
  2077. Trail.BrickColor = TorsoColor
  2078. Trail.Size = Vector3.new(0.2,Mag,0.2)
  2079. Trail.TopSurface = 0
  2080. Trail.BottomSurface = 0
  2081. Trail.formFactor = "Custom"
  2082. Trail.CFrame = CFrame.new(Dis,New)* CFrame.Angles(math.pi/2,0,0)
  2083. local ms = Instance.new("BlockMesh",Trail)
  2084. ms.Scale = Vector3.new(1,1,1)
  2085. local TM = Instance.new("CylinderMesh",Trail)
  2086. TM.Scale = Vector3.new(1,1,1)
  2087. Old = New
  2088. coroutine.wrap(function()
  2089. for i = 1,0,-0.1 do
  2090. wait()
  2091. TM.Scale = TM.Scale * Vector3.new(i,1,i)
  2092. end
  2093. Trail:remove()
  2094. end)()
  2095. coroutine.wrap(function()
  2096. for i = 1,10 do
  2097. wait()
  2098. Trail.Transparency = Trail.Transparency +0.1
  2099. end end)()end end)()
  2100. coroutine.wrap(function()
  2101. local Old = Handle.CFrame.p
  2102. while wait()do
  2103. if not TrailDeb then break end
  2104. local New = Handle.CFrame.p
  2105. local Mag =(Old -New).magnitude
  2106. local Dis =(Old +New)/2
  2107. local Trail = Instance.new("Part",Character)
  2108. Trail.Material = "Neon"
  2109. Trail.Anchored = true
  2110. Trail.CanCollide = false
  2111. Trail.BrickColor = TorsoColor
  2112. Trail.Size = Vector3.new(0.2,Mag,0.2)
  2113. Trail.TopSurface = 0
  2114. Trail.BottomSurface = 0
  2115. Trail.formFactor = "Custom"
  2116. Trail.CFrame = CFrame.new(Dis,New)* CFrame.Angles(math.pi/2,0,0)
  2117. local ms = Instance.new("BlockMesh",Trail)
  2118. ms.Scale = Vector3.new(1,1,1)
  2119. local TM = Instance.new("CylinderMesh",Trail)
  2120. TM.Scale = Vector3.new(1,1,1)
  2121. Old = New
  2122. coroutine.wrap(function()
  2123. for i = 1,0,-0.1 do
  2124. wait()
  2125. TM.Scale = TM.Scale * Vector3.new(i,1,i)
  2126. end
  2127. Trail:remove()
  2128. end)()
  2129. coroutine.wrap(function()
  2130. for i = 1,10 do
  2131. wait()
  2132. Trail.Transparency = Trail.Transparency +0.1
  2133. end end)()end end)()
  2134. coroutine.wrap(function()
  2135. local Old = Handle2.CFrame.p
  2136. while wait()do
  2137. if not TrailDeb then break end
  2138. local New = Handle2.CFrame.p
  2139. local Mag =(Old -New).magnitude
  2140. local Dis =(Old +New)/2
  2141. local Trail = Instance.new("Part",Character)
  2142. Trail.Material = "Neon"
  2143. Trail.Anchored = true
  2144. Trail.CanCollide = false
  2145. Trail.BrickColor = TorsoColor
  2146. Trail.Size = Vector3.new(0.2,Mag,0.2)
  2147. Trail.TopSurface = 0
  2148. Trail.BottomSurface = 0
  2149. Trail.formFactor = "Custom"
  2150. Trail.CFrame = CFrame.new(Dis,New)* CFrame.Angles(math.pi/2,0,0)
  2151. local ms = Instance.new("BlockMesh",Trail)
  2152. ms.Scale = Vector3.new(1,1,1)
  2153. local TM = Instance.new("CylinderMesh",Trail)
  2154. TM.Scale = Vector3.new(1,1,1)
  2155. Old = New
  2156. coroutine.wrap(function()
  2157. for i = 1,0,-0.1 do
  2158. wait()
  2159. TM.Scale = TM.Scale * Vector3.new(i,1,i)
  2160. end
  2161. Trail:remove()
  2162. end)()
  2163. coroutine.wrap(function()
  2164. for i = 1,10 do
  2165. wait()
  2166. Trail.Transparency = Trail.Transparency +0.1
  2167. end end)()end end)()
  2168. so("http://www.roblox.com/asset/?id=357559831",Torso,1,0.5)
  2169. for i=0,1,0.005 do
  2170. swait()
  2171. moosick.Volume = 0+1*i
  2172. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,100-100*i)*euler(0,0,0+90*i),.2)
  2173. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0.1,0,0),.2)
  2174. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.05)
  2175. Handle2weld.C0=clerp(Handle2weld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.05)
  2176. Handleweld.C0=clerp(Handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.05)
  2177. LW.C0=clerp(LW.C0,cf(-1,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(40)),.2)
  2178. RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(-40)),.2)
  2179. end
  2180. for i=0,1,0.005 do
  2181. swait()
  2182. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,2.5)*euler(0,0,0+90*i),.2)
  2183. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0.1,0,0),.2)
  2184. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.05)
  2185. Handle2weld.C0=clerp(Handle2weld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.05)
  2186. Handleweld.C0=clerp(Handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.05)
  2187. LW.C0=clerp(LW.C0,cf(-1,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(40)),.2)
  2188. RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(-40)),.2)
  2189. end
  2190. so("http://www.roblox.com/asset/?id=35935204",Character,1,0.9)
  2191. so("http://www.roblox.com/asset/?id=35935204",Character,1,0.9)
  2192. for i=0,1,0.005 do
  2193. swait()
  2194. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,5+1*i)*angles(math.rad(-15),math.rad(0),math.rad(0)),0.1)
  2195. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-25),math.rad(0),math.rad(0)),0.1)
  2196. handleweld.C0=clerp(handleweld.C0,cf(0,0+1*i,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.1)
  2197. Handle2weld.C0=clerp(Handle2weld.C0,cf(0-1*i,0,0)*angles(math.rad(90),math.rad(15),math.rad(0)),0.1)
  2198. Handleweld.C0=clerp(Handleweld.C0,cf(0+1*i,0,0)*angles(math.rad(90),math.rad(-15),math.rad(0)),0.1)
  2199. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-30),math.rad(0),math.rad(-30)),0.1)
  2200. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-30),math.rad(0),math.rad(30)),0.1)
  2201. 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)
  2202. 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)
  2203. end
  2204. for i=0,1,0.04 do
  2205. swait()
  2206. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-1)*angles(math.rad(40),math.rad(0),math.rad(-40)),.3)
  2207. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  2208. Handleweld.C0=clerp(Handleweld.C0,cf(1.5,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  2209. Handle2weld.C0=clerp(Handle2weld.C0,cf(-1.5,3,0)*angles(math.rad(0),math.rad(180),math.rad(180)),.2)
  2210. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-40),math.rad(0),math.rad(40)),.3)
  2211. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(70),math.rad(0),math.rad(-45)),.3)
  2212. 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)
  2213. 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)
  2214. end
  2215. --dmgstop()
  2216. attack=false
  2217. Humanoid.WalkSpeed = 12
  2218. if TrailDeb == true then
  2219. TrailDeb = false
  2220. end
  2221. end
  2222.  
  2223. function attackone()
  2224. attack=true
  2225. if TrailDeb == false then
  2226. TrailDeb = true
  2227. end
  2228.  
  2229.  
  2230. coroutine.wrap(function()
  2231. local Old = Handle.CFrame.p
  2232. while wait()do
  2233. if not TrailDeb then break end
  2234. local New = Handle.CFrame.p
  2235. local Mag =(Old -New).magnitude
  2236. local Dis =(Old +New)/2
  2237. local Trail = Instance.new("Part",Character)
  2238. Trail.Material = "Neon"
  2239. Trail.Anchored = true
  2240. Trail.CanCollide = false
  2241. Trail.BrickColor = TorsoColor
  2242. Trail.Size = Vector3.new(0.2,Mag,0.2)
  2243. Trail.TopSurface = 0
  2244. Trail.BottomSurface = 0
  2245. Trail.formFactor = "Custom"
  2246. Trail.CFrame = CFrame.new(Dis,New)* CFrame.Angles(math.pi/2,0,0)
  2247. local ms = Instance.new("BlockMesh",Trail)
  2248. ms.Scale = Vector3.new(1,1,1)
  2249. local TM = Instance.new("CylinderMesh",Trail)
  2250. TM.Scale = Vector3.new(1,1,1)
  2251. Old = New
  2252. coroutine.wrap(function()
  2253. for i = 1,0,-0.1 do
  2254. wait()
  2255. TM.Scale = TM.Scale * Vector3.new(i,1,i)
  2256. end
  2257. Trail:remove()
  2258. end)()
  2259. coroutine.wrap(function()
  2260. for i = 1,10 do
  2261. wait()
  2262. Trail.Transparency = Trail.Transparency +0.1
  2263. end end)()end end)()
  2264. con1=Gear.Touched:connect(function(hit) Damagefunc(hit,10,20,math.random(20,40),"Normal",RootPart,.2,1) end)
  2265. for i=0,1,0.08 do
  2266. swait()
  2267. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(-5),math.rad(0),math.rad(-10)),.3)
  2268. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(5),math.rad(0),math.rad(10)),.3)
  2269. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  2270. Handleweld.C0=clerp(Handleweld.C0,cf(-3,1,2)*angles(math.rad(90),math.rad(0),math.rad(0)),.2)
  2271. Handle2weld.C0=clerp(Handle2weld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  2272. RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*euler(.5,1.8,1.5),.3)
  2273. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(2),math.rad(25),math.rad(-15)),.3)
  2274. end
  2275. so("http://www.roblox.com/asset/?id=231917758",Handle,1,.9)
  2276. so("http://www.roblox.com/asset/?id=159972643",Torso,1,1)
  2277. for i=0,1,0.1 do
  2278. swait()
  2279. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(10),math.rad(0),math.rad(20)),.3)
  2280. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(-20)),.3)
  2281. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  2282. Handleweld.C0=clerp(Handleweld.C0,cf(-4,1,-8)*angles(math.rad(-85),math.rad(0),math.rad(0)),.2)
  2283. Handle2weld.C0=clerp(Handle2weld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  2284. RW.C0=clerp(RW.C0,cf(1.5,0.5,-0.5)*euler(80,1.8,1.5),.3)
  2285. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(2),math.rad(25),math.rad(-15)),.3)
  2286. end
  2287. --dmgstop()
  2288. attack=false
  2289. con1:disconnect()
  2290. if TrailDeb == true then
  2291. TrailDeb = false
  2292. end
  2293. end
  2294.  
  2295. function attacktwo()
  2296. attack=true
  2297. if TrailDeb == false then
  2298. TrailDeb = true
  2299. end
  2300.  
  2301.  
  2302. coroutine.wrap(function()
  2303. local Old = Handle2.CFrame.p
  2304. while wait()do
  2305. if not TrailDeb then break end
  2306. local New = Handle2.CFrame.p
  2307. local Mag =(Old -New).magnitude
  2308. local Dis =(Old +New)/2
  2309. local Trail = Instance.new("Part",Character)
  2310. Trail.Material = "Neon"
  2311. Trail.Anchored = true
  2312. Trail.CanCollide = false
  2313. Trail.BrickColor = TorsoColor
  2314. Trail.Size = Vector3.new(0.2,Mag,0.2)
  2315. Trail.TopSurface = 0
  2316. Trail.BottomSurface = 0
  2317. Trail.formFactor = "Custom"
  2318. Trail.CFrame = CFrame.new(Dis,New)* CFrame.Angles(math.pi/2,0,0)
  2319. local ms = Instance.new("BlockMesh",Trail)
  2320. ms.Scale = Vector3.new(1,1,1)
  2321. local TM = Instance.new("CylinderMesh",Trail)
  2322. TM.Scale = Vector3.new(1,1,1)
  2323. Old = New
  2324. coroutine.wrap(function()
  2325. for i = 1,0,-0.1 do
  2326. wait()
  2327. TM.Scale = TM.Scale * Vector3.new(i,1,i)
  2328. end
  2329. Trail:remove()
  2330. end)()
  2331. coroutine.wrap(function()
  2332. for i = 1,10 do
  2333. wait()
  2334. Trail.Transparency = Trail.Transparency +0.1
  2335. end end)()end end)()
  2336. con1=Gear2.Touched:connect(function(hit) Damagefunc(hit,10,20,math.random(20,40),"Normal",RootPart,.2,1) end)
  2337. for i=0,1,0.08 do
  2338. swait()
  2339. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(20)),.3)
  2340. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(-20)),.3)
  2341. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  2342. Handle2weld.C0=clerp(Handle2weld.C0,cf(-5,1,-5)*angles(math.rad(0),math.rad(0),math.rad(20)),.2)
  2343. Handleweld.C0=clerp(Handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  2344. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-30,0,-20),.3)
  2345. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-2),math.rad(-25),math.rad(15)),.3)
  2346. end
  2347. so("http://www.roblox.com/asset/?id=231917758",Handle2,1,.8)
  2348. so("http://www.roblox.com/asset/?id=159972627",Torso,1,1)
  2349. for i=0,1,0.1 do
  2350. swait()
  2351. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-20)),.3)
  2352. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(20)),.3)
  2353. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  2354. Handle2weld.C0=clerp(Handle2weld.C0,cf(10,1,-5)*angles(math.rad(0),math.rad(-80),math.rad(20)),.2)
  2355. Handleweld.C0=clerp(Handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  2356. LW.C0=clerp(LW.C0,cf(-1,0.5,-1)*euler(-30,0,20),.3)
  2357. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-2),math.rad(-25),math.rad(15)),.3)
  2358. end
  2359. --dmgstop()
  2360. attack=false
  2361. con1:disconnect()
  2362. if TrailDeb == true then
  2363. TrailDeb = false
  2364. end
  2365. end
  2366.  
  2367. function attackthree()
  2368. attack=true
  2369. if TrailDeb == false then
  2370. TrailDeb = true
  2371. end
  2372.  
  2373.  
  2374. coroutine.wrap(function()
  2375. local Old = Handle.CFrame.p
  2376. while wait()do
  2377. if not TrailDeb then break end
  2378. local New = Handle.CFrame.p
  2379. local Mag =(Old -New).magnitude
  2380. local Dis =(Old +New)/2
  2381. local Trail = Instance.new("Part",Character)
  2382. Trail.Material = "Neon"
  2383. Trail.Anchored = true
  2384. Trail.CanCollide = false
  2385. Trail.BrickColor = TorsoColor
  2386. Trail.Size = Vector3.new(0.2,Mag,0.2)
  2387. Trail.TopSurface = 0
  2388. Trail.BottomSurface = 0
  2389. Trail.formFactor = "Custom"
  2390. Trail.CFrame = CFrame.new(Dis,New)* CFrame.Angles(math.pi/2,0,0)
  2391. local ms = Instance.new("BlockMesh",Trail)
  2392. ms.Scale = Vector3.new(1,1,1)
  2393. local TM = Instance.new("CylinderMesh",Trail)
  2394. TM.Scale = Vector3.new(1,1,1)
  2395. Old = New
  2396. coroutine.wrap(function()
  2397. for i = 1,0,-0.1 do
  2398. wait()
  2399. TM.Scale = TM.Scale * Vector3.new(i,1,i)
  2400. end
  2401. Trail:remove()
  2402. end)()
  2403. coroutine.wrap(function()
  2404. for i = 1,10 do
  2405. wait()
  2406. Trail.Transparency = Trail.Transparency +0.1
  2407. end end)()end end)()
  2408. con1=Gear.Touched:connect(function(hit) Damagefunc(hit,10,20,math.random(20,40),"Up",RootPart,.2,1) end)
  2409. for i=0,1,0.08 do
  2410. swait()
  2411. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(10),math.rad(0),math.rad(0)),.3)
  2412. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,0),.2)
  2413. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  2414. Handleweld.C0=clerp(Handleweld.C0,cf(3,7,-1)*angles(math.rad(20),math.rad(0),math.rad(-120)),.2)
  2415. Handle2weld.C0=clerp(Handle2weld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  2416. RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*euler(0.5,-1.3,-0.1),.3)
  2417. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(2),math.rad(25),math.rad(-15)),.3)
  2418. end
  2419. so("http://www.roblox.com/asset/?id=231917758",Handle,1,1)
  2420. so("http://www.roblox.com/asset/?id=159882477",Torso,1,1)
  2421. for i=0,1,0.05 do
  2422. swait()
  2423. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  2424. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(5),math.rad(0),math.rad(0)),.3)
  2425. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  2426. Handleweld.C0=clerp(Handleweld.C0,cf(2,4,-3)*angles(math.rad(120),math.rad(0),math.rad(-120)),.2)
  2427. Handle2weld.C0=clerp(Handle2weld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  2428. RW.C0=clerp(RW.C0,cf(1.5,0.5,-0.5)*euler(2,-1.3,0.1),.3)
  2429. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(2),math.rad(25),math.rad(-15)),.3)
  2430. end
  2431. --dmgstop()
  2432. attack=false
  2433. con1:disconnect()
  2434. if TrailDeb == true then
  2435. TrailDeb = false
  2436. end
  2437. end
  2438.  
  2439. function attackfour()
  2440. attack=true
  2441. if TrailDeb == false then
  2442. TrailDeb = true
  2443. end
  2444.  
  2445.  
  2446. coroutine.wrap(function()
  2447. local Old = Handle2.CFrame.p
  2448. while wait()do
  2449. if not TrailDeb then break end
  2450. local New = Handle2.CFrame.p
  2451. local Mag =(Old -New).magnitude
  2452. local Dis =(Old +New)/2
  2453. local Trail = Instance.new("Part",Character)
  2454. Trail.Material = "Neon"
  2455. Trail.Anchored = true
  2456. Trail.CanCollide = false
  2457. Trail.BrickColor = TorsoColor
  2458. Trail.Size = Vector3.new(0.2,Mag,0.2)
  2459. Trail.TopSurface = 0
  2460. Trail.BottomSurface = 0
  2461. Trail.formFactor = "Custom"
  2462. Trail.CFrame = CFrame.new(Dis,New)* CFrame.Angles(math.pi/2,0,0)
  2463. local ms = Instance.new("BlockMesh",Trail)
  2464. ms.Scale = Vector3.new(1,1,1)
  2465. local TM = Instance.new("CylinderMesh",Trail)
  2466. TM.Scale = Vector3.new(1,1,1)
  2467. Old = New
  2468. coroutine.wrap(function()
  2469. for i = 1,0,-0.1 do
  2470. wait()
  2471. TM.Scale = TM.Scale * Vector3.new(i,1,i)
  2472. end
  2473. Trail:remove()
  2474. end)()
  2475. coroutine.wrap(function()
  2476. for i = 1,10 do
  2477. wait()
  2478. Trail.Transparency = Trail.Transparency +0.1
  2479. end end)()end end)()
  2480. coroutine.wrap(function()
  2481. local Old = Handle.CFrame.p
  2482. while wait()do
  2483. if not TrailDeb then break end
  2484. local New = Handle.CFrame.p
  2485. local Mag =(Old -New).magnitude
  2486. local Dis =(Old +New)/2
  2487. local Trail = Instance.new("Part",Character)
  2488. Trail.Material = "Neon"
  2489. Trail.Anchored = true
  2490. Trail.CanCollide = false
  2491. Trail.BrickColor = TorsoColor
  2492. Trail.Size = Vector3.new(0.2,Mag,0.2)
  2493. Trail.TopSurface = 0
  2494. Trail.BottomSurface = 0
  2495. Trail.formFactor = "Custom"
  2496. Trail.CFrame = CFrame.new(Dis,New)* CFrame.Angles(math.pi/2,0,0)
  2497. local ms = Instance.new("BlockMesh",Trail)
  2498. ms.Scale = Vector3.new(1,1,1)
  2499. local TM = Instance.new("CylinderMesh",Trail)
  2500. TM.Scale = Vector3.new(1,1,1)
  2501. Old = New
  2502. coroutine.wrap(function()
  2503. for i = 1,0,-0.1 do
  2504. wait()
  2505. TM.Scale = TM.Scale * Vector3.new(i,1,i)
  2506. end
  2507. Trail:remove()
  2508. end)()
  2509. coroutine.wrap(function()
  2510. for i = 1,10 do
  2511. wait()
  2512. Trail.Transparency = Trail.Transparency +0.1
  2513. end end)()end end)()
  2514. con1=Gear2.Touched:connect(function(hit) Damagefunc(hit,10,20,math.random(20,40),"Normal",RootPart,.2,1) end)
  2515. con2=Gear.Touched:connect(function(hit) Damagefunc(hit,10,20,math.random(20,40),"Normal",RootPart,.2,1) end)
  2516. for i=0,1,0.08 do
  2517. swait()
  2518. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-1)*angles(math.rad(40),math.rad(0),math.rad(-40)),.3)
  2519. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  2520. Handleweld.C0=clerp(Handleweld.C0,cf(1.5,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  2521. Handle2weld.C0=clerp(Handle2weld.C0,cf(-1.5,3,0)*angles(math.rad(0),math.rad(180),math.rad(180)),.2)
  2522. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-40),math.rad(0),math.rad(40)),.3)
  2523. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(70),math.rad(0),math.rad(-45)),.3)
  2524. 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)
  2525. 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)
  2526. end
  2527. if anim then
  2528. anim.Disabled=true
  2529. end
  2530. so("http://www.roblox.com/asset/?id=231917758",Torso,1,0.7)
  2531. so("http://www.roblox.com/asset/?id=159882584",Torso,1,1)
  2532. for i=0,1,0.04 do
  2533. swait()
  2534. Torso.Velocity=RootPart.CFrame.lookVector*50
  2535. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1)*angles(math.rad(-5),math.rad(0),math.rad(0+360*i)),.3)
  2536. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  2537. Handleweld.C0=clerp(Handleweld.C0,cf(3,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  2538. Handle2weld.C0=clerp(Handle2weld.C0,cf(-3,0,0)*angles(math.rad(0),math.rad(180),math.rad(180)),.2)
  2539. RW.C0=clerp(RW.C0,cf(1.2,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(90)),.3)
  2540. LW.C0=clerp(LW.C0,cf(-1.2,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(-90)),.3)
  2541. 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)
  2542. 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)
  2543. end
  2544. --dmgstop()
  2545. attack=false
  2546. con1:disconnect()
  2547. con2:disconnect()
  2548. if anim then
  2549. anim.Disabled=false
  2550. end
  2551. if TrailDeb == true then
  2552. TrailDeb = false
  2553. end
  2554. end
  2555.  
  2556. function BlastEffect(brickcolor, cframe, x1, y1, z1, x2, y2, z2)
  2557. local prt = part(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
  2558. prt.Anchored = true
  2559. prt.CFrame = cframe
  2560. local msh = mesh("SpecialMesh", prt, "FileMesh", "http://www.roblox.com/asset/?id=20329976", vt(0, 0, 0), vt(x1, y1, z1))
  2561. coroutine.resume(coroutine.create(function()
  2562. for i = 0, 1, 0.05 do
  2563. wait()
  2564. prt.Transparency = i
  2565. msh.Scale = msh.Scale + vt(x2, y2, z2)
  2566. end
  2567. prt.Parent = nil
  2568. end))
  2569. end
  2570.  
  2571. function MagniDamage(Hit, Part, magni, mindam, maxdam, knock, Type)
  2572. for _, c in pairs(workspace:children()) do
  2573. local hum = c:findFirstChild("Humanoid")
  2574. if hum ~= nil then
  2575. local head = c:findFirstChild("Torso")
  2576. if head ~= nil then
  2577. local targ = head.Position - Part.Position
  2578. local mag = targ.magnitude
  2579. if mag <= magni and c.Name ~= Player.Name then
  2580. Damagefunc(Hit, head, mindam, maxdam, knock, Type, RootPart, .2, 1, 3)
  2581. end
  2582. end
  2583. end
  2584. end
  2585. end
  2586.  
  2587. function MagicCircle(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  2588. local prt = part(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
  2589. prt.Anchored = true
  2590. prt.CFrame = cframe
  2591. local msh = mesh("SpecialMesh", prt, "Sphere", "", vt(0, 0, 0), vt(x1, y1, z1))
  2592. game:GetService("Debris"):AddItem(prt, 2)
  2593. coroutine.resume(coroutine.create(function(Part, Mesh)
  2594. for i = 0, 1, delay do
  2595. swait()
  2596. Part.CFrame = Part.CFrame
  2597. Part.Transparency = i
  2598. Mesh.Scale = Mesh.Scale + vt(x3, y3, z3)
  2599. end
  2600. Part.Parent = nil
  2601. end), prt, msh)
  2602. end
  2603.  
  2604. function MagicJump()
  2605. if Anim == "Idle" or Anim == "Walk" or Anim == "Run" then
  2606. attack=true
  2607. mana=mana-25
  2608. --[[ Humanoid.WalkSpeed = 0
  2609. for i=0,1,0.01 do
  2610. swait()
  2611. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-1.2)*angles(math.rad(45),math.rad(0),math.rad(45)),.1)
  2612. Neck.C0=clerp(Neck.C0,necko*angles(math.rad(-15),math.rad(15),math.rad(-45)),.1)
  2613. Neck.C1=clerp(Neck.C1,necko2*euler(0,0,0),.1)
  2614. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(60),math.rad(0),math.rad(45)),.1)
  2615. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-15),math.rad(15),math.rad(-30)),.1)
  2616. 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)
  2617. 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)
  2618. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(45)),.1)
  2619. Handleweld.C0=clerp(Handleweld.C0,cf(0,0,-6)*angles(math.rad(-15),math.rad(-60),math.rad(45)),.1)
  2620. Handle2weld.C0=clerp(Handle2weld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(60),math.rad(45)),.1)
  2621. end]]--
  2622. Humanoid.Jump = true
  2623. Torso.Velocity = vt(0, 150, 0)
  2624. Humanoid.WalkSpeed = 64
  2625. so("http://www.roblox.com/asset/?id=199145497",Torso,1,0.8)
  2626. so("http://www.roblox.com/asset/?id=199145497",Torso,1,0.8)
  2627. for i=0,1,0.05 do
  2628. swait()
  2629. Neck.C0=clerp(Neck.C0,necko*euler(0.5,0,0),.3)
  2630. Neck.C1=clerp(Neck.C1,necko2*euler(0,0,0),.3)
  2631. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*euler(0+8*i,0,0),.3)
  2632. LW.C0=clerp(LW.C0,cf(-1,0.5,-1)*euler(-30,0,20),.3)
  2633. RW.C0=clerp(RW.C0,cf(1,0.5,-1)*euler(-30,0,-20),.3)
  2634. RH.C0=clerp(RH.C0,cf(1,0,-1)*euler(-0.5,1.57,0)*euler(0,0,0),.2)
  2635. LH.C0=clerp(LH.C0,cf(-1,0,-1)*euler(-0.5,-1.57,0)*euler(0,0,0),.2)
  2636. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(20),math.rad(0),math.rad(0)),.2)
  2637. Handleweld.C0=clerp(Handleweld.C0,cf(0,-5,0)*angles(math.rad(60),math.rad(60),math.rad(0)),.2)
  2638. Handle2weld.C0=clerp(Handle2weld.C0,cf(0,-5,0)*angles(math.rad(60),math.rad(-60),math.rad(0)),.2)
  2639. end
  2640. for i=0,1,0.02 do
  2641. swait()
  2642. Neck.C0=clerp(Neck.C0,necko*euler(0.3,0,0),.3)
  2643. Neck.C1=clerp(Neck.C1,necko2*euler(0,0,0),.3)
  2644. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*euler(0,0,0),.3)
  2645. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(0.1,0,1),.3)
  2646. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  2647. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(0.1,0,-1),.3)
  2648. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  2649. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0.6,1.57,0)*euler(0,0,0),.2)
  2650. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(-0.8,-1.57,0)*euler(0,0,0),.2)
  2651. handleweld.C0=clerp(handleweld.C0,cf(0,0,-1)*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  2652. Handleweld.C0=clerp(Handleweld.C0,cf(0,-1,0)*angles(math.rad(-20),math.rad(-10),math.rad(0)),.2)
  2653. Handle2weld.C0=clerp(Handle2weld.C0,cf(0,-1,0)*angles(math.rad(-20),math.rad(10),math.rad(0)),.2)
  2654. end
  2655. Humanoid.WalkSpeed = 0
  2656. swait(8)
  2657. so("http://www.roblox.com/asset/?id=199145477",Torso,1,1)
  2658. so("http://www.roblox.com/asset/?id=199145477",Torso,1,1)
  2659. local hit,pos=rayCast(Torso.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,100,Character)
  2660. if hit~=nil then
  2661. swait(2)
  2662. local ref=part(3,workspace,"SmoothPlastic",0,1,BrickColor.new("White"),"Effect",vt())
  2663. ref.Anchored=true
  2664. ref.CFrame=cf(pos)
  2665. game:GetService("Debris"):AddItem(ref,3)
  2666. for i=1,10 do
  2667. local Col=BrickColor.new("White")
  2668. local groundpart=part(3,Character,"SmoothPlastic",0,0,Col,"Ground",vt(math.random(50,200)/100,math.random(50,200)/100,math.random(50,200)/100))
  2669. groundpart.Anchored=true
  2670. groundpart.CanCollide=false
  2671. 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))
  2672. local Col2=TorsoColor
  2673. local groundpart2=part(3,Character,"SmoothPlastic",0,0,Col2,"Ground",vt(math.random(50,200)/100,math.random(50,200)/100,math.random(50,200)/100))
  2674. groundpart2.Anchored=true
  2675. groundpart2.CanCollide=false
  2676. 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))
  2677. game:GetService("Debris"):AddItem(groundpart,5)
  2678. game:GetService("Debris"):AddItem(groundpart2,5)
  2679. end
  2680. BlastEffect(TorsoColor,cf(pos),1,1,1,1.4,1.4,1.4)
  2681. BlastEffect(BrickColor.new("White"),cf(pos),.9,.9,.9,1.2,1.2,1.2)
  2682. MagicCircle(BrickColor.new("White"),cf(pos),5,5,5,5,5,5,0.05)
  2683. MagicCircle(TorsoColor,cf(pos),6,6,6,6,6,6,0.05)
  2684. for i=0,1,0.06 do
  2685. swait()
  2686. Neck.C0=clerp(Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.3)
  2687. Neck.C1=clerp(Neck.C1,necko2*euler(0,0,0),.3)
  2688. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.5)*angles(math.rad(50),math.rad(0),math.rad(0)),.3)
  2689. RW.C0=clerp(RW.C0,cf(1, 0.3, -.7)*angles(math.rad(50),math.rad(0),math.rad(-30)),.3)
  2690. LW.C0=clerp(LW.C0,cf(-1, 0.3, -.7)*angles(math.rad(50),math.rad(0),math.rad(30)),.3)
  2691. 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)
  2692. 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)
  2693. handleweld.C0=clerp(handleweld.C0,cf(0,0,-1)*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  2694. Handleweld.C0=clerp(Handleweld.C0,cf(0,-1,0)*angles(math.rad(-20),math.rad(-10),math.rad(0)),.2)
  2695. Handle2weld.C0=clerp(Handle2weld.C0,cf(0,-1,0)*angles(math.rad(-20),math.rad(10),math.rad(0)),.2)
  2696. end
  2697. end
  2698. swait(20)
  2699. Humanoid.WalkSpeed = 12
  2700. --dmgstop()
  2701. attack=false
  2702. end
  2703. end
  2704.  
  2705. function Spin()
  2706. attack=true
  2707. mana=mana-40
  2708. if TrailDeb == false then
  2709. TrailDeb = true
  2710. end
  2711.  
  2712. coroutine.wrap(function()
  2713. local Old = Handle2.CFrame.p
  2714. while wait()do
  2715. if not TrailDeb then break end
  2716. local New = Handle2.CFrame.p
  2717. local Mag =(Old -New).magnitude
  2718. local Dis =(Old +New)/2
  2719. local Trail = Instance.new("Part",Character)
  2720. Trail.Material = "Neon"
  2721. Trail.Anchored = true
  2722. Trail.CanCollide = false
  2723. Trail.BrickColor = TorsoColor
  2724. Trail.Size = Vector3.new(0.2,Mag,0.2)
  2725. Trail.TopSurface = 0
  2726. Trail.BottomSurface = 0
  2727. Trail.formFactor = "Custom"
  2728. Trail.CFrame = CFrame.new(Dis,New)* CFrame.Angles(math.pi/2,0,0)
  2729. local ms = Instance.new("BlockMesh",Trail)
  2730. ms.Scale = Vector3.new(1,1,1)
  2731. local TM = Instance.new("CylinderMesh",Trail)
  2732. TM.Scale = Vector3.new(1,1,1)
  2733. Old = New
  2734. coroutine.wrap(function()
  2735. for i = 1,0,-0.1 do
  2736. wait()
  2737. TM.Scale = TM.Scale * Vector3.new(i,1,i)
  2738. end
  2739. Trail:remove()
  2740. end)()
  2741. coroutine.wrap(function()
  2742. for i = 1,10 do
  2743. wait()
  2744. Trail.Transparency = Trail.Transparency +0.1
  2745. end end)()end end)()
  2746. coroutine.wrap(function()
  2747. local Old = Handle.CFrame.p
  2748. while wait()do
  2749. if not TrailDeb then break end
  2750. local New = Handle.CFrame.p
  2751. local Mag =(Old -New).magnitude
  2752. local Dis =(Old +New)/2
  2753. local Trail = Instance.new("Part",Character)
  2754. Trail.Material = "Neon"
  2755. Trail.Anchored = true
  2756. Trail.CanCollide = false
  2757. Trail.BrickColor = TorsoColor
  2758. Trail.Size = Vector3.new(0.2,Mag,0.2)
  2759. Trail.TopSurface = 0
  2760. Trail.BottomSurface = 0
  2761. Trail.formFactor = "Custom"
  2762. Trail.CFrame = CFrame.new(Dis,New)* CFrame.Angles(math.pi/2,0,0)
  2763. local ms = Instance.new("BlockMesh",Trail)
  2764. ms.Scale = Vector3.new(1,1,1)
  2765. local TM = Instance.new("CylinderMesh",Trail)
  2766. TM.Scale = Vector3.new(1,1,1)
  2767. Old = New
  2768. coroutine.wrap(function()
  2769. for i = 1,0,-0.1 do
  2770. wait()
  2771. TM.Scale = TM.Scale * Vector3.new(i,1,i)
  2772. end
  2773. Trail:remove()
  2774. end)()
  2775. coroutine.wrap(function()
  2776. for i = 1,10 do
  2777. wait()
  2778. Trail.Transparency = Trail.Transparency +0.1
  2779. end end)()end end)()
  2780. Footsteps:Stop()
  2781. Footsteps2:Stop()
  2782. con1=Gear2.Touched:connect(function(hit) Damagefunc(hit,20,30,math.random(20,40),"Normal",RootPart,.2,1) end)
  2783. con2=Gear.Touched:connect(function(hit) Damagefunc(hit,20,30,math.random(20,40),"Normal",RootPart,.2,1) end)
  2784. so("http://www.roblox.com/asset/?id=159882497",Torso,1,1)
  2785. for i=0,1,0.1 do
  2786. swait()
  2787. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,10)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  2788. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  2789. Handleweld.C0=clerp(Handleweld.C0,cf(5,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  2790. Handle2weld.C0=clerp(Handle2weld.C0,cf(-5,0,0)*angles(math.rad(0),math.rad(180),math.rad(180)),.2)
  2791. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(90)),.3)
  2792. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(-90)),.3)
  2793. end
  2794. if anim then
  2795. anim.Disabled=true
  2796. end
  2797. so("http://www.roblox.com/asset/?id=231917758",LeftArm,1,1.2)
  2798. so("http://www.roblox.com/asset/?id=231917758",RightArm,1,1)
  2799. for i=0,1,0.05 do
  2800. swait()
  2801. Torso.Velocity=RootPart.CFrame.lookVector*100
  2802. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,10)*angles(math.rad(0),math.rad(90),math.rad(0+360*i)),.3)
  2803. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  2804. Handleweld.C0=clerp(Handleweld.C0,cf(5,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  2805. Handle2weld.C0=clerp(Handle2weld.C0,cf(-5,0,0)*angles(math.rad(0),math.rad(180),math.rad(180)),.2)
  2806. RW.C0=clerp(RW.C0,cf(1,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(90)),.3)
  2807. LW.C0=clerp(LW.C0,cf(-1,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(-90)),.3)
  2808. end
  2809. so("http://www.roblox.com/asset/?id=231917758",LeftArm,1,1.2)
  2810. so("http://www.roblox.com/asset/?id=231917758",RightArm,1,1)
  2811. for i=0,1,0.05 do
  2812. swait()
  2813. Torso.Velocity=RootPart.CFrame.lookVector*100
  2814. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,10)*angles(math.rad(0),math.rad(90),math.rad(0+360*i)),.3)
  2815. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  2816. Handleweld.C0=clerp(Handleweld.C0,cf(5,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  2817. Handle2weld.C0=clerp(Handle2weld.C0,cf(-5,0,0)*angles(math.rad(0),math.rad(180),math.rad(180)),.2)
  2818. RW.C0=clerp(RW.C0,cf(1,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(90)),.3)
  2819. LW.C0=clerp(LW.C0,cf(-1,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(-90)),.3)
  2820. end
  2821. so("http://www.roblox.com/asset/?id=231917758",LeftArm,1,1.2)
  2822. so("http://www.roblox.com/asset/?id=231917758",RightArm,1,1)
  2823. for i=0,1,0.05 do
  2824. swait()
  2825. Torso.Velocity=RootPart.CFrame.lookVector*100
  2826. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,10)*angles(math.rad(0),math.rad(90),math.rad(0+360*i)),.3)
  2827. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  2828. Handleweld.C0=clerp(Handleweld.C0,cf(5,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  2829. Handle2weld.C0=clerp(Handle2weld.C0,cf(-5,0,0)*angles(math.rad(0),math.rad(180),math.rad(180)),.2)
  2830. RW.C0=clerp(RW.C0,cf(1,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(90)),.3)
  2831. LW.C0=clerp(LW.C0,cf(-1,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(-90)),.3)
  2832. end
  2833. --dmgstop()
  2834. Humanoid.WalkSpeed=12
  2835. attack=false
  2836. con1:disconnect()
  2837. con2:disconnect()
  2838. if anim then
  2839. anim.Disabled=false
  2840. end
  2841. if TrailDeb == true then
  2842. TrailDeb = false
  2843. end
  2844. end
  2845.  
  2846. function Twirl()
  2847. mana=mana-50
  2848. attack=true
  2849. if TrailDeb == false then
  2850. TrailDeb = true
  2851. end
  2852.  
  2853.  
  2854. coroutine.wrap(function()
  2855. local Old = Handle2.CFrame.p
  2856. while wait()do
  2857. if not TrailDeb then break end
  2858. local New = Handle2.CFrame.p
  2859. local Mag =(Old -New).magnitude
  2860. local Dis =(Old +New)/2
  2861. local Trail = Instance.new("Part",Character)
  2862. Trail.Material = "Neon"
  2863. Trail.Anchored = true
  2864. Trail.CanCollide = false
  2865. Trail.BrickColor = TorsoColor
  2866. Trail.Size = Vector3.new(0.2,Mag,0.2)
  2867. Trail.TopSurface = 0
  2868. Trail.BottomSurface = 0
  2869. Trail.formFactor = "Custom"
  2870. Trail.CFrame = CFrame.new(Dis,New)* CFrame.Angles(math.pi/2,0,0)
  2871. local ms = Instance.new("BlockMesh",Trail)
  2872. ms.Scale = Vector3.new(1,1,1)
  2873. local TM = Instance.new("CylinderMesh",Trail)
  2874. TM.Scale = Vector3.new(1,1,1)
  2875. Old = New
  2876. coroutine.wrap(function()
  2877. for i = 1,0,-0.1 do
  2878. wait()
  2879. TM.Scale = TM.Scale * Vector3.new(i,1,i)
  2880. end
  2881. Trail:remove()
  2882. end)()
  2883. coroutine.wrap(function()
  2884. for i = 1,10 do
  2885. wait()
  2886. Trail.Transparency = Trail.Transparency +0.1
  2887. end end)()end end)()
  2888. coroutine.wrap(function()
  2889. local Old = Handle.CFrame.p
  2890. while wait()do
  2891. if not TrailDeb then break end
  2892. local New = Handle.CFrame.p
  2893. local Mag =(Old -New).magnitude
  2894. local Dis =(Old +New)/2
  2895. local Trail = Instance.new("Part",Character)
  2896. Trail.Material = "Neon"
  2897. Trail.Anchored = true
  2898. Trail.CanCollide = false
  2899. Trail.BrickColor = TorsoColor
  2900. Trail.Size = Vector3.new(0.2,Mag,0.2)
  2901. Trail.TopSurface = 0
  2902. Trail.BottomSurface = 0
  2903. Trail.formFactor = "Custom"
  2904. Trail.CFrame = CFrame.new(Dis,New)* CFrame.Angles(math.pi/2,0,0)
  2905. local ms = Instance.new("BlockMesh",Trail)
  2906. ms.Scale = Vector3.new(1,1,1)
  2907. local TM = Instance.new("CylinderMesh",Trail)
  2908. TM.Scale = Vector3.new(1,1,1)
  2909. Old = New
  2910. coroutine.wrap(function()
  2911. for i = 1,0,-0.1 do
  2912. wait()
  2913. TM.Scale = TM.Scale * Vector3.new(i,1,i)
  2914. end
  2915. Trail:remove()
  2916. end)()
  2917. coroutine.wrap(function()
  2918. for i = 1,10 do
  2919. wait()
  2920. Trail.Transparency = Trail.Transparency +0.1
  2921. end end)()end end)()
  2922. Footsteps:Stop()
  2923. Footsteps2:Stop()
  2924. con1=Gear2.Touched:connect(function(hit) Damagefunc(hit,20,30,math.random(20,40),"Normal",RootPart,.2,1) end)
  2925. con2=Gear.Touched:connect(function(hit) Damagefunc(hit,20,30,math.random(20,40),"Normal",RootPart,.2,1) end)
  2926. so("http://www.roblox.com/asset/?id=159882598",Torso,1,1)
  2927. for i=0,1,0.1 do
  2928. swait()
  2929. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,10)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  2930. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  2931. Handleweld.C0=clerp(Handleweld.C0,cf(5,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  2932. Handle2weld.C0=clerp(Handle2weld.C0,cf(-5,0,0)*angles(math.rad(0),math.rad(180),math.rad(180)),.2)
  2933. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(90)),.3)
  2934. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(-90)),.3)
  2935. end
  2936. if anim then
  2937. anim.Disabled=true
  2938. end
  2939. so("http://www.roblox.com/asset/?id=231917758",LeftArm,1,1)
  2940. so("http://www.roblox.com/asset/?id=231917758",RightArm,1,0.8)
  2941. for i=0,1,0.05 do
  2942. swait()
  2943. Torso.Velocity=RootPart.CFrame.lookVector*80
  2944. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,10)*angles(math.rad(90),math.rad(0),math.rad(0+360*i)),.3)
  2945. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  2946. Handleweld.C0=clerp(Handleweld.C0,cf(5,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  2947. Handle2weld.C0=clerp(Handle2weld.C0,cf(-5,0,0)*angles(math.rad(0),math.rad(180),math.rad(180)),.2)
  2948. RW.C0=clerp(RW.C0,cf(1,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(90)),.3)
  2949. LW.C0=clerp(LW.C0,cf(-1,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(-90)),.3)
  2950. end
  2951. so("http://www.roblox.com/asset/?id=231917758",LeftArm,1,1)
  2952. so("http://www.roblox.com/asset/?id=231917758",RightArm,1,0.8)
  2953. for i=0,1,0.05 do
  2954. swait()
  2955. Torso.Velocity=RootPart.CFrame.lookVector*80
  2956. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,10)*angles(math.rad(90),math.rad(0),math.rad(0+360*i)),.3)
  2957. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  2958. Handleweld.C0=clerp(Handleweld.C0,cf(5,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  2959. Handle2weld.C0=clerp(Handle2weld.C0,cf(-5,0,0)*angles(math.rad(0),math.rad(180),math.rad(180)),.2)
  2960. RW.C0=clerp(RW.C0,cf(1,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(90)),.3)
  2961. LW.C0=clerp(LW.C0,cf(-1,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(-90)),.3)
  2962. end
  2963. so("http://www.roblox.com/asset/?id=231917758",LeftArm,1,1)
  2964. so("http://www.roblox.com/asset/?id=231917758",RightArm,1,0.8)
  2965. for i=0,1,0.05 do
  2966. swait()
  2967. Torso.Velocity=RootPart.CFrame.lookVector*80
  2968. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,10)*angles(math.rad(90),math.rad(0),math.rad(0+360*i)),.3)
  2969. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  2970. Handleweld.C0=clerp(Handleweld.C0,cf(5,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  2971. Handle2weld.C0=clerp(Handle2weld.C0,cf(-5,0,0)*angles(math.rad(0),math.rad(180),math.rad(180)),.2)
  2972. RW.C0=clerp(RW.C0,cf(1,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(90)),.3)
  2973. LW.C0=clerp(LW.C0,cf(-1,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(-90)),.3)
  2974. end
  2975. so("http://www.roblox.com/asset/?id=231917758",LeftArm,1,1)
  2976. so("http://www.roblox.com/asset/?id=231917758",RightArm,1,0.8)
  2977. for i=0,1,0.05 do
  2978. swait()
  2979. Torso.Velocity=RootPart.CFrame.lookVector*80
  2980. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,10)*angles(math.rad(90),math.rad(0),math.rad(0+360*i)),.3)
  2981. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  2982. Handleweld.C0=clerp(Handleweld.C0,cf(5,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  2983. Handle2weld.C0=clerp(Handle2weld.C0,cf(-5,0,0)*angles(math.rad(0),math.rad(180),math.rad(180)),.2)
  2984. RW.C0=clerp(RW.C0,cf(1,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(90)),.3)
  2985. LW.C0=clerp(LW.C0,cf(-1,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(-90)),.3)
  2986. end
  2987. --dmgstop()
  2988. Humanoid.WalkSpeed=12
  2989. attack=false
  2990. con1:disconnect()
  2991. con2:disconnect()
  2992. if anim then
  2993. anim.Disabled=false
  2994. end
  2995. if TrailDeb == true then
  2996. TrailDeb = false
  2997. end
  2998. end
  2999.  
  3000. function Shred()
  3001. attack=true
  3002. mana=mana-100
  3003. if TrailDeb == false then
  3004. TrailDeb = true
  3005. end
  3006.  
  3007.  
  3008. coroutine.wrap(function()
  3009. local Old = Handle2.CFrame.p
  3010. while wait()do
  3011. if not TrailDeb then break end
  3012. local New = Handle2.CFrame.p
  3013. local Mag =(Old -New).magnitude
  3014. local Dis =(Old +New)/2
  3015. local Trail = Instance.new("Part",Character)
  3016. Trail.Material = "Neon"
  3017. Trail.Anchored = true
  3018. Trail.CanCollide = false
  3019. Trail.BrickColor = TorsoColor
  3020. Trail.Size = Vector3.new(0.2,Mag,0.2)
  3021. Trail.TopSurface = 0
  3022. Trail.BottomSurface = 0
  3023. Trail.formFactor = "Custom"
  3024. Trail.CFrame = CFrame.new(Dis,New)* CFrame.Angles(math.pi/2,0,0)
  3025. local ms = Instance.new("BlockMesh",Trail)
  3026. ms.Scale = Vector3.new(1,1,1)
  3027. local TM = Instance.new("CylinderMesh",Trail)
  3028. TM.Scale = Vector3.new(1,1,1)
  3029. Old = New
  3030. coroutine.wrap(function()
  3031. for i = 1,0,-0.1 do
  3032. wait()
  3033. TM.Scale = TM.Scale * Vector3.new(i,1,i)
  3034. end
  3035. Trail:remove()
  3036. end)()
  3037. coroutine.wrap(function()
  3038. for i = 1,10 do
  3039. wait()
  3040. Trail.Transparency = Trail.Transparency +0.1
  3041. end end)()end end)()
  3042. coroutine.wrap(function()
  3043. local Old = Handle.CFrame.p
  3044. while wait()do
  3045. if not TrailDeb then break end
  3046. local New = Handle.CFrame.p
  3047. local Mag =(Old -New).magnitude
  3048. local Dis =(Old +New)/2
  3049. local Trail = Instance.new("Part",Character)
  3050. Trail.Material = "Neon"
  3051. Trail.Anchored = true
  3052. Trail.CanCollide = false
  3053. Trail.BrickColor = TorsoColor
  3054. Trail.Size = Vector3.new(0.2,Mag,0.2)
  3055. Trail.TopSurface = 0
  3056. Trail.BottomSurface = 0
  3057. Trail.formFactor = "Custom"
  3058. Trail.CFrame = CFrame.new(Dis,New)* CFrame.Angles(math.pi/2,0,0)
  3059. local ms = Instance.new("BlockMesh",Trail)
  3060. ms.Scale = Vector3.new(1,1,1)
  3061. local TM = Instance.new("CylinderMesh",Trail)
  3062. TM.Scale = Vector3.new(1,1,1)
  3063. Old = New
  3064. coroutine.wrap(function()
  3065. for i = 1,0,-0.1 do
  3066. wait()
  3067. TM.Scale = TM.Scale * Vector3.new(i,1,i)
  3068. end
  3069. Trail:remove()
  3070. end)()
  3071. coroutine.wrap(function()
  3072. for i = 1,10 do
  3073. wait()
  3074. Trail.Transparency = Trail.Transparency +0.1
  3075. end end)()end end)()
  3076. Footsteps:Stop()
  3077. Footsteps2:Stop()
  3078. con1=Gear2.Touched:connect(function(hit) Damagefunc(hit,30,40,math.random(20,40),"Normal",RootPart,.2,1) end)
  3079. con2=Gear.Touched:connect(function(hit) Damagefunc(hit,30,40,math.random(20,40),"Normal",RootPart,.2,1) end)
  3080. so("http://www.roblox.com/asset/?id=159882578",Torso,1,1)
  3081. for i=0,1,0.1 do
  3082. swait()
  3083. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,3)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  3084. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  3085. Handleweld.C0=clerp(Handleweld.C0,cf(5,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  3086. Handle2weld.C0=clerp(Handle2weld.C0,cf(-5,0,0)*angles(math.rad(0),math.rad(180),math.rad(180)),.2)
  3087. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(90)),.3)
  3088. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(-90)),.3)
  3089. end
  3090. if anim then
  3091. anim.Disabled=true
  3092. end
  3093. for i=0,1,0.05 do
  3094. swait()
  3095. Torso.Velocity=RootPart.CFrame.lookVector*20
  3096. so("http://www.roblox.com/asset/?id=231917758",LeftArm,0.2,1.2)
  3097. so("http://www.roblox.com/asset/?id=231917758",RightArm,0.2,1)
  3098. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,3)*angles(math.rad(0),math.rad(0),math.rad(0+40*i)),.5)
  3099. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  3100. Handleweld.C0=clerp(Handleweld.C0,cf(5,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  3101. Handle2weld.C0=clerp(Handle2weld.C0,cf(-5,0,0)*angles(math.rad(0),math.rad(180),math.rad(180)),.2)
  3102. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(90)),.3)
  3103. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(-90)),.3)
  3104. end
  3105. for i=0,1,0.05 do
  3106. swait()
  3107. Torso.Velocity=RootPart.CFrame.lookVector*40
  3108. so("http://www.roblox.com/asset/?id=231917758",LeftArm,0.2,1.2)
  3109. so("http://www.roblox.com/asset/?id=231917758",RightArm,0.2,1)
  3110. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,3)*angles(math.rad(0),math.rad(0),math.rad(41+80*i)),.5)
  3111. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  3112. Handleweld.C0=clerp(Handleweld.C0,cf(5,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  3113. Handle2weld.C0=clerp(Handle2weld.C0,cf(-5,0,0)*angles(math.rad(0),math.rad(180),math.rad(180)),.2)
  3114. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(90)),.3)
  3115. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(-90)),.3)
  3116. end
  3117. for i=0,1,0.05 do
  3118. swait()
  3119. Torso.Velocity=RootPart.CFrame.lookVector*60
  3120. so("http://www.roblox.com/asset/?id=231917758",LeftArm,0.2,1.2)
  3121. so("http://www.roblox.com/asset/?id=231917758",RightArm,0.2,1)
  3122. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,3)*angles(math.rad(0),math.rad(0),math.rad(82+120*i)),.5)
  3123. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  3124. Handleweld.C0=clerp(Handleweld.C0,cf(5,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  3125. Handle2weld.C0=clerp(Handle2weld.C0,cf(-5,0,0)*angles(math.rad(0),math.rad(180),math.rad(180)),.2)
  3126. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(90)),.3)
  3127. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(-90)),.3)
  3128. end
  3129. so("http://www.roblox.com/asset/?id=35935204",Torso,1,1)
  3130. so("http://www.roblox.com/asset/?id=231917758",Torso,1,0.1)
  3131. so("http://www.roblox.com/asset/?id=231917758",Torso,1,0.1)
  3132. so("http://www.roblox.com/asset/?id=231917758",Torso,1,0.1)
  3133. so("http://www.roblox.com/asset/?id=231917758",Torso,1,0.1)
  3134. for i=0,1,0.05 do
  3135. swait()
  3136. Torso.Velocity=RootPart.CFrame.lookVector*80
  3137. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,3)*angles(math.rad(0),math.rad(0),math.rad(124+160*i)),.5)
  3138. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  3139. Handleweld.C0=clerp(Handleweld.C0,cf(5,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  3140. Handle2weld.C0=clerp(Handle2weld.C0,cf(-5,0,0)*angles(math.rad(0),math.rad(180),math.rad(180)),.2)
  3141. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(90)),.3)
  3142. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(-90)),.3)
  3143. end
  3144. for i=0,1,0.005 do
  3145. swait()
  3146. Torso.Velocity=RootPart.CFrame.lookVector*100
  3147. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,3)*angles(math.rad(0),math.rad(0),math.rad(168+4200*i)),.5)
  3148. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  3149. Handleweld.C0=clerp(Handleweld.C0,cf(5,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  3150. Handle2weld.C0=clerp(Handle2weld.C0,cf(-5,0,0)*angles(math.rad(0),math.rad(180),math.rad(180)),.2)
  3151. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(90)),.3)
  3152. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(-90)),.3)
  3153. end
  3154. --dmgstop()
  3155. Humanoid.WalkSpeed=12
  3156. attack=false
  3157. con1:disconnect()
  3158. con2:disconnect()
  3159. if anim then
  3160. anim.Disabled=false
  3161. end
  3162. if TrailDeb == true then
  3163. TrailDeb = false
  3164. end
  3165. end
  3166.  
  3167. function Push()
  3168. attack=true
  3169. mana=mana-20
  3170. if TrailDeb == false then
  3171. TrailDeb = true
  3172. end
  3173.  
  3174.  
  3175. coroutine.wrap(function()
  3176. local Old = Handle2.CFrame.p
  3177. while wait()do
  3178. if not TrailDeb then break end
  3179. local New = Handle2.CFrame.p
  3180. local Mag =(Old -New).magnitude
  3181. local Dis =(Old +New)/2
  3182. local Trail = Instance.new("Part",Character)
  3183. Trail.Material = "Neon"
  3184. Trail.Anchored = true
  3185. Trail.CanCollide = false
  3186. Trail.BrickColor = TorsoColor
  3187. Trail.Size = Vector3.new(0.2,Mag,0.2)
  3188. Trail.TopSurface = 0
  3189. Trail.BottomSurface = 0
  3190. Trail.formFactor = "Custom"
  3191. Trail.CFrame = CFrame.new(Dis,New)* CFrame.Angles(math.pi/2,0,0)
  3192. local ms = Instance.new("BlockMesh",Trail)
  3193. ms.Scale = Vector3.new(1,1,1)
  3194. local TM = Instance.new("CylinderMesh",Trail)
  3195. TM.Scale = Vector3.new(1,1,1)
  3196. Old = New
  3197. coroutine.wrap(function()
  3198. for i = 1,0,-0.1 do
  3199. wait()
  3200. TM.Scale = TM.Scale * Vector3.new(i,1,i)
  3201. end
  3202. Trail:remove()
  3203. end)()
  3204. coroutine.wrap(function()
  3205. for i = 1,10 do
  3206. wait()
  3207. Trail.Transparency = Trail.Transparency +0.1
  3208. end end)()end end)()
  3209. coroutine.wrap(function()
  3210. local Old = Handle.CFrame.p
  3211. while wait()do
  3212. if not TrailDeb then break end
  3213. local New = Handle.CFrame.p
  3214. local Mag =(Old -New).magnitude
  3215. local Dis =(Old +New)/2
  3216. local Trail = Instance.new("Part",Character)
  3217. Trail.Material = "Neon"
  3218. Trail.Anchored = true
  3219. Trail.CanCollide = false
  3220. Trail.BrickColor = TorsoColor
  3221. Trail.Size = Vector3.new(0.2,Mag,0.2)
  3222. Trail.TopSurface = 0
  3223. Trail.BottomSurface = 0
  3224. Trail.formFactor = "Custom"
  3225. Trail.CFrame = CFrame.new(Dis,New)* CFrame.Angles(math.pi/2,0,0)
  3226. local ms = Instance.new("BlockMesh",Trail)
  3227. ms.Scale = Vector3.new(1,1,1)
  3228. local TM = Instance.new("CylinderMesh",Trail)
  3229. TM.Scale = Vector3.new(1,1,1)
  3230. Old = New
  3231. coroutine.wrap(function()
  3232. for i = 1,0,-0.1 do
  3233. wait()
  3234. TM.Scale = TM.Scale * Vector3.new(i,1,i)
  3235. end
  3236. Trail:remove()
  3237. end)()
  3238. coroutine.wrap(function()
  3239. for i = 1,10 do
  3240. wait()
  3241. Trail.Transparency = Trail.Transparency +0.1
  3242. end end)()end end)()
  3243. con1=Gear2.Touched:connect(function(hit) Damagefunc(hit,10,20,math.random(20,40),"Normal",RootPart,.2,1) end)
  3244. con2=Gear.Touched:connect(function(hit) Damagefunc(hit,10,20,math.random(20,40),"Normal",RootPart,.2,1) end)
  3245. for i=0,1,0.1 do
  3246. swait()
  3247. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  3248. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,0),.2)
  3249. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  3250. Handleweld.C0=clerp(Handleweld.C0,cf(-5,0,-10)*angles(math.rad(20),math.rad(-20),math.rad(0)),.2)
  3251. Handle2weld.C0=clerp(Handle2weld.C0,cf(5,0,-10)*angles(math.rad(20),math.rad(20),math.rad(0)),.2)
  3252. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(-20)),.3)
  3253. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(20)),.3)
  3254. end
  3255. so("http://www.roblox.com/asset/?id=231917758",Handle2,1,.8)
  3256. so("http://www.roblox.com/asset/?id=231917758",Handle,1,1)
  3257. so("http://www.roblox.com/asset/?id=159882481",Torso,1,1)
  3258. for i=0,1,0.1 do
  3259. swait()
  3260. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  3261. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,0),.2)
  3262. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  3263. Handleweld.C0=clerp(Handleweld.C0,cf(-4,0,-20)*angles(math.rad(20),math.rad(-20),math.rad(0)),.2)
  3264. Handle2weld.C0=clerp(Handle2weld.C0,cf(4,0,-20)*angles(math.rad(20),math.rad(20),math.rad(0)),.2)
  3265. RW.C0=clerp(RW.C0,cf(1,0.5,-1)*angles(math.rad(90),math.rad(0),math.rad(-20)),.3)
  3266. LW.C0=clerp(LW.C0,cf(-1,0.5,-1)*angles(math.rad(90),math.rad(0),math.rad(20)),.3)
  3267. end
  3268. --dmgstop()
  3269. attack=false
  3270. con1:disconnect()
  3271. con2:disconnect()
  3272. if TrailDeb == true then
  3273. TrailDeb = false
  3274. end
  3275. end
  3276.  
  3277. function Clap()
  3278. attack=true
  3279. mana=mana-20
  3280. if TrailDeb == false then
  3281. TrailDeb = true
  3282. end
  3283.  
  3284.  
  3285. coroutine.wrap(function()
  3286. local Old = Handle2.CFrame.p
  3287. while wait()do
  3288. if not TrailDeb then break end
  3289. local New = Handle2.CFrame.p
  3290. local Mag =(Old -New).magnitude
  3291. local Dis =(Old +New)/2
  3292. local Trail = Instance.new("Part",Character)
  3293. Trail.Material = "Neon"
  3294. Trail.Anchored = true
  3295. Trail.CanCollide = false
  3296. Trail.BrickColor = TorsoColor
  3297. Trail.Size = Vector3.new(0.2,Mag,0.2)
  3298. Trail.TopSurface = 0
  3299. Trail.BottomSurface = 0
  3300. Trail.formFactor = "Custom"
  3301. Trail.CFrame = CFrame.new(Dis,New)* CFrame.Angles(math.pi/2,0,0)
  3302. local ms = Instance.new("BlockMesh",Trail)
  3303. ms.Scale = Vector3.new(1,1,1)
  3304. local TM = Instance.new("CylinderMesh",Trail)
  3305. TM.Scale = Vector3.new(1,1,1)
  3306. Old = New
  3307. coroutine.wrap(function()
  3308. for i = 1,0,-0.1 do
  3309. wait()
  3310. TM.Scale = TM.Scale * Vector3.new(i,1,i)
  3311. end
  3312. Trail:remove()
  3313. end)()
  3314. coroutine.wrap(function()
  3315. for i = 1,10 do
  3316. wait()
  3317. Trail.Transparency = Trail.Transparency +0.1
  3318. end end)()end end)()
  3319. coroutine.wrap(function()
  3320. local Old = Handle.CFrame.p
  3321. while wait()do
  3322. if not TrailDeb then break end
  3323. local New = Handle.CFrame.p
  3324. local Mag =(Old -New).magnitude
  3325. local Dis =(Old +New)/2
  3326. local Trail = Instance.new("Part",Character)
  3327. Trail.Material = "Neon"
  3328. Trail.Anchored = true
  3329. Trail.CanCollide = false
  3330. Trail.BrickColor = TorsoColor
  3331. Trail.Size = Vector3.new(0.2,Mag,0.2)
  3332. Trail.TopSurface = 0
  3333. Trail.BottomSurface = 0
  3334. Trail.formFactor = "Custom"
  3335. Trail.CFrame = CFrame.new(Dis,New)* CFrame.Angles(math.pi/2,0,0)
  3336. local ms = Instance.new("BlockMesh",Trail)
  3337. ms.Scale = Vector3.new(1,1,1)
  3338. local TM = Instance.new("CylinderMesh",Trail)
  3339. TM.Scale = Vector3.new(1,1,1)
  3340. Old = New
  3341. coroutine.wrap(function()
  3342. for i = 1,0,-0.1 do
  3343. wait()
  3344. TM.Scale = TM.Scale * Vector3.new(i,1,i)
  3345. end
  3346. Trail:remove()
  3347. end)()
  3348. coroutine.wrap(function()
  3349. for i = 1,10 do
  3350. wait()
  3351. Trail.Transparency = Trail.Transparency +0.1
  3352. end end)()end end)()
  3353. con1=Gear2.Touched:connect(function(hit) Damagefunc(hit,20,30,math.random(20,40),"Normal",RootPart,.2,1) end)
  3354. con2=Gear.Touched:connect(function(hit) Damagefunc(hit,20,30,math.random(20,40),"Normal",RootPart,.2,1) end)
  3355. so("http://www.roblox.com/asset/?id=159882584",Torso,1,0.9)
  3356. for i=0,1,0.08 do
  3357. swait()
  3358. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  3359. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,0),.2)
  3360. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  3361. Handle2weld.C0=clerp(Handle2weld.C0,cf(-5,1,-5)*angles(math.rad(0),math.rad(-40),math.rad(20)),.2)
  3362. Handleweld.C0=clerp(Handleweld.C0,cf(5,1,-5)*angles(math.rad(0),math.rad(40),math.rad(-20)),.2)
  3363. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-30,0,-20),.3)
  3364. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-30,0,20),.3)
  3365. end
  3366. so("http://www.roblox.com/asset/?id=231917758",Handle2,1,.8)
  3367. so("http://www.roblox.com/asset/?id=231917758",Handle,1,1)
  3368. for i=0,1,0.08 do
  3369. swait()
  3370. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  3371. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,0),.2)
  3372. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  3373. Handle2weld.C0=clerp(Handle2weld.C0,cf(4,1,-5)*angles(math.rad(0),math.rad(-43),math.rad(20)),.2)
  3374. Handleweld.C0=clerp(Handleweld.C0,cf(-4,1,-5)*angles(math.rad(0),math.rad(43),math.rad(-20)),.2)
  3375. LW.C0=clerp(LW.C0,cf(-1,0.5,-1)*euler(-30,0,20),.3)
  3376. RW.C0=clerp(RW.C0,cf(1,0.5,-1)*euler(-30,0,-20),.3)
  3377. end
  3378. --dmgstop()
  3379. attack=false
  3380. con1:disconnect()
  3381. con2:disconnect()
  3382. if TrailDeb == true then
  3383. TrailDeb = false
  3384. end
  3385. end
  3386.  
  3387. function Hai()
  3388. attack=true
  3389. Humanoid.WalkSpeed=0
  3390. so("http://www.roblox.com/asset/?id=159882567",Torso,1,1)
  3391. for i=0,1,0.1 do
  3392. swait()
  3393. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  3394. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,0),.2)
  3395. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  3396. Handleweld.C0=clerp(Handleweld.C0,cf(0,5,3)*angles(math.rad(20),math.rad(-20),math.rad(20)),.2)
  3397. Handle2weld.C0=clerp(Handle2weld.C0,cf(0,0,0)*angles(math.rad(5),math.rad(0),math.rad(0)),.2)
  3398. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  3399. 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)
  3400. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(170),math.rad(0),math.rad(0)),.3)
  3401. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(10),math.rad(0),math.rad(-16)),.3)
  3402. end
  3403. so("http://www.roblox.com/asset/?id=231917758",Handle,1,.8)
  3404. for i=0,1,0.1 do
  3405. swait()
  3406. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  3407. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,0),.2)
  3408. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  3409. Handleweld.C0=clerp(Handleweld.C0,cf(3,8,0)*angles(math.rad(0),math.rad(-20),math.rad(-30)),.2)
  3410. Handle2weld.C0=clerp(Handle2weld.C0,cf(0.5,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  3411. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  3412. 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)
  3413. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(170),math.rad(0),math.rad(50)),.5)
  3414. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(10),math.rad(0),math.rad(-16)),.3)
  3415. end
  3416. so("http://www.roblox.com/asset/?id=231917758",Handle,1,1)
  3417. for i=0,1,0.1 do
  3418. swait()
  3419. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  3420. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,0),.2)
  3421. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  3422. Handleweld.C0=clerp(Handleweld.C0,cf(0,5,3)*angles(math.rad(20),math.rad(-20),math.rad(20)),.2)
  3423. Handle2weld.C0=clerp(Handle2weld.C0,cf(0,0,0)*angles(math.rad(5),math.rad(0),math.rad(0)),.2)
  3424. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  3425. 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)
  3426. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(170),math.rad(0),math.rad(0)),.3)
  3427. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(10),math.rad(0),math.rad(-16)),.3)
  3428.  
  3429. end
  3430. so("http://www.roblox.com/asset/?id=231917758",Handle,1,.8)
  3431. for i=0,1,0.1 do
  3432. swait()
  3433. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  3434. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,0),.2)
  3435. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  3436. Handleweld.C0=clerp(Handleweld.C0,cf(3,8,0)*angles(math.rad(0),math.rad(-20),math.rad(-30)),.2)
  3437. Handle2weld.C0=clerp(Handle2weld.C0,cf(0.5,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  3438. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  3439. 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)
  3440. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(170),math.rad(0),math.rad(50)),.3)
  3441. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(10),math.rad(0),math.rad(-16)),.3)
  3442. end
  3443. so("http://www.roblox.com/asset/?id=231917758",Handle,1,1)
  3444. for i=0,1,0.1 do
  3445. swait()
  3446. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  3447. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,0),.2)
  3448. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  3449. Handleweld.C0=clerp(Handleweld.C0,cf(0,5,3)*angles(math.rad(20),math.rad(-20),math.rad(20)),.2)
  3450. Handle2weld.C0=clerp(Handle2weld.C0,cf(0,0,0)*angles(math.rad(5),math.rad(0),math.rad(0)),.2)
  3451. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  3452. 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)
  3453. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(170),math.rad(0),math.rad(0)),.3)
  3454. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(10),math.rad(0),math.rad(-16)),.3)
  3455. end
  3456. --dmgstop()
  3457. Humanoid.WalkSpeed=12
  3458. attack=false
  3459. end
  3460.  
  3461. function Die()
  3462. attack=true
  3463. Footsteps:Stop()
  3464. Footsteps2:Stop()
  3465. local Fire = it("Sound",Character.Torso)
  3466. Fire.SoundId = "rbxassetid://192104941"
  3467. Fire.Looped = true
  3468. Fire.Pitch = 1
  3469. Fire.Volume = 1
  3470. local Fire2 = it("Sound",Handle2)
  3471. Fire2.SoundId = "rbxassetid://192104941"
  3472. Fire2.Looped = true
  3473. Fire2.Pitch = 1
  3474. Fire2.Volume = 1
  3475. local Fire3 = it("Sound",Handle)
  3476. Fire3.SoundId = "rbxassetid://192104941"
  3477. Fire3.Looped = true
  3478. Fire3.Pitch = 1
  3479. Fire3.Volume = 1
  3480. local Fire4 = it("Sound",handle)
  3481. Fire4.SoundId = "rbxassetid://192104941"
  3482. Fire4.Looped = true
  3483. Fire4.Pitch = 1
  3484. Fire4.Volume = 1
  3485. local fire = Instance.new("ParticleEmitter", Character.Torso)
  3486. fire.Lifetime = NumberRange.new(0.5)
  3487. fire.Speed = NumberRange.new(1, 3)
  3488. fire.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, 3.564, 2.521), NumberSequenceKeypoint.new(1, 3.534, 2.521)})
  3489. fire.Rate = 0
  3490. fire.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0), NumberSequenceKeypoint.new(0.627, 0.587), NumberSequenceKeypoint.new(1, 1)})
  3491. fire.LightEmission = 0.6
  3492. fire.Texture = "http://www.roblox.com/asset/?id=242911609"
  3493. fire.Color = ColorSequence.new(Color3.new(1, 0, 0), Color3.new(1, 0.666667, 0))
  3494. local fire2 = Instance.new("ParticleEmitter", Handle)
  3495. fire2.Lifetime = NumberRange.new(0.5)
  3496. fire2.Speed = NumberRange.new(1, 3)
  3497. fire2.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, 6.564, 5.521), NumberSequenceKeypoint.new(1, 6.534, 5.521)})
  3498. fire2.Rate = 0
  3499. fire2.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0), NumberSequenceKeypoint.new(0.627, 0.587), NumberSequenceKeypoint.new(1, 1)})
  3500. fire2.LightEmission = 0.6
  3501. fire2.Texture = "http://www.roblox.com/asset/?id=242911609"
  3502. fire2.Color = ColorSequence.new(Color3.new(1, 0, 0), Color3.new(1, 0.666667, 0))
  3503. local fire3 = Instance.new("ParticleEmitter", Handle2)
  3504. fire3.Lifetime = NumberRange.new(0.5)
  3505. fire3.Speed = NumberRange.new(1, 3)
  3506. fire3.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, 6.564, 5.521), NumberSequenceKeypoint.new(1, 6.534, 5.521)})
  3507. fire3.Rate = 0
  3508. fire3.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0), NumberSequenceKeypoint.new(0.627, 0.587), NumberSequenceKeypoint.new(1, 1)})
  3509. fire3.LightEmission = 0.6
  3510. fire3.Texture = "http://www.roblox.com/asset/?id=242911609"
  3511. fire3.Color = ColorSequence.new(Color3.new(1, 0, 0), Color3.new(1, 0.666667, 0))
  3512. local fire4 = Instance.new("ParticleEmitter", handle)
  3513. fire4.Lifetime = NumberRange.new(0.5)
  3514. fire4.Speed = NumberRange.new(1, 3)
  3515. fire4.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, 3.564, 2.521), NumberSequenceKeypoint.new(1, 3.534, 2.521)})
  3516. fire4.Rate = 0
  3517. fire4.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0), NumberSequenceKeypoint.new(0.627, 0.587), NumberSequenceKeypoint.new(1, 1)})
  3518. fire4.LightEmission = 0.6
  3519. fire4.Texture = "http://www.roblox.com/asset/?id=242911609"
  3520. fire4.Color = ColorSequence.new(Color3.new(1, 0, 0), Color3.new(1, 0.666667, 0))
  3521. Humanoid.WalkSpeed = 0
  3522. so("http://www.roblox.com/asset/?id=199149297",Head,1,1)
  3523. so("http://www.roblox.com/asset/?id=209527203",Head,1,1)
  3524. for i=0,1,0.08 do
  3525. swait()
  3526. Torso.Velocity=RootPart.CFrame.lookVector*-30
  3527. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,1,0)*angles(math.rad(-45),math.rad(0),math.rad(90)),.2)
  3528. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(45)),.2)
  3529. handleweld.C0=clerp(handleweld.C0,cf(0,5,0)*angles(math.rad(45),math.rad(0),math.rad(0)),.2)
  3530. Handleweld.C0=clerp(Handleweld.C0,cf(0,5,0)*angles(math.rad(45),math.rad(0),math.rad(0)),.2)
  3531. Handle2weld.C0=clerp(Handle2weld.C0,cf(0,5,0)*angles(math.rad(45),math.rad(0),math.rad(0)),.2)
  3532. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(45)),.2)
  3533. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-45)),.2)
  3534. 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)
  3535. 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)
  3536. end
  3537. for i=0,1,0.005 do
  3538. swait()
  3539. moosick.Volume=1-2*i
  3540. light.Range=15-10*i
  3541. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,1,-2.5)*angles(math.rad(-90),math.rad(0),math.rad(180)),.2)
  3542. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(90)),.4)
  3543. handleweld.C0=clerp(handleweld.C0,cf(0,10,-5)*angles(math.rad(60),math.rad(30),math.rad(30)),.2)
  3544. Handleweld.C0=clerp(Handleweld.C0,cf(0,20,-5)*angles(math.rad(150),math.rad(0),math.rad(0)),.2)
  3545. Handle2weld.C0=clerp(Handle2weld.C0,cf(0,20,-5)*angles(math.rad(90),math.rad(0),math.rad(0)),.2)
  3546. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(180),math.rad(0),math.rad(90)),.2)
  3547. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.2)
  3548. 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)
  3549. 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)
  3550. end
  3551. light.Range=0
  3552. for i=0,1,0.01 do
  3553. swait()
  3554. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,1,-2.5)*angles(math.rad(-90),math.rad(0),math.rad(180)),.2)
  3555. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(90)),.4)
  3556. handleweld.C0=clerp(handleweld.C0,cf(0,10,-5)*angles(math.rad(60),math.rad(30),math.rad(30)),.2)
  3557. Handleweld.C0=clerp(Handleweld.C0,cf(0,20,-5)*angles(math.rad(150),math.rad(0),math.rad(0)),.2)
  3558. Handle2weld.C0=clerp(Handle2weld.C0,cf(0,20,-5)*angles(math.rad(90),math.rad(0),math.rad(0)),.2)
  3559. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(180),math.rad(0),math.rad(90)),.2)
  3560. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.2)
  3561. 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)
  3562. 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)
  3563. end
  3564. so("http://www.roblox.com/asset/?id=209527175",Head,1,0.9)
  3565. fire.Rate = 1000
  3566. fire2.Rate = 1000
  3567. fire3.Rate = 1000
  3568. fire4.Rate = 1000
  3569. Fire:Play()
  3570. Fire2:Play()
  3571. Fire3:Play()
  3572. Fire4:Play()
  3573. for i=0,1,0.005 do
  3574. swait()
  3575. Character.Head.face.Transparency = 1
  3576. LeftArm.Transparency=0+1*i
  3577. RightArm.Transparency=0+1*i
  3578. LeftLeg.Transparency=0+1*i
  3579. RightLeg.Transparency=0+1*i
  3580. Head.Transparency=0+1*i
  3581. Torso.Transparency=0+1*i
  3582. for _,v in pairs(Character:children()) do
  3583. if v:IsA("Hat") then
  3584. v.Handle.Transparency = 0+1*i
  3585. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,1,-2.5)*angles(math.rad(-90),math.rad(0),math.rad(180)),.2)
  3586. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(90)),.4)
  3587. handleweld.C0=clerp(handleweld.C0,cf(0,10,-5)*angles(math.rad(60),math.rad(30),math.rad(30)),.2)
  3588. Handleweld.C0=clerp(Handleweld.C0,cf(0,20,-5)*angles(math.rad(150),math.rad(0),math.rad(0)),.2)
  3589. Handle2weld.C0=clerp(Handle2weld.C0,cf(0,20,-5)*angles(math.rad(90),math.rad(0),math.rad(0)),.2)
  3590. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(180),math.rad(0),math.rad(90)),.2)
  3591. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.2)
  3592. 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)
  3593. 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)
  3594. end
  3595. end
  3596. --dmgstop()
  3597. end
  3598. Humanoid.Health = 0
  3599. end
  3600.  
  3601. equipanim()
  3602.  
  3603. local sine = 0
  3604. local change = 1
  3605. local val = 0
  3606.  
  3607. local mananum=0
  3608. while true do
  3609. swait()
  3610. sine = sine + change
  3611. local torvel=(RootPart.Velocity*Vector3.new(1,0,1)).magnitude
  3612. local velderp=RootPart.Velocity.y
  3613. hitfloor,posfloor=rayCast(RootPart.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,4,Character)
  3614. if equipped==true or equipped==false then
  3615. if Anim=="Idle" and attack==false then
  3616. idle=idle+1
  3617. else
  3618. idle=0
  3619. end
  3620. if Humanoid.Health <=20 then
  3621. if attack == false then
  3622. Humanoid.Health = math.huge
  3623. Die()
  3624. end
  3625. end
  3626. if idle>=1000 then
  3627. if attack==false then
  3628. --Sheath()
  3629. end
  3630. end
  3631. if RootPart.Velocity.y > 1 and hitfloor==nil then
  3632. Anim="Jump"
  3633. if attack==false then
  3634. Footsteps:Stop()
  3635. Footsteps2:Stop()
  3636. Neck.C0=clerp(Neck.C0,necko*euler(-0.2,0,0),.3)
  3637. Neck.C1=clerp(Neck.C1,necko2*euler(0,0,0),.3)
  3638. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0),.3)
  3639. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-.25,0,0.5),.3)
  3640. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  3641. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-.25,0,-0.5),.3)
  3642. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  3643. RH.C0=clerp(RH.C0,cf(1,0,-.75)*euler(-0.5,1.57,0)*euler(0,0,0),.2)
  3644. LH.C0=clerp(LH.C0,cf(-1,-1,-.3)*euler(-0.5,-1.57,0)*euler(0,0,0),.2)
  3645. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(20),math.rad(0),math.rad(0)),.2)
  3646. Handleweld.C0=clerp(Handleweld.C0,cf(0,0,0)*angles(math.rad(20),math.rad(20),math.rad(0)),.2)
  3647. Handle2weld.C0=clerp(Handle2weld.C0,cf(0,0,0)*angles(math.rad(20),math.rad(-20),math.rad(0)),.2)
  3648. end
  3649. elseif RootPart.Velocity.y < -1 and hitfloor==nil then
  3650. Anim="Fall"
  3651. if attack==false then
  3652. Footsteps:Stop()
  3653. Footsteps2:Stop()
  3654. Neck.C0=clerp(Neck.C0,necko*euler(0.3,0,0),.3)
  3655. Neck.C1=clerp(Neck.C1,necko2*euler(0,0,0),.3)
  3656. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*euler(0,0,0),.3)
  3657. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(0.1,0,1),.3)
  3658. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  3659. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(0.1,0,-1),.3)
  3660. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  3661. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0.6,1.57,0)*euler(0,0,0),.2)
  3662. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(-0.8,-1.57,0)*euler(0,0,0),.2)
  3663. handleweld.C0=clerp(handleweld.C0,cf(0,0,-1)*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  3664. Handleweld.C0=clerp(Handleweld.C0,cf(0,-1,0)*angles(math.rad(-20),math.rad(-10),math.rad(0)),.2)
  3665. Handle2weld.C0=clerp(Handle2weld.C0,cf(0,-1,0)*angles(math.rad(-20),math.rad(10),math.rad(0)),.2)
  3666. end
  3667. elseif torvel<1 and hitfloor~=nil then
  3668. Anim="Idle"
  3669. change=0.5
  3670. if idle>=1000 then
  3671. if attack==false then
  3672. Footsteps:Stop()
  3673. Footsteps2:Stop()
  3674. Humanoid.WalkSpeed=12
  3675. 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)
  3676. 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)
  3677. Neck.C1=clerp(Neck.C1,necko2*euler(0,0,0),.1)
  3678. RW.C0=clerp(RW.C0,cf(0.8,0.3,-0.5)*angles(math.rad(40),math.rad(0),math.rad(-85)),.5)
  3679. LW.C0=clerp(LW.C0,cf(-0.6,0.5,-0.7)*angles(math.rad(120),math.rad(0),math.rad(85)),.5)
  3680. 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)
  3681. 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)
  3682. handleweld.C0=clerp(handleweld.C0,cf(3.2,-1,-2)*angles(math.rad(90),math.rad(0),math.rad(60)),.3)
  3683. 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)
  3684. Handle2weld.C0=clerp(Handle2weld.C0,cf(5,1.5-0.5*math.cos(sine/50),-5)*angles(math.rad(-110),math.rad(25),math.rad(60)),.3)
  3685. end
  3686. else
  3687. if attack==false then
  3688. Footsteps:Stop()
  3689. Footsteps2:Stop()
  3690. Humanoid.WalkSpeed=12
  3691. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(6),math.rad(0),math.rad(0)),.3)
  3692. Neck.C0=clerp(Neck.C0,necko*angles(math.rad(3+3*math.cos(sine/36)),math.rad(0),math.rad(0)),.3)
  3693. Neck.C1=clerp(Neck.C1,necko2*euler(0,0,0),.3)
  3694. 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)
  3695. 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)
  3696. 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)
  3697. 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)
  3698. handleweld.C0=clerp(handleweld.C0,cf(0-1*math.cos(sine/40),0-0.5*math.cos(sine/20),0)*angles(math.rad(-5+5*math.cos(sine/20)),math.rad(0),math.rad(0)),.2)
  3699. 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)
  3700. Handle2weld.C0=clerp(Handle2weld.C0,cf(0+1*math.cos(sine/36),0,0+1*math.cos(sine/36))*angles(math.rad(0-12*math.cos(sine/36)),math.rad(0),math.rad(0-12*math.cos(sine/36))),.2)
  3701. end
  3702. end
  3703. elseif torvel>2 and torvel<22 and hitfloor~=nil then
  3704. Anim="Walk"
  3705. if attack==false then
  3706. change=0.8
  3707. --[[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)
  3708. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-30),math.rad(0),math.rad(0)),.3)
  3709. 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)
  3710. 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)
  3711. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0)),.3)
  3712. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0)),.3)
  3713. --Handleweld.C0=clerp(--Handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  3714. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,0),.2)
  3715. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0.1,0,0),.2)
  3716. --RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-0.1,0,0.2),.2)
  3717. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-5),math.rad(-25),math.rad(20)),.3)
  3718. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(5),math.rad(25),math.rad(-20)),.3)
  3719. RH.C0=clerp(RH.C0,RHC0,.3)
  3720. LH.C0=clerp(LH.C0,LHC0,.3)
  3721. Handleweld.C0=clerp(Handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  3722. Handle2weld.C0=clerp(Handle2weld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  3723. ]]--
  3724. Footsteps:Play()
  3725. Footsteps2:Stop()
  3726. 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)
  3727. 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)
  3728. Neck.C1=clerp(Neck.C1,necko2*euler(0,0,0),.3)
  3729. 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)
  3730. 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)
  3731. 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)
  3732. 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)
  3733. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  3734. 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)
  3735. Handle2weld.C0=clerp(Handle2weld.C0,cf(0+.5*math.cos(sine/36),0,0+.5*math.cos(sine/36))*angles(math.rad(0-3*math.cos(sine/36)),math.rad(30),math.rad(0-3*math.cos(sine/36))),.2)
  3736. end
  3737. elseif torvel>=22 and hitfloor~=nil then
  3738. Anim="Run"
  3739. change=1
  3740. if attack==false then
  3741. Footsteps:Stop()
  3742. Footsteps2:Play()
  3743. 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)
  3744. Neck.C0=clerp(Neck.C0,necko*euler(-0.2+0.075*math.cos(sine/2.5),0,0),.3)
  3745. Neck.C1=clerp(Neck.C1,necko2*euler(0,0,0),.3)
  3746. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-40),math.rad(0),math.rad(24)),.3)
  3747. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-40),math.rad(0),math.rad(-24)),.3)
  3748. 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)
  3749. 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)
  3750. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  3751. 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)
  3752. Handle2weld.C0=clerp(Handle2weld.C0,cf(0+.5*math.cos(sine/36),0,0+.5*math.cos(sine/36))*angles(math.rad(0-3*math.cos(sine/36)),math.rad(60),math.rad(0-3*math.cos(sine/36))),.2)
  3753. end
  3754. end
  3755. end
  3756. fenbarmana2:TweenSize(UDim2.new(4*mana/100,0,0.2,0),nil,1,0.4,true)
  3757. fenbarmana4.Text="[Gaster] <{[ "..mana.." ]}> [V0.1]"
  3758. if mana>=100 then
  3759. mana=100
  3760. else
  3761. if mananum<=8 then
  3762. mananum=mananum+100
  3763. else
  3764. mananum=0
  3765. mana=mana+100
  3766. end
  3767. end
  3768. end
Add Comment
Please, Sign In to add comment