Advertisement
Josemmoya

oh yeah yeahs

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