killme123

ROBLOX Sans script

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