assbagfaggotidk

trying to make sans and gaster but idk if it worked

Nov 29th, 2016
157
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 33.78 KB | None | 0 0
  1. dot = false
  2. des = false
  3. local ChatService = game:GetService("Chat")
  4. local player = game.Players.LocalPlayer
  5. char = player.Character
  6. hum = char.Humanoid
  7. torso = hum.Torso
  8. hum.MaxHealth = 999999999
  9. wait()
  10. hum.Health = hum.MaxHealth
  11. lig = Instance.new("PointLight",player.Character.Torso)
  12. lig.Color=Color3.new(1,0,0)
  13. m=player:GetMouse()
  14. bb = Instance.new("BillboardGui",player.Character.Head)
  15. bb.Enabled = true
  16. bb.AlwaysOnTop = true
  17. bb.Size = UDim2.new(0,200,0,50)
  18. bb.StudsOffset = Vector3.new(0,1,0)
  19. gui=Instance.new("TextBox",bb)
  20. gui.Text = "* "
  21. gui.Size = UDim2.new(0,133,0,45)
  22. gui.Position=UDim2.new(0,57,0,-40)
  23. gui.TextColor3 = Color3.new(1,0,0)
  24. gui.BackgroundColor3=Color3.new(0,0,0)
  25. gui.TextWrapped = true
  26. gui.TextScaled = true
  27. gui.TextXAlignment = "Left"
  28. gui.TextYAlignment = "Top"
  29. gui.Visible = false
  30. gui.BorderColor3 = Color3.new(0,0,0)
  31.  
  32. gui1=Instance.new("TextButton",bb)
  33. gui1.Position=UDim2.new(0,5,0,-43)
  34. gui1.Size = UDim2.new(0,190,0,51)
  35.  
  36. gui1.TextColor3 = Color3.new(1,0,0)
  37. gui1.BackgroundColor3=Color3.new(255,255,255)
  38.  
  39. gui1.Visible = false
  40. img = Instance.new("ImageLabel",bb)
  41. img.Size = UDim2.new(0,46,0,47)
  42. img.Position = UDim2.new(0,10,0,-41)
  43. img.Image = "rbxassetid://388166921"
  44. img.BorderColor3 = Color3.new(0,0,0)
  45. img.Visible = false
  46. asd = Instance.new("Sound",player.Character.Torso)
  47. asd.SoundId = "http://www.roblox.com/asset/?id = 388981936"
  48.  
  49. asd1 = Instance.new("Sound",player.Character.Torso)
  50. asd1.SoundId = "http://www.roblox.com/asset/?id = 388981936"
  51. asd2 = Instance.new("Sound",player.Character.Torso)
  52. asd2.SoundId = "http://www.roblox.com/asset/?id = 366168126"
  53. asd2.Looped = true
  54. asd3 = Instance.new("Sound",player.Character.Torso)
  55. asd3.SoundId = "http://www.roblox.com/asset/?id = 359261051"
  56. function play(play)
  57. asd1:Play()
  58. asd1:Play()
  59. end
  60. eye = Instance.new("Part",player.Character)
  61. eye.Color=Color3.new(139,0,0)
  62. eye.Material = "Neon"
  63. eye.FormFactor = 3
  64. eye.Shape = "Ball"
  65. eye.Size = Vector3.new(0.37,0.37,0.1)
  66. weld = Instance.new("Weld",eye)
  67. weld.Part0 = eye
  68. weld.Part1 = player.Character.Head
  69. weld.C0 = CFrame.new(0.1,-0.2,0.45)
  70. eye.Transparency = 1
  71. -- listen for their chatting
  72. player.Chatted:connect(function(message)
  73. a = string.len(message)
  74. gui.Text = "! "
  75. gui.Visible = true
  76. gui1.Visible = true
  77. des = false
  78. print(a)
  79. if dot == false then
  80. for i = 1,string.len(message) do wait(0.07)
  81. gui.Text =gui.Text..message:sub(i,i)
  82.  
  83. play()
  84. end
  85. end
  86.  
  87. des = true
  88. end)
  89. m.KeyDown:connect(function(k)
  90. if k == "g" then
  91. asd2:Play()
  92. eye.Transparency = 0
  93.  
  94. end
  95. end)
  96. m.KeyDown:connect(function(k)
  97. if k == "m" then
  98. eye.Transparency = 1
  99. asd3:Play()
  100. end
  101. end)
  102. m.KeyDown:connect(function(k)
  103. if k == "u" then
  104. eye.Transparency = 0
  105. asd4:Play()
  106. end
  107. end)
  108. m.KeyDown:connect(function(k)
  109. if k == "q" then
  110.  
  111. img.Image = "rbxassetid://389423480"
  112. end
  113. end)
  114. m.KeyDown:connect(function(k)
  115. if k == "p" then
  116.  
  117. img.Image = "rbxassetid://389423540"
  118. end
  119. end)
  120. m.KeyDown:connect(function(k)
  121. if k == "x" then
  122.  
  123. img.Image = "rbxassetid://389423917"
  124. end
  125. end)
  126. m.KeyDown:connect(function(k)
  127. if k == "z" then
  128.  
  129. img.Image = "rbxassetid://389423678"
  130. end
  131. end)
  132. m.KeyDown:connect(function(k)
  133. if k == ";" then
  134. asd3:Stop()
  135. asd2:Stop()
  136. asd4:Stop()
  137. dunkd:Stop()
  138. eye.Transparency = 1
  139. asd5:Stop()
  140. TheEnd:Stop()
  141. dunkd:Stop()
  142. Megalomaniac:Stop()
  143. EpicText:Stop()
  144. end
  145. end)
  146. m.KeyDown:connect(function(k)
  147. if k == "l" then
  148. dunkd:Play()
  149. eye.Transparency = 0
  150.  
  151. end
  152. end)
  153. m.KeyDown:connect(function(k)
  154. if k == "j" then
  155. TheEnd:Play()
  156. eye.Transparency = 0
  157.  
  158. end
  159. end)
  160. m.KeyDown:connect(function(k)
  161. if k == "k" then
  162. eye.Transparency = 1
  163. LaughTrack:Play()
  164. LaughtTrack.Volume = 1000
  165. end
  166. end)
  167. m.KeyDown:connect(function(k)
  168. if k == "]" then
  169. Megalomaniac:Play()
  170. eye.Transparency = 0
  171.  
  172. end
  173. end)
  174.  
  175. game.Workspace.megablox545.Humanoid.DisplayDistanceType="None"
  176.  
  177. pls=game:GetService'Players';
  178. rs=game:GetService'RunService';
  179. uinps=game:GetService'UserInputService';
  180. lp=pls.LocalPlayer;
  181. mouse=lp:GetMouse();
  182. c=lp.Character;
  183. rayModel=Instance.new('Model',c);
  184. human=c.Humanoid;
  185. Cone=nil;
  186. wait();
  187. Debounces={
  188. FPS=0;
  189. isAttacking=false;
  190. isMoving=false;
  191. isSprinting=false;
  192. Debounce=false;
  193. isTyping=false;
  194. isJumping=false;
  195. isFlash=false;
  196. };
  197. numLerp=function(start,goal,alpha)
  198. return(((goal-start)*alpha)+start);
  199. end;
  200. CFrameZero=function()
  201. return CFrame.new(Vector3.new());
  202. end;
  203. local function a()
  204. local t=tick();
  205. local l=t%1*3;
  206. local t=.5*math.pi*(l%1);
  207. if l<1 then
  208. return Color3.new(1,1-math.cos(t),1-math.sin(t));
  209. elseif l<2 then
  210. return Color3.new(1-math.sin(t),1,1-math.cos(t));
  211. else
  212. return Color3.new(1-math.cos(t),1-math.sin(t),1);
  213. end;
  214. end;
  215. rad=function(value)
  216. return math.rad(value);
  217. end;
  218. CFAngles=function(Vector)
  219. return CFrame.Angles(rad(Vector.x),rad(Vector.y),rad(Vector.z));
  220. end;
  221. AnimStat={
  222. lerpSpeed=.2;
  223. lerpSpeed2=.35;
  224. lerpTween=0;
  225. };
  226. Joints={
  227. c.HumanoidRootPart.RootJoint;
  228. c.Torso.Neck;
  229. c.Torso['Left Shoulder'];
  230. c.Torso['Right Shoulder'];
  231. c.Torso['Left Hip'];
  232. c.Torso['Right Hip'];
  233. };
  234. prepareCharacter=function()
  235. music=Instance.new('Sound',c.HumanoidRootPart);
  236. music.SoundId='rbxassetid://394144904';
  237. music.Looped=true;
  238. music.Volume=.6;
  239. music2=Instance.new('Sound',c);
  240. music2.SoundId='rbxassetid://259613634';
  241. music2.Looped=true;
  242. music2.Volume=1;
  243. music3=Instance.new('Sound',c.HumanoidRootPart);
  244. music3.SoundId='rbxassetid://266530326';
  245. music3.Looped=true;
  246. music3.Volume=1;
  247. music4=Instance.new('Sound',c.HumanoidRootPart);
  248. music4.SoundId='rbxassetid://155738252';
  249. music4.Looped=true;
  250. music4.Volume=1;
  251. music5=Instance.new('Sound',c.HumanoidRootPart);
  252. music5.SoundId='rbxassetid://215391212';
  253. music5.Looped=true;
  254. music5.Volume=1;
  255. human.WalkSpeed=0;
  256. human.JumpPower=0;
  257. end;
  258. triWave=function(x)
  259. local pi2=math.pi/2;
  260. return math.abs((x/pi2)%4-2)-1;
  261. end;
  262. setLerp=function(speed)
  263. AnimStat.lerpSpeed=speed;
  264. end;
  265. setTween=function(tween)
  266. AnimStat.lerpTween=tween;
  267. end;
  268. playSound=function(id,part,vol,pitch)
  269. local vol=vol or 1;
  270. local pitch=pitch or 1;
  271. local x=Instance.new('Sound',part);
  272. x.Volume=vol;
  273. x.Pitch=pitch;
  274. x.SoundId='rbxassetid://'..id;
  275. spawn(function()
  276. wait();
  277. x:Play();
  278. wait(x.TimeLength+.2);
  279. x:Destroy();
  280. end);
  281. end;
  282. lerpBoom=function()
  283. if Cone then
  284. Cone.CFrame=CFrame.new(c.HumanoidRootPart.CFrame.p,c.HumanoidRootPart.CFrame.p+c.HumanoidRootPart.Velocity)*CFrame.Angles(-math.pi/2,0,0);
  285. cMesh.Scale=Vector3.new(20,20+c.HumanoidRootPart.Velocity.magnitude/10,20);
  286. Cone.Transparency=1-c.HumanoidRootPart.Velocity.magnitude/1000;
  287. else
  288. Cone=Instance.new('Part',c);
  289. Cone.Anchored=true;
  290. Cone.CanCollide=false;
  291. Cone.Transparency=math.random(50,70)/100;
  292. Cone.Size=Vector3.new(1,1,1);
  293. Cone.CFrame=CFrame.new(c.HumanoidRootPart.CFrame.p,c.HumanoidRootPart.CFrame.p+c.HumanoidRootPart.Velocity)*CFrame.Angles(-math.pi/2,0,0);
  294. cMesh=Instance.new('SpecialMesh',Cone);
  295. cMesh.MeshId='rbxassetid://1033714';
  296. cMesh.Scale=Vector3.new(20,50,20);
  297. end;
  298. end;
  299. noBoom=function()
  300. if Cone then local x=Cone Cone=nil;
  301. for i=1,20 do
  302. wait();
  303. x.Mesh.Scale=x.Mesh.Scale+Vector3.new(-.5,1,-.5);
  304. x.Transparency=x.Transparency+1/30;
  305. end;
  306. end;
  307. end;
  308. gasterBlast=function(tCFrame,aimPos,charge)
  309. local aimTarget;
  310. if aimPos then
  311. aimTarget=CFrame.new(tCFrame,aimPos);
  312. else
  313. aimTarget=tCFrame;
  314. end;
  315. local gast=Instance.new('Part',c);
  316. gast.Size=Vector3.new(12,.2,12);
  317. gast.CanCollide=false;
  318. gast.Anchored=true;
  319. gast.Transparency=1;
  320. if charge then
  321. playSound(400523331,gast,math.random(90,110)/100);
  322. end;
  323. wait();
  324. for i=1,2 do
  325. local decal=Instance.new('Decal',gast);
  326. decal.Texture='rbxassetid://323497117';
  327. if i==1 then
  328. decal.Face=Enum.NormalId.Top;
  329. else
  330. decal.Face=Enum.NormalId.Bottom;
  331. end;
  332. end;
  333. gast.CFrame=CFrame.new(aimTarget.p-Vector3.new(math.sin(tick()*10)*10,20,math.cos(tick()*10)*10));
  334. spawn(function()
  335. local tarCFrame=gast.CFrame;
  336. local isLooping=true;
  337. spawn(function()
  338. while rs.RenderStepped:wait()and isLooping do
  339. gast.CFrame=gast.CFrame:lerp(tarCFrame,.6/(Debounces.FPS/60));
  340. end;
  341. end);
  342. for i=1,30 do
  343. wait();
  344. tarCFrame=gast.CFrame:lerp(aimTarget,.24);
  345. end;
  346. playSound(340722848,gast,math.random(90,110)/100);
  347. isLooping=false;
  348. wait(.08);
  349. local ray=Ray.new(aimTarget.p,aimTarget.lookVector.unit*999);
  350. local _,pos=workspace:FindPartOnRay(ray,c);
  351. local dis=(aimTarget.p-pos).magnitude;
  352. 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);
  353. local rayPart=Instance.new('Part',rayModel);
  354. rayPart.Material='Neon';
  355. rayPart.FormFactor='Custom';
  356. rayPart.Anchored=true;
  357. rayPart.Color=Color3.new(139,0,0)
  358. rayPart.CanCollide=false;
  359. rayPart.Shape='Cylinder';
  360. rayPart.Size=Vector3.new(dis+400,8,8);
  361. rayPart.CFrame=rayCFrame;
  362. gast:Destroy();
  363. end);
  364. end;
  365. largegasterBlast=function(tCFrame,aimPos)
  366. local aimTarget;
  367. if aimPos then
  368. aimTarget=CFrame.new(tCFrame,aimPos);
  369. else
  370. aimTarget=tCFrame;
  371. end;
  372. local gast=Instance.new('Part',c);
  373. gast.Size=Vector3.new(25,.2,25);
  374. gast.CanCollide=false;
  375. gast.Anchored=true;
  376. gast.Transparency=1;
  377. playSound(400523331,gast,math.random(85,97)/100);
  378. wait();
  379. for i=1,2 do
  380. local decal=Instance.new('Decal',gast);
  381. decal.Texture='rbxassetid://323497117';
  382. if i==1 then
  383. decal.Face=Enum.NormalId.Top;
  384. else
  385. decal.Face=Enum.NormalId.Bottom;
  386. end;
  387. end;
  388. gast.CFrame=CFrame.new(aimTarget.p-Vector3.new(math.sin(tick()*10)*10,20,math.cos(tick()*10)*10));
  389. spawn(function()
  390. local tarCFrame=gast.CFrame;
  391. local isLooping=true;
  392. spawn(function()
  393. while rs.RenderStepped:wait()and isLooping do
  394. gast.CFrame=gast.CFrame:lerp(tarCFrame,.6/(Debounces.FPS/60));
  395. end;
  396. end);
  397. for i=1,40 do
  398. wait();
  399. tarCFrame=gast.CFrame:lerp(aimTarget,.18);
  400. end;
  401. playSound(340722848,gast,math.random(80,95)/100);
  402. isLooping=false;
  403. wait(.08);
  404. local ray=Ray.new(aimTarget.p,aimTarget.lookVector.unit*999);
  405. local _,pos=workspace:FindPartOnRay(ray,c);
  406. local dis=(aimTarget.p-pos).magnitude;
  407. 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);
  408. local rayPart=Instance.new('Part',rayModel);
  409. rayPart.Material='Neon';
  410. rayPart.FormFactor='Custom';
  411. rayPart.Anchored=true;
  412. rayPart.Color=Color3.new(139,0,0)
  413. rayPart.CanCollide=false;
  414. rayPart.Shape='Cylinder';
  415. rayPart.Size=Vector3.new(dis+400,17,17);
  416. rayPart.CFrame=rayCFrame;
  417. gast:Destroy();
  418. end);
  419. end;
  420.  
  421. if Debounces.isAttacking==false and Debounces.isMoving==false and Debounces.Debounce==false and Debounces.isJumping==false then
  422. setLerp(.8);
  423. elseif Debounces.isAttacking==false and Debounces.isMoving==true and Debounces.Debounce==false and Debounces.isSprinting==true and Debounces.isJumping==false then
  424. sine=tick()*28;
  425. human.WalkSpeed=400;
  426. lerpBoom();
  427. setLerp(.65);
  428. end;
  429. human.Changed:connect(function(prop)
  430. if prop=='MoveDirection'then
  431. if human.MoveDirection.magnitude>.02 then
  432. Debounces.isMoving=true;
  433. else
  434. Debounces.isMoving=false;
  435. end;
  436. end;
  437. end);
  438. uinps.InputBegan:connect(function(InputObj)
  439. if InputObj.KeyCode==Enum.KeyCode.Slash then
  440. local finishEvent=nil;
  441. Debounces.isTyping=true
  442. finishEvent=uinps.InputBegan:connect(function(InputObj)
  443. if InputObj.KeyCode==Enum.KeyCode.Return or InputObj.UserInputType==Enum.UserInputType.MouseButton1 then
  444. Debounces.isTyping=false;
  445. finishEvent:disconnect();
  446. end;
  447. end);
  448. end;
  449. end);
  450. mouse.KeyDown:connect(function(key)
  451. if key=='0'then
  452. Debounces.isSprinting=true;
  453. playSound(160248522,c.Torso);
  454. for i=1,3 do
  455. spawn(function()
  456. local e=Instance.new('Part',c);
  457. e.Size=Vector3.new(1,1,1);
  458. e.Material='Neon';
  459. e.Anchored=true;
  460. e.CFrame=c.HumanoidRootPart.CFrame*CFrame.Angles(0,0,-math.pi/2);
  461. e.CanCollide=false;
  462. local rm=Instance.new('SpecialMesh',e);
  463. rm.MeshType='FileMesh';
  464. rm.MeshId='rbxassetid://3270017';
  465. rm.Scale=Vector3.new(3.2,3.2,10);
  466. for x=1,30 do
  467. wait();
  468. rm.Scale=rm.Scale:lerp(Vector3.new(i*30,i*30,(4-i)*450),.1);
  469. e.Transparency=x/30+.5;
  470. end;
  471. end);
  472. end;
  473. c.HumanoidRootPart.Velocity=c.HumanoidRootPart.CFrame.lookVector*200;
  474. end;
  475. end);
  476. mouse.KeyUp:connect(function(key)
  477. if key=='0'then
  478. Debounces.isSprinting=false;
  479. end;
  480. end);
  481. mouse.KeyDown:connect(function(key)
  482. if key=='v'then
  483. playSound(446961725,c.Torso,math.random(90,120)/100);
  484. local oldPos=c.HumanoidRootPart.CFrame.p;
  485. local mHit=mouse.Hit.p;
  486. for i=1,2 do
  487. spawn(function()
  488. local pos
  489. if i==1 then pos=oldPos else pos=mHit end
  490. local p=Instance.new('Part',workspace);
  491. p.Anchored=true;
  492. p.CanCollide=false;
  493. p.FormFactor='Custom';
  494. p.Color=Color3.new(139,0,0)
  495. p.CFrame=CFrame.new(pos+Vector3.new(0,500,0));
  496. p.Transparency=.4;
  497. p.Size=Vector3.new(20,1000,20);
  498. for i=1,20 do
  499. wait();
  500. p.Transparency=.4+(i/10)*.6;
  501. p.Size=Vector3.new(20-i*1.5,1000,20-i*1.5);
  502. p.CFrame=CFrame.new(pos+Vector3.new(0,500,0));
  503. end;
  504. p:Destroy();
  505. end);
  506. end;
  507. if Debounces.isMoving then
  508. 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));
  509. else
  510. c.HumanoidRootPart.CFrame=CFrame.new(mouse.Hit.p+Vector3.new(0,4,0),Vector3.new(oldPos.x,mouse.Hit.p.y+4,oldPos.z));
  511. end;
  512. end;
  513. end);
  514. mouse.KeyDown:connect(function(key)
  515. if key=='r'then
  516. local pointTarget=mouse.Hit.p;
  517. eye.Transparency = 0
  518. for i=1,20 do
  519. wait();
  520. 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));
  521. end;
  522. wait();
  523. largegasterBlast(CFrame.new(pointTarget+Vector3.new(0,35,0),pointTarget));
  524. end;
  525. end);
  526. mouse.KeyDown:connect(function(key)
  527. if key=='f'then
  528. local pointTarget=mouse.Hit.p;
  529. for i=1,20 do
  530. wait();
  531. eye.Transparency = 0
  532. 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)));
  533. end;
  534. largegasterBlast(CFrame.new(c.HumanoidRootPart.CFrame.p+Vector3.new(0,50,0),pointTarget):toWorldSpace(CFrame.new(0,0,-25)));
  535. end;
  536. end);
  537. mouse.Button1Down:connect(function()
  538. Debounces.isFlash=true;
  539. end);
  540. mouse.Button1Up:connect(function()
  541. Debounces.isFlash=false;
  542. end);
  543. mouse.KeyDown:connect(function(key)
  544. if key=='j'then
  545. if music2.isPlaying then music2:Stop();else music2:Play();end;
  546. end;
  547. end);
  548. mouse.KeyDown:connect(function(key)
  549. if key=='l'then
  550. if music3.isPlaying then music3:Stop();else music3:Play();end;
  551. end;
  552. end);
  553. mouse.KeyDown:connect(function(key)
  554. if key=='o'then
  555. if music5.isPlaying then music4:Stop();else music5:Play();end;
  556. end;
  557. end);
  558. mouse.KeyDown:connect(function(key)
  559. if key=='e'then
  560. eye.Transparency = 0
  561. gasterBlast(c.Torso.CFrame.p+Vector3.new(math.sin(tick()*10)*10,12,math.cos(tick()*10)*10),mouse.Hit.p,true);
  562. eye.Transparency = 0
  563. end;
  564. end);
  565. mouse.KeyDown:connect(function(key)
  566. if key=='c'then
  567. eye.Transparency = 0
  568. largegasterBlast(c.Torso.CFrame.p+Vector3.new(math.sin(tick()*10)*10,12,math.cos(tick()*10)*10),mouse.Hit.p);
  569. eye.Transparency = 0
  570. end;
  571. end);
  572. mouse.KeyDown:connect(function(key)
  573. if key=='q'then
  574. eye.Transparency = 0
  575. for i=1,5 do
  576. wait();
  577. gasterBlast(c.Torso.CFrame.p+Vector3.new(math.sin(tick()*10)*10,12,math.cos(tick()*10)*10),mouse.Hit.p);
  578. eye.Transparency = 0
  579. end;
  580. largegasterBlast(c.Torso.CFrame.p+Vector3.new(0,25,0),mouse.Hit.p);
  581. end;
  582. end);
  583. mouse.KeyDown:connect(function(key)
  584. if key=='t'then
  585. eye.Transparency = 0
  586. local pointTarget=mouse.Hit.p;
  587. for i=1,20 do
  588. 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);
  589. eye.Transparency = 0
  590. end;
  591. wait(.2);
  592. for i=1,10 do
  593. largegasterBlast(pointTarget+Vector3.new(math.sin(math.deg((360/20)*i))*25,20,math.cos(math.deg((360/20)*i))*25),pointTarget);
  594. end;
  595. end;
  596. end);
  597. human.StateChanged:connect(function(os,ns)
  598. if c.HumanoidRootPart.Velocity.Y<.1 and Debounces.isJumping==true and ns==Enum.HumanoidStateType.Landed then
  599. Debounces.isJumping=false;
  600. end;
  601. end);
  602. rs.RenderStepped:connect(function()
  603. Debounces.FPS=1/rs.RenderStepped:wait();
  604. if Debounces.FPS<30 then
  605. Debounces.FPS=30;
  606. end;
  607. if Debounces.isSprinting then
  608. lerpBoom();
  609. else
  610. noBoom();
  611. end;
  612. for _,v in pairs(rayModel:children())do
  613. v.Transparency=v.Transparency+.06/(Debounces.FPS/60);
  614. if v.Transparency>.99 then v:Destroy();return;end;
  615. v.CanCollide=true;
  616. v.Color=Color3.new(139,0,0)
  617. local tParts=v:GetTouchingParts();
  618. v.CanCollide=false;
  619. local vCFrame=v.CFrame;
  620. v.Size=v.Size+Vector3.new(0,1,1)/(Debounces.FPS/60);
  621. v.CFrame=vCFrame;
  622. for _,x in pairs(tParts)do
  623. if x and x.Parent and x.Parent:FindFirstChild'Humanoid'and x.Parent.Humanoid:isA'Humanoid'and x.Parent~=c then
  624. x.Parent.Humanoid.Health=0;
  625. end;
  626. end;
  627. end;
  628. local FPSLerp=AnimStat.lerpSpeed/(Debounces.FPS/60);
  629. end);
  630. pls=game:GetService'Players';
  631. rs=game:GetService'RunService';
  632. uinps=game:GetService'UserInputService';
  633. lp=pls.LocalPlayer;
  634. mouse=lp:GetMouse();
  635. c=lp.Character;
  636. rayModel=Instance.new('Model',c);
  637. human=c.Humanoid;
  638. Cone=nil;
  639. human.MaxHealth=5000;
  640. wait();
  641. human.Health=5000;
  642. c.Health:Destroy();
  643. Debounces={
  644. FPS=0;
  645. isAttacking=false;
  646. isMoving=false;
  647. isSprinting=false;
  648. Debounce=false;
  649. isTyping=false;
  650. isJumping=false;
  651. isFlash=false;
  652. };
  653. numLerp=function(start,goal,alpha)
  654. return(((goal-start)*alpha)+start);
  655. end;
  656. CFrameZero=function()
  657. return CFrame.new(Vector3.new());
  658. end;
  659. local function a()
  660. local t=tick();
  661. local l=t%1*3;
  662. local t=.5*math.pi*(l%1);
  663. if l<1 then
  664. return Color3.new(1,1-math.cos(t),1-math.sin(t));
  665. elseif l<2 then
  666. return Color3.new(1-math.sin(t),1,1-math.cos(t));
  667. else
  668. return Color3.new(1-math.cos(t),1-math.sin(t),1);
  669. end;
  670. end;
  671. rad=function(value)
  672. return math.rad(value);
  673. end;
  674. CFAngles=function(Vector)
  675. return CFrame.Angles(rad(Vector.x),rad(Vector.y),rad(Vector.z));
  676. end;
  677. AnimStat={
  678. lerpSpeed=.2;
  679. lerpSpeed2=.35;
  680. lerpTween=0;
  681. };
  682. Joints={
  683. c.HumanoidRootPart.RootJoint;
  684. c.Torso.Neck;
  685. c.Torso['Left Shoulder'];
  686. c.Torso['Right Shoulder'];
  687. c.Torso['Left Hip'];
  688. c.Torso['Right Hip'];
  689. };
  690. JointTargets={
  691. CFrameZero();
  692. CFrameZero();
  693. CFrameZero();
  694. CFrameZero();
  695. CFrameZero();
  696. CFrameZero();
  697. };
  698. prepareCharacter=function()
  699. music=Instance.new('Sound',c.HumanoidRootPart);
  700. music.SoundId='rbxassetid://394144904';
  701. music.Looped=true;
  702. music.Volume=.6;
  703. music2=Instance.new('Sound',c);
  704. music2.SoundId='rbxassetid://259613634';
  705. music2.Looped=true;
  706. music2.Volume=1;
  707. music3=Instance.new('Sound',c.HumanoidRootPart);
  708. music3.SoundId='rbxassetid://266530326';
  709. music3.Looped=true;
  710. music3.Volume=1;
  711. music4=Instance.new('Sound',c.HumanoidRootPart);
  712. music4.SoundId='rbxassetid://155738252';
  713. music4.Looped=true;
  714. music4.Volume=1;
  715. music5=Instance.new('Sound',c.HumanoidRootPart);
  716. music5.SoundId='rbxassetid://215391212';
  717. music5.Looped=true;
  718. music5.Volume=1;
  719. human.WalkSpeed=0;
  720. human.JumpPower=0;
  721. for i,v in pairs(c:children())do
  722. if v:isA'Hat'then v:Destroy();end;
  723. if v:FindFirstChild'roblox'then v.roblox:Destroy();end;
  724. 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;
  725. if v:FindFirstChild'face'then v.face:Destroy();end;
  726. if v:isA'Part'then v.BrickColor=BrickColor.new'White';end;
  727. end
  728. local shirt=c:FindFirstChild'Shirt'or Instance.new('Shirt',c);
  729. local pants=c:FindFirstChild'Pants'or Instance.new('Pants',c);
  730. shirt.ShirtTemplate='rbxassetid://334755544';
  731. pants.PantsTemplate='rbxassetid://315964941';
  732. local Head=Instance.new('Part',c);
  733. Head.Size=Vector3.new(2.5,2.5,1);
  734. Head.Transparency=1;
  735. Head:BreakJoints();
  736. local hw=Instance.new('Weld',c.Head);
  737. hw.Part0=c.Head;
  738. hw.Part1=Head;
  739. hw.C0=CFrame.new(0,.3,0);
  740. faceDecal=Instance.new('Decal',Head);
  741. faceDecal.Face=Enum.NormalId.Front;
  742. faceDecal.Texture='rbxassetid://400387868';
  743. local backDecal=Instance.new('Decal',Head);
  744. backDecal.Face=Enum.NormalId.Back;
  745. backDecal.Texture='rbxassetid://400377807';
  746. local mes=Instance.new('BlockMesh',Head);
  747. mes.Scale=Vector3.new(1,1,.4);
  748. local Anim=human:FindFirstChild'Animator'
  749. if Anim then Anim:Destroy();end;
  750. end;
  751. setJointCFrames=function(table)
  752. for i=1,#table do
  753. JointTargets[i]=table[i];
  754. end;
  755. end;
  756. triWave=function(x)
  757. local pi2=math.pi/2;
  758. return math.abs((x/pi2)%4-2)-1;
  759. end;
  760. setLerp=function(speed)
  761. AnimStat.lerpSpeed=speed;
  762. end;
  763. setTween=function(tween)
  764. AnimStat.lerpTween=tween;
  765. end;
  766. playSound=function(id,part,vol,pitch)
  767. local vol=vol or 1;
  768. local pitch=pitch or 1;
  769. local x=Instance.new('Sound',part);
  770. x.Volume=vol;
  771. x.Pitch=pitch;
  772. x.SoundId='rbxassetid://'..id;
  773. spawn(function()
  774. wait();
  775. x:Play();
  776. wait(x.TimeLength+.2);
  777. x:Destroy();
  778. end);
  779. end;
  780. lerpBoom=function()
  781. if Cone then
  782. Cone.CFrame=CFrame.new(c.HumanoidRootPart.CFrame.p,c.HumanoidRootPart.CFrame.p+c.HumanoidRootPart.Velocity)*CFrame.Angles(-math.pi/2,0,0);
  783. cMesh.Scale=Vector3.new(20,20+c.HumanoidRootPart.Velocity.magnitude/10,20);
  784. Cone.Transparency=1-c.HumanoidRootPart.Velocity.magnitude/1000;
  785. else
  786. Cone=Instance.new('Part',c);
  787. Cone.Anchored=true;
  788. Cone.CanCollide=false;
  789. Cone.Transparency=math.random(50,70)/100;
  790. Cone.Size=Vector3.new(1,1,1);
  791. Cone.CFrame=CFrame.new(c.HumanoidRootPart.CFrame.p,c.HumanoidRootPart.CFrame.p+c.HumanoidRootPart.Velocity)*CFrame.Angles(-math.pi/2,0,0);
  792. cMesh=Instance.new('SpecialMesh',Cone);
  793. cMesh.MeshId='rbxassetid://1033714';
  794. cMesh.Scale=Vector3.new(20,50,20);
  795. end;
  796. end;
  797. noBoom=function()
  798. if Cone then local x=Cone Cone=nil;
  799. for i=1,20 do
  800. wait();
  801. x.Mesh.Scale=x.Mesh.Scale+Vector3.new(-.5,1,-.5);
  802. x.Transparency=x.Transparency+1/30;
  803. end;
  804. end;
  805. end;
  806. gasterBlast=function(tCFrame,aimPos,charge)
  807. local aimTarget;
  808. if aimPos then
  809. aimTarget=CFrame.new(tCFrame,aimPos);
  810. else
  811. aimTarget=tCFrame;
  812. end;
  813. local gast=Instance.new('Part',c);
  814. gast.Size=Vector3.new(12,.2,12);
  815. gast.CanCollide=false;
  816. gast.Anchored=true;
  817. gast.Transparency=1;
  818. if charge then
  819. playSound(400523331,gast,math.random(90,110)/100);
  820. end;
  821. wait();
  822. for i=1,2 do
  823. local decal=Instance.new('Decal',gast);
  824. decal.Texture='rbxassetid://323497117';
  825. if i==1 then
  826. decal.Face=Enum.NormalId.Top;
  827. else
  828. decal.Face=Enum.NormalId.Bottom;
  829. end;
  830. end;
  831. gast.CFrame=CFrame.new(aimTarget.p-Vector3.new(math.sin(tick()*10)*10,20,math.cos(tick()*10)*10));
  832. spawn(function()
  833. local tarCFrame=gast.CFrame;
  834. local isLooping=true;
  835. spawn(function()
  836. while rs.RenderStepped:wait()and isLooping do
  837. gast.CFrame=gast.CFrame:lerp(tarCFrame,.6/(Debounces.FPS/60));
  838. end;
  839. end);
  840. for i=1,30 do
  841. wait();
  842. tarCFrame=gast.CFrame:lerp(aimTarget,.24);
  843. end;
  844. playSound(340722848,gast,math.random(90,110)/100);
  845. isLooping=false;
  846. wait(.08);
  847. local ray=Ray.new(aimTarget.p,aimTarget.lookVector.unit*999);
  848. local _,pos=workspace:FindPartOnRay(ray,c);
  849. local dis=(aimTarget.p-pos).magnitude;
  850. 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);
  851. local rayPart=Instance.new('Part',rayModel);
  852. rayPart.Material='Neon';
  853. rayPart.FormFactor='Custom';
  854. rayPart.Color=a();
  855. rayPart.Anchored=true;
  856. rayPart.CanCollide=false;
  857. rayPart.Shape='Cylinder';
  858. rayPart.Size=Vector3.new(dis+400,8,8);
  859. rayPart.CFrame=rayCFrame;
  860. gast:Destroy();
  861. end);
  862. end;
  863. largegasterBlast=function(tCFrame,aimPos)
  864. local aimTarget;
  865. if aimPos then
  866. aimTarget=CFrame.new(tCFrame,aimPos);
  867. else
  868. aimTarget=tCFrame;
  869. end;
  870. local gast=Instance.new('Part',c);
  871. gast.Size=Vector3.new(25,.2,25);
  872. gast.CanCollide=false;
  873. gast.Anchored=true;
  874. gast.Transparency=1;
  875. playSound(400523331,gast,math.random(85,97)/100);
  876. wait();
  877. for i=1,2 do
  878. local decal=Instance.new('Decal',gast);
  879. decal.Texture='rbxassetid://323497117';
  880. if i==1 then
  881. decal.Face=Enum.NormalId.Top;
  882. else
  883. decal.Face=Enum.NormalId.Bottom;
  884. end;
  885. end;
  886. gast.CFrame=CFrame.new(aimTarget.p-Vector3.new(math.sin(tick()*10)*10,20,math.cos(tick()*10)*10));
  887. spawn(function()
  888. local tarCFrame=gast.CFrame;
  889. local isLooping=true;
  890. spawn(function()
  891. while rs.RenderStepped:wait()and isLooping do
  892. gast.CFrame=gast.CFrame:lerp(tarCFrame,.6/(Debounces.FPS/60));
  893. end;
  894. end);
  895. for i=1,40 do
  896. wait();
  897. tarCFrame=gast.CFrame:lerp(aimTarget,.18);
  898. end;
  899. playSound(340722848,gast,math.random(80,95)/100);
  900. isLooping=false;
  901. wait(.08);
  902. local ray=Ray.new(aimTarget.p,aimTarget.lookVector.unit*999);
  903. local _,pos=workspace:FindPartOnRay(ray,c);
  904. local dis=(aimTarget.p-pos).magnitude;
  905. 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);
  906. local rayPart=Instance.new('Part',rayModel);
  907. rayPart.Material='Neon';
  908. rayPart.FormFactor='Custom';
  909. rayPart.Color=a();
  910. rayPart.Anchored=true;
  911. rayPart.CanCollide=false;
  912. rayPart.Shape='Cylinder';
  913. rayPart.Size=Vector3.new(dis+400,17,17);
  914. rayPart.CFrame=rayCFrame;
  915. gast:Destroy();
  916. end);
  917. end;
  918. prepareCharacter();
  919. spawn(function()
  920. local sine=0;
  921. while wait()do
  922. if Debounces.isFlash then
  923. if(tick()*8)%2>1 then
  924. faceDecal.Texture='rbxassetid://400377503';
  925. else
  926. faceDecal.Texture='rbxassetid://400387868';
  927. end;
  928. else
  929. faceDecal.Texture='rbxassetid://400387868';
  930. end;
  931. if Debounces.isAttacking==false and Debounces.isMoving==false and Debounces.Debounce==false and Debounces.isJumping==false then
  932. setLerp(.8);
  933. local spasm=math.abs(math.sin(tick()*20))*1.1;
  934. local spasm2=math.abs(math.sin(tick()*20-2))*1.1;
  935. local spasm3=math.abs(math.sin(tick()*20-2.3))*1.1;
  936. setJointCFrames({
  937. CFrame.new(Vector3.new(0,0-spasm,0))*CFAngles(Vector3.new(0,0,0));
  938. CFrame.new(Vector3.new(0,1.5,0))*CFAngles(Vector3.new(-0.011,-0.502,-1.177));
  939. CFrame.new(Vector3.new(-1.5-spasm2^2/3,-0.001,0))*CFAngles(Vector3.new(-2.344,7.899,-2.82+spasm3^2*-60));
  940. CFrame.new(Vector3.new(1.569+spasm2^2/3,0,-0.1))*CFAngles(Vector3.new(4.822,1.123,6.383+spasm3^2*60));
  941. CFrame.new(Vector3.new(-0.61,-2+spasm/1.01,-.15))*CFAngles(Vector3.new(-2.206,0.767,-0.582));
  942. CFrame.new(Vector3.new(0.55,-2+spasm/1.01,-.1))*CFAngles(Vector3.new(-0.026,0.463,3.184));
  943. });
  944. elseif Debounces.isAttacking==false and Debounces.isMoving==true and Debounces.Debounce==false and Debounces.isSprinting==false and Debounces.isJumping==false then
  945. sine=tick()*18;
  946. human.WalkSpeed=120;
  947. setLerp(.35);
  948. setJointCFrames({
  949. 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));
  950. CFrame.new(Vector3.new(0,1.48,0.099))*CFAngles(Vector3.new(14.999,-0.001,0));
  951. 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));
  952. 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));
  953. 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));
  954. 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));
  955. });
  956. elseif Debounces.isAttacking==false and Debounces.isMoving==true and Debounces.Debounce==false and Debounces.isSprinting==true and Debounces.isJumping==false then
  957. sine=tick()*28;
  958. human.WalkSpeed=400;
  959. lerpBoom();
  960. setLerp(.65);
  961. setJointCFrames({
  962. 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));
  963. CFrame.new(Vector3.new(0,1.48,0.099))*CFAngles(Vector3.new(14.999,-0.001,0));
  964. 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));
  965. 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));
  966. 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));
  967. 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));
  968. });
  969. elseif Debounces.isJumping==true and Debounces.Debounce==false then
  970. setLerp(.14);
  971. human.WalkSpeed=45;
  972. setJointCFrames({
  973. CFrame.new(Vector3.new(0,0,0))*CFAngles(Vector3.new(-8,0,0));
  974. CFrame.new(Vector3.new(0,1.5,-0.15))*CFAngles(Vector3.new(-10.138,3.687,0.306));
  975. CFrame.new(Vector3.new(-1.23,0.069,-0.56))*CFAngles(Vector3.new(50.809,0.672,18.704));
  976. CFrame.new(Vector3.new(0.929,-0.031,-1.0912))*CFAngles(Vector3.new(63.00,13.85,-36.416));
  977. CFrame.new(Vector3.new(-0.63,-1.82,-0.74))*CFAngles(Vector3.new(31.324,3.424,-1.249));
  978. CFrame.new(Vector3.new(0.619,-1.331,0.82))*CFAngles(Vector3.new(-59.644,0.998,9.776));
  979. });
  980. end;
  981. end;
  982. end);
  983. human.Changed:connect(function(prop)
  984. if prop=='MoveDirection'then
  985. if human.MoveDirection.magnitude>.02 then
  986. Debounces.isMoving=true;
  987. else
  988. Debounces.isMoving=false;
  989. end;
  990. end;
  991. end);
  992. uinps.InputBegan:connect(function(InputObj)
  993. if InputObj.KeyCode==Enum.KeyCode.Slash then
  994. local finishEvent=nil;
  995. Debounces.isTyping=true
  996. finishEvent=uinps.InputBegan:connect(function(InputObj)
  997. if InputObj.KeyCode==Enum.KeyCode.Return or InputObj.UserInputType==Enum.UserInputType.MouseButton1 then
  998. Debounces.isTyping=false;
  999. finishEvent:disconnect();
  1000. end;
  1001. end);
  1002. end;
  1003. end);
  1004. mouse.KeyDown:connect(function(key)
  1005. if key=='0'then
  1006. Debounces.isSprinting=true;
  1007. playSound(160248522,c.Torso);
  1008. for i=1,3 do
  1009. spawn(function()
  1010. local e=Instance.new('Part',c);
  1011. e.Size=Vector3.new(1,1,1);
  1012. e.Material='Neon';
  1013. e.Color=a();
  1014. e.Anchored=true;
  1015. e.CFrame=c.HumanoidRootPart.CFrame*CFrame.Angles(0,0,-math.pi/2);
  1016. e.CanCollide=false;
  1017. local rm=Instance.new('SpecialMesh',e);
  1018. rm.MeshType='FileMesh';
  1019. rm.MeshId='rbxassetid://3270017';
  1020. rm.Scale=Vector3.new(3.2,3.2,10);
  1021. for x=1,30 do
  1022. wait();
  1023. rm.Scale=rm.Scale:lerp(Vector3.new(i*30,i*30,(4-i)*450),.1);
  1024. e.Transparency=x/30+.5;
  1025. end;
  1026. end);
  1027. end;
  1028. c.HumanoidRootPart.Velocity=c.HumanoidRootPart.CFrame.lookVector*200;
  1029. end;
  1030. end);
  1031. mouse.KeyUp:connect(function(key)
  1032. if key=='0'then
  1033. Debounces.isSprinting=false;
  1034. end;
  1035. end);
  1036. mouse.KeyDown:connect(function(key)
  1037. if key=='v'then
  1038. playSound(201858087,c.Torso,math.random(90,120)/100);
  1039. local oldPos=c.HumanoidRootPart.CFrame.p;
  1040. local mHit=mouse.Hit.p;
  1041. for i=1,2 do
  1042. spawn(function()
  1043. local pos
  1044. if i==1 then pos=oldPos else pos=mHit end
  1045. local p=Instance.new('Part',workspace);
  1046. p.Anchored=true;
  1047. p.CanCollide=false;
  1048. p.Color=a();
  1049. p.FormFactor='Custom';
  1050. p.CFrame=CFrame.new(pos+Vector3.new(0,500,0));
  1051. p.Transparency=.4;
  1052. p.Size=Vector3.new(20,1000,20);
  1053. for i=1,20 do
  1054. wait();
  1055. p.Transparency=.4+(i/10)*.6;
  1056. p.Size=Vector3.new(20-i*1.5,1000,20-i*1.5);
  1057. p.CFrame=CFrame.new(pos+Vector3.new(0,500,0));
  1058. end;
  1059. p:Destroy();
  1060. end);
  1061. end;
  1062. if Debounces.isMoving then
  1063. 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));
  1064. else
  1065. c.HumanoidRootPart.CFrame=CFrame.new(mouse.Hit.p+Vector3.new(0,4,0),Vector3.new(oldPos.x,mouse.Hit.p.y+4,oldPos.z));
  1066. end;
  1067. end;
  1068. end);
  1069. mouse.KeyDown:connect(function(key)
  1070. if key=='r'then
  1071. local pointTarget=mouse.Hit.p;
  1072. for i=1,20 do
  1073. wait();
  1074. 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));
  1075. end;
  1076. wait();
  1077. largegasterBlast(CFrame.new(pointTarget+Vector3.new(0,35,0),pointTarget));
  1078. end;
  1079. end);
  1080. mouse.KeyDown:connect(function(key)
  1081. if key=='f'then
  1082. local pointTarget=mouse.Hit.p;
  1083. for i=1,20 do
  1084. wait();
  1085. 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)));
  1086. end;
  1087. largegasterBlast(CFrame.new(c.HumanoidRootPart.CFrame.p+Vector3.new(0,50,0),pointTarget):toWorldSpace(CFrame.new(0,0,-25)));
  1088. end;
  1089. end);
  1090. mouse.Button1Down:connect(function()
  1091. Debounces.isFlash=true;
  1092. end);
  1093. mouse.Button1Up:connect(function()
  1094. Debounces.isFlash=false;
  1095. end);
  1096. mouse.KeyDown:connect(function(key)
  1097. if key=='k'then
  1098. if music.isPlaying then music:Stop();else music:Play();end;
  1099. end;
  1100. end);
  1101. mouse.KeyDown:connect(function(key)
  1102. if key=='j'then
  1103. if music2.isPlaying then music2:Stop();else music2:Play();end;
  1104. end;
  1105. end);
  1106. mouse.KeyDown:connect(function(key)
  1107. if key=='l'then
  1108. if music3.isPlaying then music3:Stop();else music3:Play();end;
  1109. end;
  1110. end);
  1111. mouse.KeyDown:connect(function(key)
  1112. if key=='p'then
  1113. if music4.isPlaying then music4:Stop();else music4:Play();end;
  1114. end;
  1115. end);
  1116. mouse.KeyDown:connect(function(key)
  1117. if key=='o'then
  1118. if music5.isPlaying then music4:Stop();else music5:Play();end;
  1119. end;
  1120. end);
  1121. mouse.KeyDown:connect(function(key)
  1122. if key=='e'then
  1123. gasterBlast(c.Torso.CFrame.p+Vector3.new(math.sin(tick()*10)*10,12,math.cos(tick()*10)*10),mouse.Hit.p,true);
  1124. end;
  1125. end);
  1126. mouse.KeyDown:connect(function(key)
  1127. if key=='c'then
  1128. largegasterBlast(c.Torso.CFrame.p+Vector3.new(math.sin(tick()*10)*10,12,math.cos(tick()*10)*10),mouse.Hit.p);
  1129. end;
  1130. end);
  1131. mouse.KeyDown:connect(function(key)
  1132. if key=='q'then
  1133. for i=1,5 do
  1134. wait();
  1135. gasterBlast(c.Torso.CFrame.p+Vector3.new(math.sin(tick()*10)*10,12,math.cos(tick()*10)*10),mouse.Hit.p);
  1136. end;
  1137. largegasterBlast(c.Torso.CFrame.p+Vector3.new(0,25,0),mouse.Hit.p);
  1138. end;
  1139. end);
  1140. mouse.KeyDown:connect(function(key)
  1141. if key=='t'then
  1142. local pointTarget=mouse.Hit.p;
  1143. for i=1,20 do
  1144. 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);
  1145. end;
  1146. wait(.2);
  1147. for i=1,10 do
  1148. largegasterBlast(pointTarget+Vector3.new(math.sin(math.deg((360/20)*i))*25,20,math.cos(math.deg((360/20)*i))*25),pointTarget);
  1149. end;
  1150. end;
  1151. end);
  1152. human.StateChanged:connect(function(os,ns)
  1153. if c.HumanoidRootPart.Velocity.Y<.1 and Debounces.isJumping==true and ns==Enum.HumanoidStateType.Landed then
  1154. Debounces.isJumping=false;
  1155. end;
  1156. end);
  1157. for i=1,#Joints do
  1158. Joints[i].C1=CFrameZero();
  1159. end;
  1160. rs.RenderStepped:connect(function()
  1161. Debounces.FPS=1/rs.RenderStepped:wait();
  1162. if Debounces.FPS<30 then
  1163. Debounces.FPS=30;
  1164. end;
  1165. if Debounces.isSprinting then
  1166. lerpBoom();
  1167. else
  1168. noBoom();
  1169. end;
  1170. for _,v in pairs(rayModel:children())do
  1171. v.Transparency=v.Transparency+.06/(Debounces.FPS/60);
  1172. if v.Transparency>.99 then v:Destroy();return;end;
  1173. v.CanCollide=true;
  1174. local tParts=v:GetTouchingParts();
  1175. v.CanCollide=false;
  1176. local vCFrame=v.CFrame;
  1177. v.Size=v.Size+Vector3.new(0,1,1)/(Debounces.FPS/60);
  1178. v.CFrame=vCFrame;
  1179. for _,x in pairs(tParts)do
  1180. if x and x.Parent and x.Parent:FindFirstChild'Humanoid'and x.Parent.Humanoid:isA'Humanoid'and x.Parent~=c then
  1181. x.Parent.Humanoid:TakeDamage(1,2);
  1182. end;
  1183. end;
  1184. end;
  1185. local FPSLerp=AnimStat.lerpSpeed/(Debounces.FPS/60);
  1186. for i=1,#Joints do
  1187. Joints[i].C0=Joints[i].C0:lerp(JointTargets[i],FPSLerp);
  1188. end;
  1189. end);
Add Comment
Please, Sign In to add comment