Advertisement
valentino2016

Untitled

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