Scriptus_Infinitus

SASS

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