FloweyTheFlower

Roblox Scripts #40 Rainbow Sans

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