Advertisement
Guest User

Untitled

a guest
Jun 24th, 2018
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 17.68 KB | None | 0 0
  1. ---CRAZY
  2.  
  3. local s = Instance.new("Sound")
  4.  
  5. s.Name = "Sound"
  6. s.SoundId = "http://www.roblox.com/asset/?id=156157485“
  7. s.Volume = 2
  8. s.Looped = true
  9. s.archivable = false
  10.  
  11. s.Parent = game.Workspace
  12.  
  13. wait(3)
  14.  
  15. s:play()
  16.  
  17. --------------------------------
  18. pls=game:GetService'Players';
  19. rs=game:GetService'RunService';
  20. uinps=game:GetService'UserInputService';
  21. lp=pls.LocalPlayer;
  22. mouse=lp:GetMouse();
  23. c=lp.Character;
  24. rayModel=Instance.new('Model',c);
  25. human=c.Humanoid;
  26. Cone=nil;
  27. human.MaxHealth=50000000;
  28. wait();
  29. human.Health=50000000;
  30. c.Health:Destroy();
  31. Debounces={
  32. FPS=0;
  33. isAttacking=false;
  34. isMoving=false;
  35. isSprinting=false;
  36. Debounce=false;
  37. isTyping=false;
  38. isJumping=false;
  39. isFlash=false;
  40. };
  41. numLerp=function(start,goal,alpha)
  42. return(((goal-start)*alpha)+start);
  43. end;
  44. CFrameZero=function()
  45. return CFrame.new(Vector3.new());
  46. end;
  47. local function a()
  48. local t=tick();
  49. local l=t%1*3;
  50. local t=.5*math.pi*(l%1);
  51. if l<1 then
  52. return Color3.new(1,1-math.cos(t),1-math.sin(t));
  53. elseif l<2 then
  54. return Color3.new(1-math.sin(t),1,1-math.cos(t));
  55. else
  56. return Color3.new(1-math.cos(t),1-math.sin(t),1);
  57. end;
  58. end;
  59. rad=function(value)
  60. return math.rad(value);
  61. end;
  62. CFAngles=function(Vector)
  63. return CFrame.Angles(rad(Vector.x),rad(Vector.y),rad(Vector.z));
  64. end;
  65. AnimStat={
  66. lerpSpeed=.2;
  67. lerpSpeed2=.35;
  68. lerpTween=0;
  69. };
  70. Joints={
  71. c.HumanoidRootPart.RootJoint;
  72. c.Torso.Neck;
  73. c.Torso['Left Shoulder'];
  74. c.Torso['Right Shoulder'];
  75. c.Torso['Left Hip'];
  76. c.Torso['Right Hip'];
  77. };
  78. JointTargets={
  79. CFrameZero();
  80. CFrameZero();
  81. CFrameZero();
  82. CFrameZero();
  83. CFrameZero();
  84. CFrameZero();
  85. };
  86. prepareCharacter=function()
  87. music=Instance.new('Sound',c.HumanoidRootPart);
  88. music.SoundId='rbxassetid://568927358';
  89. music.Looped=true;
  90. music.Volume=.6;
  91. music2=Instance.new('Sound',c);
  92. music2.SoundId='rbxassetid://168508761';
  93. music2.Looped=true;
  94. music2.Volume=1;
  95. music3=Instance.new('Sound',c.HumanoidRootPart);
  96. music3.SoundId='rbxassetid://569049019';
  97. music3.Looped=true;
  98. music3.Volume=1;
  99. music4=Instance.new('Sound',c.HumanoidRootPart);
  100. music4.SoundId='rbxassetid://380762696';
  101. music4.Looped=true;
  102. music4.Volume=1;
  103. music5=Instance.new('Sound',c.HumanoidRootPart);
  104. music5.SoundId='rbxassetid://391282669';
  105. music5.Looped=true;
  106. music5.Volume=1;
  107. human.WalkSpeed=0;
  108. human.JumpPower=0;
  109. for i,v in pairs(c:children())do
  110. if v:isA'Hat'then v:Destroy();end;
  111. if v:FindFirstChild'roblox'then v.roblox:Destroy();end;
  112. 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;
  113. if v:FindFirstChild'face'then v.face:Destroy();end;
  114. if v:isA'Part'then v.BrickColor=BrickColor.new'White';end;
  115. end
  116. local shirt=c:FindFirstChild'Shirt'or Instance.new('Shirt',c);
  117. local pants=c:FindFirstChild'Pants'or Instance.new('Pants',c);
  118. shirt.ShirtTemplate='rbxassetid://555630242';
  119. pants.PantsTemplate='rbxassetid://620140798';
  120. local Head=Instance.new('Part',c);
  121. Head.Size=Vector3.new(2.5,2.5,1);
  122. Head.Transparency=1;
  123. Head:BreakJoints();
  124. local hw=Instance.new('Weld',c.Head);
  125. hw.Part0=c.Head;
  126. hw.Part1=Head;
  127. hw.C0=CFrame.new(0,.3,0);
  128. faceDecal=Instance.new('Decal',Head);
  129. faceDecal.Face=Enum.NormalId.Front;
  130. faceDecal.Texture='rbxassetid://343377229';
  131. local backDecal=Instance.new('Decal',Head);
  132. backDecal.Face=Enum.NormalId.Back;
  133. backDecal.Texture='rbxassetid://629817522';
  134. local mes=Instance.new('BlockMesh',Head);
  135. mes.Scale=Vector3.new(1,1,.4);
  136. local Anim=human:FindFirstChild'Animator'
  137. if Anim then Anim:Destroy();end;
  138. end;
  139. setJointCFrames=function(table)
  140. for i=1,#table do
  141. JointTargets[i]=table[i];
  142. end;
  143. end;
  144. triWave=function(x)
  145. local pi2=math.pi/2;
  146. return math.abs((x/pi2)%4-2)-1;
  147. end;
  148. setLerp=function(speed)
  149. AnimStat.lerpSpeed=speed;
  150. end;
  151. setTween=function(tween)
  152. AnimStat.lerpTween=tween;
  153. end;
  154. playSound=function(id,part,vol,pitch)
  155. local vol=vol or 1;
  156. local pitch=pitch or 1;
  157. local x=Instance.new('Sound',part);
  158. x.Volume=vol;
  159. x.Pitch=pitch;
  160. x.SoundId='rbxassetid://'..id;
  161. spawn(function()
  162. wait();
  163. x:Play();
  164. wait(x.TimeLength+.2);
  165. x:Destroy();
  166. end);
  167. end;
  168. lerpBoom=function()
  169. if Cone then
  170. Cone.CFrame=CFrame.new(c.HumanoidRootPart.CFrame.p,c.HumanoidRootPart.CFrame.p+c.HumanoidRootPart.Velocity)*CFrame.Angles(-math.pi/2,0,0);
  171. cMesh.Scale=Vector3.new(20,20+c.HumanoidRootPart.Velocity.magnitude/10,20);
  172. Cone.Transparency=1-c.HumanoidRootPart.Velocity.magnitude/1000;
  173. else
  174. Cone=Instance.new('Part',c);
  175. Cone.Anchored=true;
  176. Cone.CanCollide=false;
  177. Cone.Transparency=math.random(50,70)/100;
  178. Cone.Size=Vector3.new(1,1,1);
  179. Cone.CFrame=CFrame.new(c.HumanoidRootPart.CFrame.p,c.HumanoidRootPart.CFrame.p+c.HumanoidRootPart.Velocity)*CFrame.Angles(-math.pi/2,0,0);
  180. cMesh=Instance.new('SpecialMesh',Cone);
  181. cMesh.MeshId='rbxassetid://1033714';
  182. cMesh.Scale=Vector3.new(20,50,20);
  183. end;
  184. end;
  185. noBoom=function()
  186. if Cone then local x=Cone Cone=nil;
  187. for i=1,20 do
  188. wait();
  189. x.Mesh.Scale=x.Mesh.Scale+Vector3.new(-.5,1,-.5);
  190. x.Transparency=x.Transparency+1/30;
  191. end;
  192. end;
  193. end;
  194. gasterBlast=function(tCFrame,aimPos,charge)
  195. local aimTarget;
  196. if aimPos then
  197. aimTarget=CFrame.new(tCFrame,aimPos);
  198. else
  199. aimTarget=tCFrame;
  200. end;
  201. local gast=Instance.new('Part',c);
  202. gast.Size=Vector3.new(12,.2,12);
  203. gast.CanCollide=false;
  204. gast.Anchored=true;
  205. gast.Transparency=1;
  206. if charge then
  207. playSound(445047607,gast,math.random(90,110)/100);
  208. end;
  209. wait();
  210. for i=1,2 do
  211. local decal=Instance.new('Decal',gast);
  212. decal.Texture='rbxassetid://504353993';
  213. if i==1 then
  214. decal.Face=Enum.NormalId.Top;
  215. else
  216. decal.Face=Enum.NormalId.Bottom;
  217. end;
  218. end;
  219. gast.CFrame=CFrame.new(aimTarget.p-Vector3.new(math.sin(tick()*10)*10,20,math.cos(tick()*10)*10));
  220. spawn(function()
  221. local tarCFrame=gast.CFrame;
  222. local isLooping=true;
  223. spawn(function()
  224. while rs.RenderStepped:wait()and isLooping do
  225. gast.CFrame=gast.CFrame:lerp(tarCFrame,.6/(Debounces.FPS/60));
  226. end;
  227. end);
  228. for i=1,30 do
  229. wait();
  230. tarCFrame=gast.CFrame:lerp(aimTarget,.24);
  231. end;
  232. playSound(445047607,gast,math.random(90,110)/100);
  233. isLooping=false;
  234. wait(.08);
  235. local ray=Ray.new(aimTarget.p,aimTarget.lookVector.unit*999);
  236. local _,pos=workspace:FindPartOnRay(ray,c);
  237. local dis=(aimTarget.p-pos).magnitude;
  238. 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);
  239. local rayPart=Instance.new('Part',rayModel);
  240. rayPart.Material='Neon';
  241. rayPart.FormFactor='Custom';
  242. rayPart.Color=a();
  243. rayPart.Anchored=true;
  244. rayPart.CanCollide=false;
  245. rayPart.Shape='Block';
  246. rayPart.Size=Vector3.new(dis+400,8,8);
  247. rayPart.CFrame=rayCFrame;
  248. gast:Destroy();
  249. end);
  250. end;
  251. largegasterBlast=function(tCFrame,aimPos)
  252. local aimTarget;
  253. if aimPos then
  254. aimTarget=CFrame.new(tCFrame,aimPos);
  255. else
  256. aimTarget=tCFrame;
  257. end;
  258. local gast=Instance.new('Part',c);
  259. gast.Size=Vector3.new(25,.2,25);
  260. gast.CanCollide=false;
  261. gast.Anchored=true;
  262. gast.Transparency=1;
  263. playSound(445047607,gast,math.random(85,97)/100);
  264. wait();
  265. for i=1,2 do
  266. local decal=Instance.new('Decal',gast);
  267. decal.Texture='rbxassetid://504353993';
  268. if i==1 then
  269. decal.Face=Enum.NormalId.Top;
  270. else
  271. decal.Face=Enum.NormalId.Bottom;
  272. end;
  273. end;
  274. gast.CFrame=CFrame.new(aimTarget.p-Vector3.new(math.sin(tick()*10)*10,20,math.cos(tick()*10)*10));
  275. spawn(function()
  276. local tarCFrame=gast.CFrame;
  277. local isLooping=true;
  278. spawn(function()
  279. while rs.RenderStepped:wait()and isLooping do
  280. gast.CFrame=gast.CFrame:lerp(tarCFrame,.6/(Debounces.FPS/60));
  281. end;
  282. end);
  283. for i=1,40 do
  284. wait();
  285. tarCFrame=gast.CFrame:lerp(aimTarget,.18);
  286. end;
  287. playSound(445047607,gast,math.random(80,95)/100);
  288. isLooping=false;
  289. wait(.08);
  290. local ray=Ray.new(aimTarget.p,aimTarget.lookVector.unit*999);
  291. local _,pos=workspace:FindPartOnRay(ray,c);
  292. local dis=(aimTarget.p-pos).magnitude;
  293. 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);
  294. local rayPart=Instance.new('Part',rayModel);
  295. rayPart.Material='Neon';
  296. rayPart.FormFactor='Custom';
  297. rayPart.Color=a();
  298. rayPart.Anchored=true;
  299. rayPart.CanCollide=false;
  300. rayPart.Shape='Block';
  301. rayPart.Size=Vector3.new(dis+400,17,17);
  302. rayPart.CFrame=rayCFrame;
  303. gast:Destroy();
  304. end);
  305. end;
  306. prepareCharacter();
  307. spawn(function()
  308. local sine=0;
  309. while wait()do
  310. if Debounces.isFlash then
  311. if(tick()*8)%2>1 then
  312. faceDecal.Texture='rbxassetid://504353993';
  313. else
  314. faceDecal.Texture='rbxassetid://504353993';
  315. end;
  316. else
  317. faceDecal.Texture='rbxassetid://504353993';
  318. end;
  319. if Debounces.isAttacking==false and Debounces.isMoving==false and Debounces.Debounce==false and Debounces.isJumping==false then
  320. setLerp(.8);
  321. local spasm=math.abs(math.sin(tick()*20))*1.1;
  322. local spasm2=math.abs(math.sin(tick()*20-2))*1.1;
  323. local spasm3=math.abs(math.sin(tick()*20-2.3))*1.1;
  324. setJointCFrames({
  325. CFrame.new(Vector3.new(0,0-spasm,0))*CFAngles(Vector3.new(0,0,0));
  326. CFrame.new(Vector3.new(0,1.5,0))*CFAngles(Vector3.new(-0.011,-0.502,-1.177));
  327. CFrame.new(Vector3.new(-1.5-spasm2^2/3,-0.001,0))*CFAngles(Vector3.new(-2.344,7.899,-2.82+spasm3^2*-60));
  328. CFrame.new(Vector3.new(1.569+spasm2^2/3,0,-0.1))*CFAngles(Vector3.new(4.822,1.123,6.383+spasm3^2*60));
  329. CFrame.new(Vector3.new(-0.61,-2+spasm/1.01,-.15))*CFAngles(Vector3.new(-2.206,0.767,-0.582));
  330. CFrame.new(Vector3.new(0.55,-2+spasm/1.01,-.1))*CFAngles(Vector3.new(-0.026,0.463,3.184));
  331. });
  332. elseif Debounces.isAttacking==false and Debounces.isMoving==true and Debounces.Debounce==false and Debounces.isSprinting==false and Debounces.isJumping==false then
  333. sine=tick()*18;
  334. human.WalkSpeed=120;
  335. setLerp(.35);
  336. setJointCFrames({
  337. CFrame.new(Vector3.new(0,math.sin(sine)/50-.3,0))*CFAngles(Vector3.new(-30-math.sin(sine*2)*3,math.sin(sine*2)*15,0));
  338. CFrame.new(Vector3.new(0,1.48,0.099))*CFAngles(Vector3.new(14.999,-0.001,0));
  339. CFrame.new(Vector3.new(-1.5,-0.001,0.2+math.sin(sine*2+math.pi)*1.2))*CFAngles(Vector3.new(-25.001+math.sin(sine*2+math.pi)*-90,0,-15));
  340. CFrame.new(Vector3.new(1.5,-0.001,0.2+math.sin(sine*2)*1.2))*CFAngles(Vector3.new(-25+math.sin(sine*2)*-90,-0.001,14.999));
  341. CFrame.new(Vector3.new(-0.501,-2+math.cos(sine*2+math.pi)/3,.3+math.sin(sine*2)))*CFAngles(Vector3.new(-25+math.sin(sine*2)*-70,0,-0.001));
  342. CFrame.new(Vector3.new(0.499,-2+math.cos(sine*2)/3,.3+math.sin(sine*2+math.pi)))*CFAngles(Vector3.new(-25+math.sin(sine*2)*70,0,0));
  343. });
  344. elseif Debounces.isAttacking==false and Debounces.isMoving==true and Debounces.Debounce==false and Debounces.isSprinting==true and Debounces.isJumping==false then
  345. sine=tick()*28;
  346. human.WalkSpeed=400;
  347. lerpBoom();
  348. setLerp(.65);
  349. setJointCFrames({
  350. CFrame.new(Vector3.new(0,math.sin(sine)/50-.3,0))*CFAngles(Vector3.new(-30-math.sin(sine*2)*3,math.sin(sine*2)*15,0));
  351. CFrame.new(Vector3.new(0,1.48,0.099))*CFAngles(Vector3.new(14.999,-0.001,0));
  352. CFrame.new(Vector3.new(-1.5,-0.001,0.2+math.sin(sine*2+math.pi)*1.2))*CFAngles(Vector3.new(-25.001+math.sin(sine*2+math.pi)*-90,0,-15));
  353. CFrame.new(Vector3.new(1.5,-0.001,0.2+math.sin(sine*2)*1.2))*CFAngles(Vector3.new(-25+math.sin(sine*2)*-90,-0.001,14.999));
  354. CFrame.new(Vector3.new(-0.501,-2+math.cos(sine*2+math.pi)/3,.3+math.sin(sine*2)))*CFAngles(Vector3.new(-25+math.sin(sine*2)*-70,0,-0.001));
  355. CFrame.new(Vector3.new(0.499,-2+math.cos(sine*2)/3,.3+math.sin(sine*2+math.pi)))*CFAngles(Vector3.new(-25+math.sin(sine*2)*70,0,0));
  356. });
  357. elseif Debounces.isJumping==true and Debounces.Debounce==false then
  358. setLerp(.14);
  359. human.WalkSpeed=45;
  360. setJointCFrames({
  361. CFrame.new(Vector3.new(0,0,0))*CFAngles(Vector3.new(-8,0,0));
  362. CFrame.new(Vector3.new(0,1.5,-0.15))*CFAngles(Vector3.new(-10.138,3.687,0.306));
  363. CFrame.new(Vector3.new(-1.23,0.069,-0.56))*CFAngles(Vector3.new(50.809,0.672,18.704));
  364. CFrame.new(Vector3.new(0.929,-0.031,-1.0912))*CFAngles(Vector3.new(63.00,13.85,-36.416));
  365. CFrame.new(Vector3.new(-0.63,-1.82,-0.74))*CFAngles(Vector3.new(31.324,3.424,-1.249));
  366. CFrame.new(Vector3.new(0.619,-1.331,0.82))*CFAngles(Vector3.new(-59.644,0.998,9.776));
  367. });
  368. end;
  369. end;
  370. end);
  371. human.Changed:connect(function(prop)
  372. if prop=='MoveDirection'then
  373. if human.MoveDirection.magnitude>.02 then
  374. Debounces.isMoving=true;
  375. else
  376. Debounces.isMoving=false;
  377. end;
  378. end;
  379. end);
  380. uinps.InputBegan:connect(function(InputObj)
  381. if InputObj.KeyCode==Enum.KeyCode.Slash then
  382. local finishEvent=nil;
  383. Debounces.isTyping=true
  384. finishEvent=uinps.InputBegan:connect(function(InputObj)
  385. if InputObj.KeyCode==Enum.KeyCode.Return or InputObj.UserInputType==Enum.UserInputType.MouseButton1 then
  386. Debounces.isTyping=false;
  387. finishEvent:disconnect();
  388. end;
  389. end);
  390. end;
  391. end);
  392. mouse.KeyDown:connect(function(key)
  393. if key=='0'then
  394. Debounces.isSprinting=true;
  395. playSound(445047607,c.Torso);
  396. for i=1,3 do
  397. spawn(function()
  398. local e=Instance.new('Part',c);
  399. e.Size=Vector3.new(1,1,1);
  400. e.Material='Neon';
  401. e.Color=a();
  402. e.Anchored=true;
  403. e.CFrame=c.HumanoidRootPart.CFrame*CFrame.Angles(0,0,-math.pi/2);
  404. e.CanCollide=false;
  405. local rm=Instance.new('SpecialMesh',e);
  406. rm.MeshType='FileMesh';
  407. rm.MeshId='rbxassetid://3270017';
  408. rm.Scale=Vector3.new(3.2,3.2,10);
  409. for x=1,30 do
  410. wait();
  411. rm.Scale=rm.Scale:lerp(Vector3.new(i*30,i*30,(4-i)*450),.1);
  412. e.Transparency=x/30+.5;
  413. end;
  414. end);
  415. end;
  416. c.HumanoidRootPart.Velocity=c.HumanoidRootPart.CFrame.lookVector*200;
  417. end;
  418. end);
  419. mouse.KeyUp:connect(function(key)
  420. if key=='0'then
  421. Debounces.isSprinting=false;
  422. end;
  423. end);
  424. mouse.KeyDown:connect(function(key)
  425. if key=='v'then
  426. playSound(445047607,c.Torso,math.random(90,120)/100);
  427. local oldPos=c.HumanoidRootPart.CFrame.p;
  428. local mHit=mouse.Hit.p;
  429. for i=1,2 do
  430. spawn(function()
  431. local pos
  432. if i==1 then pos=oldPos else pos=mHit end
  433. local p=Instance.new('Part',workspace);
  434. p.Anchored=true;
  435. p.CanCollide=false;
  436. p.Color=a();
  437. p.FormFactor='Custom';
  438. p.CFrame=CFrame.new(pos+Vector3.new(0,500,0));
  439. p.Transparency=.4;
  440. p.Size=Vector3.new(20,1000,20);
  441. for i=1,20 do
  442. wait();
  443. p.Transparency=.4+(i/10)*.6;
  444. p.Size=Vector3.new(20-i*1.5,1000,20-i*1.5);
  445. p.CFrame=CFrame.new(pos+Vector3.new(0,500,0));
  446. end;
  447. p:Destroy();
  448. end);
  449. end;
  450. if Debounces.isMoving then
  451. 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));
  452. else
  453. c.HumanoidRootPart.CFrame=CFrame.new(mouse.Hit.p+Vector3.new(0,4,0),Vector3.new(oldPos.x,mouse.Hit.p.y+4,oldPos.z));
  454. end;
  455. end;
  456. end);
  457. mouse.KeyDown:connect(function(key)
  458. if key=='r'then
  459. local pointTarget=mouse.Hit.p;
  460. for i=1,20 do
  461. wait();
  462. 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));
  463. end;
  464. wait();
  465. largegasterBlast(CFrame.new(pointTarget+Vector3.new(0,35,0),pointTarget));
  466. end;
  467. end);
  468. mouse.KeyDown:connect(function(key)
  469. if key=='f'then
  470. local pointTarget=mouse.Hit.p;
  471. for i=1,20 do
  472. wait();
  473. 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)));
  474. end;
  475. largegasterBlast(CFrame.new(c.HumanoidRootPart.CFrame.p+Vector3.new(0,50,0),pointTarget):toWorldSpace(CFrame.new(0,0,-25)));
  476. end;
  477. end);
  478. mouse.Button1Down:connect(function()
  479. Debounces.isFlash=true;
  480. end);
  481. mouse.Button1Up:connect(function()
  482. Debounces.isFlash=false;
  483. end);
  484. mouse.KeyDown:connect(function(key)
  485. if key=='k'then
  486. if music.isPlaying then music:Stop();else music:Play();end;
  487. end;
  488. end);
  489. mouse.KeyDown:connect(function(key)
  490. if key=='j'then
  491. if music2.isPlaying then music2:Stop();else music2:Play();end;
  492. end;
  493. end);
  494. mouse.KeyDown:connect(function(key)
  495. if key=='l'then
  496. if music3.isPlaying then music3:Stop();else music3:Play();end;
  497. end;
  498. end);
  499. mouse.KeyDown:connect(function(key)
  500. if key=='p'then
  501. if music4.isPlaying then music4:Stop();else music4:Play();end;
  502. end;
  503. end);
  504. mouse.KeyDown:connect(function(key)
  505. if key=='o'then
  506. if music5.isPlaying then music4:Stop();else music5:Play();end;
  507. end;
  508. end);
  509. mouse.KeyDown:connect(function(key)
  510. if key=='e'then
  511. gasterBlast(c.Torso.CFrame.p+Vector3.new(math.sin(tick()*10)*10,12,math.cos(tick()*10)*10),mouse.Hit.p,true);
  512. end;
  513. end);
  514. mouse.KeyDown:connect(function(key)
  515. if key=='c'then
  516. largegasterBlast(c.Torso.CFrame.p+Vector3.new(math.sin(tick()*10)*10,12,math.cos(tick()*10)*10),mouse.Hit.p);
  517. end;
  518. end);
  519. mouse.KeyDown:connect(function(key)
  520. if key=='q'then
  521. for i=1,5 do
  522. wait();
  523. gasterBlast(c.Torso.CFrame.p+Vector3.new(math.sin(tick()*10)*10,12,math.cos(tick()*10)*10),mouse.Hit.p);
  524. end;
  525. largegasterBlast(c.Torso.CFrame.p+Vector3.new(0,25,0),mouse.Hit.p);
  526. end;
  527. end);
  528. mouse.KeyDown:connect(function(key)
  529. if key=='t'then
  530. local pointTarget=mouse.Hit.p;
  531. for i=1,20 do
  532. 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);
  533. end;
  534. wait(.2);
  535. for i=1,10 do
  536. largegasterBlast(pointTarget+Vector3.new(math.sin(math.deg((360/20)*i))*25,20,math.cos(math.deg((360/20)*i))*25),pointTarget);
  537. end;
  538. end;
  539. end);
  540. human.StateChanged:connect(function(os,ns)
  541. if c.HumanoidRootPart.Velocity.Y<.1 and Debounces.isJumping==true and ns==Enum.HumanoidStateType.Landed then
  542. Debounces.isJumping=false;
  543. end;
  544. end);
  545. for i=1,#Joints do
  546. Joints[i].C1=CFrameZero();
  547. end;
  548. rs.RenderStepped:connect(function()
  549. Debounces.FPS=1/rs.RenderStepped:wait();
  550. if Debounces.FPS<30 then
  551. Debounces.FPS=30;
  552. end;
  553. if Debounces.isSprinting then
  554. lerpBoom();
  555. else
  556. noBoom();
  557. end;
  558. for _,v in pairs(rayModel:children())do
  559. v.Transparency=v.Transparency+.06/(Debounces.FPS/60);
  560. if v.Transparency>.99 then v:Destroy();return;end;
  561. v.CanCollide=true;
  562. local tParts=v:GetTouchingParts();
  563. v.CanCollide=false;
  564. local vCFrame=v.CFrame;
  565. v.Size=v.Size+Vector3.new(0,1,1)/(Debounces.FPS/60);
  566. v.CFrame=vCFrame;
  567. for _,x in pairs(tParts)do
  568. if x and x.Parent and x.Parent:FindFirstChild'Humanoid'and x.Parent.Humanoid:isA'Humanoid'and x.Parent~=c then
  569. x.Parent.Humanoid:TakeDamage(1,2);
  570. end;
  571. end;
  572. end;
  573. local FPSLerp=AnimStat.lerpSpeed/(Debounces.FPS/60);
  574. for i=1,#Joints do
  575. Joints[i].C0=Joints[i].C0:lerp(JointTargets[i],FPSLerp);
  576. end;
  577. end);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement