RoomaticViner

SANESSSSSSSS!!!!!. YOU WANNA HAVE A BAD TOM???????????

Mar 3rd, 2018
141
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 17.63 KB | None | 0 0
  1. Thanks for using this script!
  2. = Team Rox =
  3. #Zeta
  4. My roblox username: SP_RoXploit
  5.  
  6. Note: this is not my script, someone else owns it. I got this script from a roblox pastebin script vid. feel free to download!
  7.  
  8. pls=game:GetService'Players';
  9. rs=game:GetService'RunService';
  10. uinps=game:GetService'UserInputService';
  11. lp=pls.LocalPlayer;
  12. mouse=lp:GetMouse();
  13. c=lp.Character;
  14. rayModel=Instance.new('Model',c);
  15. human=c.Humanoid;
  16. Cone=nil;
  17. human.MaxHealth=5000;
  18. wait();
  19. human.Health=5000;
  20. c.Health:Destroy();
  21. Debounces={
  22. FPS=0;
  23. isAttacking=false;
  24. isMoving=false;
  25. isSprinting=false;
  26. Debounce=false;
  27. isTyping=false;
  28. isJumping=false;
  29. isFlash=false;
  30. };
  31. numLerp=function(start,goal,alpha)
  32. return(((goal-start)*alpha)+start);
  33. end;
  34. CFrameZero=function()
  35. return CFrame.new(Vector3.new());
  36. end;
  37. local function a()
  38. local t=tick();
  39. local l=t%1*3;
  40. local t=.5*math.pi*(l%1);
  41. if l<1 then
  42. return Color3.new(1,1-math.cos(t),1-math.sin(t));
  43. elseif l<2 then
  44. return Color3.new(1-math.sin(t),1,1-math.cos(t));
  45. else
  46. return Color3.new(1-math.cos(t),1-math.sin(t),1);
  47. end;
  48. end;
  49. rad=function(value)
  50. return math.rad(value);
  51. end;
  52. CFAngles=function(Vector)
  53. return CFrame.Angles(rad(Vector.x),rad(Vector.y),rad(Vector.z));
  54. end;
  55. AnimStat={
  56. lerpSpeed=.2;
  57. lerpSpeed2=.35;
  58. lerpTween=0;
  59. };
  60. Joints={
  61. c.HumanoidRootPart.RootJoint;
  62. c.Torso.Neck;
  63. c.Torso['Left Shoulder'];
  64. c.Torso['Right Shoulder'];
  65. c.Torso['Left Hip'];
  66. c.Torso['Right Hip'];
  67. };
  68. JointTargets={
  69. CFrameZero();
  70. CFrameZero();
  71. CFrameZero();
  72. CFrameZero();
  73. CFrameZero();
  74. CFrameZero();
  75. };
  76. prepareCharacter=function()
  77. music=Instance.new('Sound',c.HumanoidRootPart);
  78. music.SoundId='rbxassetid://394144904';
  79. music.Looped=true;
  80. music.Volume=.6;
  81. music2=Instance.new('Sound',c);
  82. music2.SoundId='rbxassetid://259613634';
  83. music2.Looped=true;
  84. music2.Volume=1;
  85. music3=Instance.new('Sound',c.HumanoidRootPart);
  86. music3.SoundId='rbxassetid://266530326';
  87. music3.Looped=true;
  88. music3.Volume=1;
  89. music4=Instance.new('Sound',c.HumanoidRootPart);
  90. music4.SoundId='rbxassetid://155738252';
  91. music4.Looped=true;
  92. music4.Volume=1;
  93. music5=Instance.new('Sound',c.HumanoidRootPart);
  94. music5.SoundId='rbxassetid://215391212';
  95. music5.Looped=true;
  96. music5.Volume=1;
  97. human.WalkSpeed=0;
  98. human.JumpPower=0;
  99. for i,v in pairs(c:children())do
  100. if v:isA'Hat'then v:Destroy();end;
  101. if v:FindFirstChild'roblox'then v.roblox:Destroy();end;
  102. 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;
  103. if v:FindFirstChild'face'then v.face:Destroy();end;
  104. if v:isA'Part'then v.BrickColor=BrickColor.new'White';end;
  105. end
  106. local shirt=c:FindFirstChild'Shirt'or Instance.new('Shirt',c);
  107. local pants=c:FindFirstChild'Pants'or Instance.new('Pants',c);
  108. shirt.ShirtTemplate='rbxassetid://334755544';
  109. pants.PantsTemplate='rbxassetid://315964941';
  110. local Head=Instance.new('Part',c);
  111. Head.Size=Vector3.new(2.5,2.5,1);
  112. Head.Transparency=1;
  113. Head:BreakJoints();
  114. local hw=Instance.new('Weld',c.Head);
  115. hw.Part0=c.Head;
  116. hw.Part1=Head;
  117. hw.C0=CFrame.new(0,.3,0);
  118. faceDecal=Instance.new('Decal',Head);
  119. faceDecal.Face=Enum.NormalId.Front;
  120. faceDecal.Texture='rbxassetid://400387868';
  121. local backDecal=Instance.new('Decal',Head);
  122. backDecal.Face=Enum.NormalId.Back;
  123. backDecal.Texture='rbxassetid://400377807';
  124. local mes=Instance.new('BlockMesh',Head);
  125. mes.Scale=Vector3.new(1,1,.4);
  126. local Anim=human:FindFirstChild'Animator'
  127. if Anim then Anim:Destroy();end;
  128. end;
  129. setJointCFrames=function(table)
  130. for i=1,#table do
  131. JointTargets[i]=table[i];
  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);
  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.Color=a();
  233. rayPart.Anchored=true;
  234. rayPart.CanCollide=false;
  235. rayPart.Shape='Cylinder';
  236. rayPart.Size=Vector3.new(dis+400,8,8);
  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);
  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.Color=a();
  288. rayPart.Anchored=true;
  289. rayPart.CanCollide=false;
  290. rayPart.Shape='Cylinder';
  291. rayPart.Size=Vector3.new(dis+400,17,17);
  292. rayPart.CFrame=rayCFrame;
  293. gast:Destroy();
  294. end);
  295. end;
  296. prepareCharacter();
  297. spawn(function()
  298. local sine=0;
  299. while wait()do
  300. if Debounces.isFlash then
  301. if(tick()*8)%2>1 then
  302. faceDecal.Texture='rbxassetid://400377503';
  303. else
  304. faceDecal.Texture='rbxassetid://400387868';
  305. end;
  306. else
  307. faceDecal.Texture='rbxassetid://400387868';
  308. end;
  309. if Debounces.isAttacking==false and Debounces.isMoving==false and Debounces.Debounce==false and Debounces.isJumping==false then
  310. setLerp(.8);
  311. local spasm=math.abs(math.sin(tick()*20))*1.1;
  312. local spasm2=math.abs(math.sin(tick()*20-2))*1.1;
  313. local spasm3=math.abs(math.sin(tick()*20-2.3))*1.1;
  314. setJointCFrames({
  315. CFrame.new(Vector3.new(0,0-spasm,0))*CFAngles(Vector3.new(0,0,0));
  316. CFrame.new(Vector3.new(0,1.5,0))*CFAngles(Vector3.new(-0.011,-0.502,-1.177));
  317. CFrame.new(Vector3.new(-1.5-spasm2^2/3,-0.001,0))*CFAngles(Vector3.new(-2.344,7.899,-2.82+spasm3^2*-60));
  318. CFrame.new(Vector3.new(1.569+spasm2^2/3,0,-0.1))*CFAngles(Vector3.new(4.822,1.123,6.383+spasm3^2*60));
  319. CFrame.new(Vector3.new(-0.61,-2+spasm/1.01,-.15))*CFAngles(Vector3.new(-2.206,0.767,-0.582));
  320. CFrame.new(Vector3.new(0.55,-2+spasm/1.01,-.1))*CFAngles(Vector3.new(-0.026,0.463,3.184));
  321. });
  322. elseif Debounces.isAttacking==false and Debounces.isMoving==true and Debounces.Debounce==false and Debounces.isSprinting==false and Debounces.isJumping==false then
  323. sine=tick()*18;
  324. human.WalkSpeed=120;
  325. setLerp(.35);
  326. setJointCFrames({
  327. 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));
  328. CFrame.new(Vector3.new(0,1.48,0.099))*CFAngles(Vector3.new(14.999,-0.001,0));
  329. 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));
  330. 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));
  331. 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));
  332. 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));
  333. });
  334. elseif Debounces.isAttacking==false and Debounces.isMoving==true and Debounces.Debounce==false and Debounces.isSprinting==true and Debounces.isJumping==false then
  335. sine=tick()*28;
  336. human.WalkSpeed=400;
  337. lerpBoom();
  338. setLerp(.65);
  339. setJointCFrames({
  340. 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));
  341. CFrame.new(Vector3.new(0,1.48,0.099))*CFAngles(Vector3.new(14.999,-0.001,0));
  342. 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));
  343. 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));
  344. 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));
  345. 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));
  346. });
  347. elseif Debounces.isJumping==true and Debounces.Debounce==false then
  348. setLerp(.14);
  349. human.WalkSpeed=45;
  350. setJointCFrames({
  351. CFrame.new(Vector3.new(0,0,0))*CFAngles(Vector3.new(-8,0,0));
  352. CFrame.new(Vector3.new(0,1.5,-0.15))*CFAngles(Vector3.new(-10.138,3.687,0.306));
  353. CFrame.new(Vector3.new(-1.23,0.069,-0.56))*CFAngles(Vector3.new(50.809,0.672,18.704));
  354. CFrame.new(Vector3.new(0.929,-0.031,-1.0912))*CFAngles(Vector3.new(63.00,13.85,-36.416));
  355. CFrame.new(Vector3.new(-0.63,-1.82,-0.74))*CFAngles(Vector3.new(31.324,3.424,-1.249));
  356. CFrame.new(Vector3.new(0.619,-1.331,0.82))*CFAngles(Vector3.new(-59.644,0.998,9.776));
  357. });
  358. end;
  359. end;
  360. end);
  361. human.Changed:connect(function(prop)
  362. if prop=='MoveDirection'then
  363. if human.MoveDirection.magnitude>.02 then
  364. Debounces.isMoving=true;
  365. else
  366. Debounces.isMoving=false;
  367. end;
  368. end;
  369. end);
  370. uinps.InputBegan:connect(function(InputObj)
  371. if InputObj.KeyCode==Enum.KeyCode.Slash then
  372. local finishEvent=nil;
  373. Debounces.isTyping=true
  374. finishEvent=uinps.InputBegan:connect(function(InputObj)
  375. if InputObj.KeyCode==Enum.KeyCode.Return or InputObj.UserInputType==Enum.UserInputType.MouseButton1 then
  376. Debounces.isTyping=false;
  377. finishEvent:disconnect();
  378. end;
  379. end);
  380. end;
  381. end);
  382. mouse.KeyDown:connect(function(key)
  383. if key=='0'then
  384. Debounces.isSprinting=true;
  385. playSound(160248522,c.Torso);
  386. for i=1,3 do
  387. spawn(function()
  388. local e=Instance.new('Part',c);
  389. e.Size=Vector3.new(1,1,1);
  390. e.Material='Neon';
  391. e.Color=a();
  392. e.Anchored=true;
  393. e.CFrame=c.HumanoidRootPart.CFrame*CFrame.Angles(0,0,-math.pi/2);
  394. e.CanCollide=false;
  395. local rm=Instance.new('SpecialMesh',e);
  396. rm.MeshType='FileMesh';
  397. rm.MeshId='rbxassetid://3270017';
  398. rm.Scale=Vector3.new(3.2,3.2,10);
  399. for x=1,30 do
  400. wait();
  401. rm.Scale=rm.Scale:lerp(Vector3.new(i*30,i*30,(4-i)*450),.1);
  402. e.Transparency=x/30+.5;
  403. end;
  404. end);
  405. end;
  406. c.HumanoidRootPart.Velocity=c.HumanoidRootPart.CFrame.lookVector*200;
  407. end;
  408. end);
  409. mouse.KeyUp:connect(function(key)
  410. if key=='0'then
  411. Debounces.isSprinting=false;
  412. end;
  413. end);
  414. mouse.KeyDown:connect(function(key)
  415. if key=='v'then
  416. playSound(201858087,c.Torso,math.random(90,120)/100);
  417. local oldPos=c.HumanoidRootPart.CFrame.p;
  418. local mHit=mouse.Hit.p;
  419. for i=1,2 do
  420. spawn(function()
  421. local pos
  422. if i==1 then pos=oldPos else pos=mHit end
  423. local p=Instance.new('Part',workspace);
  424. p.Anchored=true;
  425. p.CanCollide=false;
  426. p.Color=a();
  427. p.FormFactor='Custom';
  428. p.CFrame=CFrame.new(pos+Vector3.new(0,500,0));
  429. p.Transparency=.4;
  430. p.Size=Vector3.new(20,1000,20);
  431. for i=1,20 do
  432. wait();
  433. p.Transparency=.4+(i/10)*.6;
  434. p.Size=Vector3.new(20-i*1.5,1000,20-i*1.5);
  435. p.CFrame=CFrame.new(pos+Vector3.new(0,500,0));
  436. end;
  437. p:Destroy();
  438. end);
  439. end;
  440. if Debounces.isMoving then
  441. 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));
  442. else
  443. c.HumanoidRootPart.CFrame=CFrame.new(mouse.Hit.p+Vector3.new(0,4,0),Vector3.new(oldPos.x,mouse.Hit.p.y+4,oldPos.z));
  444. end;
  445. end;
  446. end);
  447. mouse.KeyDown:connect(function(key)
  448. if key=='r'then
  449. local pointTarget=mouse.Hit.p;
  450. for i=1,20 do
  451. wait();
  452. 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));
  453. end;
  454. wait();
  455. largegasterBlast(CFrame.new(pointTarget+Vector3.new(0,35,0),pointTarget));
  456. end;
  457. end);
  458. mouse.KeyDown:connect(function(key)
  459. if key=='f'then
  460. local pointTarget=mouse.Hit.p;
  461. for i=1,20 do
  462. wait();
  463. 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)));
  464. end;
  465. largegasterBlast(CFrame.new(c.HumanoidRootPart.CFrame.p+Vector3.new(0,50,0),pointTarget):toWorldSpace(CFrame.new(0,0,-25)));
  466. end;
  467. end);
  468. mouse.Button1Down:connect(function()
  469. Debounces.isFlash=true;
  470. end);
  471. mouse.Button1Up:connect(function()
  472. Debounces.isFlash=false;
  473. end);
  474. mouse.KeyDown:connect(function(key)
  475. if key=='k'then
  476. if music.isPlaying then music:Stop();else music:Play();end;
  477. end;
  478. end);
  479. mouse.KeyDown:connect(function(key)
  480. if key=='j'then
  481. if music2.isPlaying then music2:Stop();else music2:Play();end;
  482. end;
  483. end);
  484. mouse.KeyDown:connect(function(key)
  485. if key=='l'then
  486. if music3.isPlaying then music3:Stop();else music3:Play();end;
  487. end;
  488. end);
  489. mouse.KeyDown:connect(function(key)
  490. if key=='p'then
  491. if music4.isPlaying then music4:Stop();else music4:Play();end;
  492. end;
  493. end);
  494. mouse.KeyDown:connect(function(key)
  495. if key=='o'then
  496. if music5.isPlaying then music4:Stop();else music5:Play();end;
  497. end;
  498. end);
  499. mouse.KeyDown:connect(function(key)
  500. if key=='e'then
  501. gasterBlast(c.Torso.CFrame.p+Vector3.new(math.sin(tick()*10)*10,12,math.cos(tick()*10)*10),mouse.Hit.p,true);
  502. end;
  503. end);
  504. mouse.KeyDown:connect(function(key)
  505. if key=='c'then
  506. largegasterBlast(c.Torso.CFrame.p+Vector3.new(math.sin(tick()*10)*10,12,math.cos(tick()*10)*10),mouse.Hit.p);
  507. end;
  508. end);
  509. mouse.KeyDown:connect(function(key)
  510. if key=='q'then
  511. for i=1,5 do
  512. wait();
  513. gasterBlast(c.Torso.CFrame.p+Vector3.new(math.sin(tick()*10)*10,12,math.cos(tick()*10)*10),mouse.Hit.p);
  514. end;
  515. largegasterBlast(c.Torso.CFrame.p+Vector3.new(0,25,0),mouse.Hit.p);
  516. end;
  517. end);
  518. mouse.KeyDown:connect(function(key)
  519. if key=='t'then
  520. local pointTarget=mouse.Hit.p;
  521. for i=1,20 do
  522. 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);
  523. end;
  524. wait(.2);
  525. for i=1,10 do
  526. largegasterBlast(pointTarget+Vector3.new(math.sin(math.deg((360/20)*i))*25,20,math.cos(math.deg((360/20)*i))*25),pointTarget);
  527. end;
  528. end;
  529. end);
  530. human.StateChanged:connect(function(os,ns)
  531. if c.HumanoidRootPart.Velocity.Y<.1 and Debounces.isJumping==true and ns==Enum.HumanoidStateType.Landed then
  532. Debounces.isJumping=false;
  533. end;
  534. end);
  535. for i=1,#Joints do
  536. Joints[i].C1=CFrameZero();
  537. end;
  538. rs.RenderStepped:connect(function()
  539. Debounces.FPS=1/rs.RenderStepped:wait();
  540. if Debounces.FPS<30 then
  541. Debounces.FPS=30;
  542. end;
  543. if Debounces.isSprinting then
  544. lerpBoom();
  545. else
  546. noBoom();
  547. end;
  548. for _,v in pairs(rayModel:children())do
  549. v.Transparency=v.Transparency+.06/(Debounces.FPS/60);
  550. if v.Transparency>.99 then v:Destroy();return;end;
  551. v.CanCollide=true;
  552. local tParts=v:GetTouchingParts();
  553. v.CanCollide=false;
  554. local vCFrame=v.CFrame;
  555. v.Size=v.Size+Vector3.new(0,1,1)/(Debounces.FPS/60);
  556. v.CFrame=vCFrame;
  557. for _,x in pairs(tParts)do
  558. if x and x.Parent and x.Parent:FindFirstChild'Humanoid'and x.Parent.Humanoid:isA'Humanoid'and x.Parent~=c then
  559. x.Parent.Humanoid:TakeDamage(1,2);
  560. end;
  561. end;
  562. end;
  563. local FPSLerp=AnimStat.lerpSpeed/(Debounces.FPS/60);
  564. for i=1,#Joints do
  565. Joints[i].C0=Joints[i].C0:lerp(JointTargets[i],FPSLerp);
  566. end;
  567. end);
Advertisement
Add Comment
Please, Sign In to add comment