Advertisement
PiterMosskva_TV

%$56I8S6Aseretwefcrsecrettttttttttisthatyouareadopted

Apr 3rd, 2019
231
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 20.47 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. pls=Owner;
  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:Destroy();
  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://222274242';
  156. music.Looped=true;
  157. music.Volume=.6;
  158. music2=Instance.new('Sound',c);
  159. music2.SoundId='rbxassetid://181266147';
  160. music2.Looped=true;
  161. music2.Volume=1;
  162. music3=Instance.new('Sound',c.HumanoidRootPart);
  163. music3.SoundId='rbxassetid://151032732';
  164. music3.Looped=true;
  165. music3.Volume=1;
  166. music4=Instance.new('Sound',c.HumanoidRootPart);
  167. music4.SoundId='rbxassetid://130992510';
  168. music4.Looped=true;
  169. music4.Volume=1;
  170. music5=Instance.new('Sound',c.HumanoidRootPart);
  171. music5.SoundId='rbxassetid://441243833';
  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://445336252';
  186. pants.PantsTemplate='rbxassetid://232014054';
  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='http://www.roblox.com/asset/?id=50607824';
  198. local backDecal=Instance.new('Decal',Head);
  199. backDecal.Face=Enum.NormalId.Back;
  200. backDecal.Texture='http://www.roblox.com/asset/?id=50607824';
  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(200590621,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='http://www.roblox.com/asset/?id=50607824';
  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. while rs.RenderStepped:wait()and isLooping do
  292. gast.CFrame=gast.CFrame:lerp(tarCFrame,.6/(Debounces.FPS/60));
  293. end;
  294. end);
  295. for i=1,30 do
  296. wait();
  297. tarCFrame=gast.CFrame:lerp(aimTarget,.24);
  298. end;
  299. playSound(428593644,gast,math.random(90,110)/100);
  300. isLooping=false;
  301. wait(.08);
  302. local ray=Ray.new(aimTarget.p,aimTarget.lookVector.unit*999);
  303. local _,pos=workspace:FindPartOnRay(ray,c);
  304. local dis=(aimTarget.p-pos).magnitude;
  305. 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);
  306. local rayPart=Instance.new('Part',rayModel);
  307. rayPart.Material='Neon';
  308. rayPart.FormFactor='Custom';
  309. rayPart.Color=a();
  310. rayPart.Anchored=true;
  311. rayPart.CanCollide=false;
  312. rayPart.Shape='Cylinder';
  313. rayPart.Size=Vector3.new(dis+400,8,8);
  314. rayPart.CFrame=rayCFrame;
  315. gast:Destroy();
  316. end);
  317. end;
  318. largegasterBlast=function(tCFrame,aimPos)
  319. local aimTarget;
  320. if aimPos then
  321. aimTarget=CFrame.new(tCFrame,aimPos);
  322. else
  323. aimTarget=tCFrame;
  324. end;
  325. local gast=Instance.new('Part',c);
  326. gast.Size=Vector3.new(25,.2,25);
  327. gast.CanCollide=false;
  328. gast.Anchored=true;
  329. gast.Transparency=1;
  330. playSound(400523331,gast,math.random(85,97)/100);
  331. wait();
  332. for i=1,2 do
  333. local decal=Instance.new('Decal',gast);
  334. decal.Texture='http://www.roblox.com/asset/?id=50607824';
  335. if i==1 then
  336. decal.Face=Enum.NormalId.Top;
  337. else
  338. decal.Face=Enum.NormalId.Bottom;
  339. end;
  340. end;
  341. gast.CFrame=CFrame.new(aimTarget.p-Vector3.new(math.sin(tick()*10)*10,20,math.cos(tick()*10)*10));
  342. spawn(function()
  343. local tarCFrame=gast.CFrame;
  344. local isLooping=true;
  345. spawn(function()
  346. while rs.RenderStepped:wait()and isLooping do
  347. gast.CFrame=gast.CFrame:lerp(tarCFrame,.6/(Debounces.FPS/60));
  348. end;
  349. end);
  350. for i=1,40 do
  351. wait();
  352. tarCFrame=gast.CFrame:lerp(aimTarget,.18);
  353. end;
  354. playSound(428593644,gast,math.random(80,95)/100);
  355. isLooping=false;
  356. wait(.08);
  357. local ray=Ray.new(aimTarget.p,aimTarget.lookVector.unit*999);
  358. local _,pos=workspace:FindPartOnRay(ray,c);
  359. local dis=(aimTarget.p-pos).magnitude;
  360. 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);
  361. local rayPart=Instance.new('Part',rayModel);
  362. rayPart.Material='Neon';
  363. rayPart.FormFactor='Custom';
  364. rayPart.Color=a();
  365. rayPart.Anchored=true;
  366. rayPart.CanCollide=false;
  367. rayPart.Shape='Cylinder';
  368. rayPart.Size=Vector3.new(dis+400,17,17);
  369. rayPart.CFrame=rayCFrame;
  370. gast:Destroy();
  371. end);
  372. end;
  373. prepareCharacter();
  374. spawn(function()
  375. local sine=0;
  376. while wait()do
  377. if Debounces.isFlash then
  378. if(tick()*8)%2>1 then
  379. faceDecal.Texture='http://www.roblox.com/asset/?id=50607824';
  380. else
  381. faceDecal.Texture='http://www.roblox.com/asset/?id=50607824';
  382. end;
  383. else
  384. faceDecal.Texture='http://www.roblox.com/asset/?id=50607824';
  385. end;
  386. if Debounces.isAttacking==false and Debounces.isMoving==false and Debounces.Debounce==false and Debounces.isJumping==false then
  387. setLerp(.8);
  388. local spasm=math.abs(math.sin(tick()*20))*1.1;
  389. local spasm2=math.abs(math.sin(tick()*20-2))*1.1;
  390. local spasm3=math.abs(math.sin(tick()*20-2.3))*1.1;
  391. setJointCFrames({
  392. CFrame.new(Vector3.new(0,0-spasm,0))*CFAngles(Vector3.new(0,0,0));
  393. CFrame.new(Vector3.new(0,1.5,0))*CFAngles(Vector3.new(-0.011,-0.502,-1.177));
  394. CFrame.new(Vector3.new(-1.5-spasm2^2/3,-0.001,0))*CFAngles(Vector3.new(-2.344,7.899,-2.82+spasm3^2*-60));
  395. CFrame.new(Vector3.new(1.569+spasm2^2/3,0,-0.1))*CFAngles(Vector3.new(4.822,1.123,6.383+spasm3^2*60));
  396. CFrame.new(Vector3.new(-0.61,-2+spasm/1.01,-.15))*CFAngles(Vector3.new(-2.206,0.767,-0.582));
  397. CFrame.new(Vector3.new(0.55,-2+spasm/1.01,-.1))*CFAngles(Vector3.new(-0.026,0.463,3.184));
  398. });
  399. elseif Debounces.isAttacking==false and Debounces.isMoving==true and Debounces.Debounce==false and Debounces.isSprinting==false and Debounces.isJumping==false then
  400. sine=tick()*18;
  401. human.WalkSpeed=120;
  402. setLerp(.35);
  403. setJointCFrames({
  404. 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));
  405. CFrame.new(Vector3.new(0,1.48,0.099))*CFAngles(Vector3.new(14.999,-0.001,0));
  406. 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));
  407. 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));
  408. 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));
  409. 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));
  410. });
  411. elseif Debounces.isAttacking==false and Debounces.isMoving==true and Debounces.Debounce==false and Debounces.isSprinting==true and Debounces.isJumping==false then
  412. sine=tick()*28;
  413. human.WalkSpeed=400;
  414. lerpBoom();
  415. setLerp(.65);
  416. setJointCFrames({
  417. 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));
  418. CFrame.new(Vector3.new(0,1.48,0.099))*CFAngles(Vector3.new(14.999,-0.001,0));
  419. 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));
  420. 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));
  421. 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));
  422. 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));
  423. });
  424. elseif Debounces.isJumping==true and Debounces.Debounce==false then
  425. setLerp(.14);
  426. human.WalkSpeed=45;
  427. setJointCFrames({
  428. CFrame.new(Vector3.new(0,0,0))*CFAngles(Vector3.new(-8,0,0));
  429. CFrame.new(Vector3.new(0,1.5,-0.15))*CFAngles(Vector3.new(-10.138,3.687,0.306));
  430. CFrame.new(Vector3.new(-1.23,0.069,-0.56))*CFAngles(Vector3.new(50.809,0.672,18.704));
  431. CFrame.new(Vector3.new(0.929,-0.031,-1.0912))*CFAngles(Vector3.new(63.00,13.85,-36.416));
  432. CFrame.new(Vector3.new(-0.63,-1.82,-0.74))*CFAngles(Vector3.new(31.324,3.424,-1.249));
  433. CFrame.new(Vector3.new(0.619,-1.331,0.82))*CFAngles(Vector3.new(-59.644,0.998,9.776));
  434. });
  435. end;
  436. end;
  437. end);
  438. human.Changed:connect(function(prop)
  439. if prop=='MoveDirection'then
  440. if human.MoveDirection.magnitude>.02 then
  441. Debounces.isMoving=true;
  442. else
  443. Debounces.isMoving=false;
  444. end;
  445. end;
  446. end);
  447. uinps.InputBegan:connect(function(InputObj)
  448. if InputObj.KeyCode==Enum.KeyCode.Slash then
  449. local finishEvent=nil;
  450. Debounces.isTyping=true
  451. finishEvent=uinps.InputBegan:connect(function(InputObj)
  452. if InputObj.KeyCode==Enum.KeyCode.Return or InputObj.UserInputType==Enum.UserInputType.MouseButton1 then
  453. Debounces.isTyping=false;
  454. finishEvent:disconnect();
  455. end;
  456. end);
  457. end;
  458. end);
  459. mouse.KeyDown:connect(function(key)
  460. if key=='0'then
  461. Debounces.isSprinting=true;
  462. playSound(200590621,c.Torso);
  463. for i=1,3 do
  464. spawn(function()
  465. local e=Instance.new('Part',c);
  466. e.Size=Vector3.new(1,1,1);
  467. e.Material='Neon';
  468. e.Color=a();
  469. e.Anchored=true;
  470. e.CFrame=c.HumanoidRootPart.CFrame*CFrame.Angles(0,0,-math.pi/2);
  471. e.CanCollide=false;
  472. local rm=Instance.new('SpecialMesh',e);
  473. rm.MeshType='FileMesh';
  474. rm.MeshId='rbxassetid://3270017';
  475. rm.Scale=Vector3.new(3.2,3.2,10);
  476. for x=1,30 do
  477. wait();
  478. rm.Scale=rm.Scale:lerp(Vector3.new(i*30,i*30,(4-i)*450),.1);
  479. e.Transparency=x/30+.5;
  480. end;
  481. end);
  482. end;
  483. c.HumanoidRootPart.Velocity=c.HumanoidRootPart.CFrame.lookVector*200;
  484. end;
  485. end);
  486. mouse.KeyUp:connect(function(key)
  487. if key=='0'then
  488. Debounces.isSprinting=false;
  489. end;
  490. end);
  491. mouse.KeyDown:connect(function(key)
  492. if key=='v'then
  493. playSound(200590621,c.Torso,math.random(90,120)/100);
  494. local oldPos=c.HumanoidRootPart.CFrame.p;
  495. local mHit=mouse.Hit.p;
  496. for i=1,2 do
  497. spawn(function()
  498. local pos
  499. if i==1 then pos=oldPos else pos=mHit end
  500. local p=Instance.new('Part',workspace);
  501. p.Anchored=true;
  502. p.CanCollide=false;
  503. p.Color=a();
  504. p.FormFactor='Custom';
  505. p.CFrame=CFrame.new(pos+Vector3.new(0,500,0));
  506. p.Transparency=.4;
  507. p.Size=Vector3.new(20,1000,20);
  508. for i=1,20 do
  509. wait();
  510. p.Transparency=.4+(i/10)*.6;
  511. p.Size=Vector3.new(20-i*1.5,1000,20-i*1.5);
  512. p.CFrame=CFrame.new(pos+Vector3.new(0,500,0));
  513. end;
  514. p:Destroy();
  515. end);
  516. end;
  517. if Debounces.isMoving then
  518. 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));
  519. else
  520. c.HumanoidRootPart.CFrame=CFrame.new(mouse.Hit.p+Vector3.new(0,4,0),Vector3.new(oldPos.x,mouse.Hit.p.y+4,oldPos.z));
  521. end;
  522. end;
  523. end);
  524. mouse.KeyDown:connect(function(key)
  525. if key=='r'then
  526. local pointTarget=mouse.Hit.p;
  527. for i=1,20 do
  528. wait();
  529. 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));
  530. end;
  531. wait();
  532. largegasterBlast(CFrame.new(pointTarget+Vector3.new(0,35,0),pointTarget));
  533. end;
  534. end);
  535. mouse.KeyDown:connect(function(key)
  536. if key=='f'then
  537. local pointTarget=mouse.Hit.p;
  538. for i=1,20 do
  539. wait();
  540. 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)));
  541. end;
  542. largegasterBlast(CFrame.new(c.HumanoidRootPart.CFrame.p+Vector3.new(0,50,0),pointTarget):toWorldSpace(CFrame.new(0,0,-25)));
  543. end;
  544. end);
  545. mouse.Button1Down:connect(function()
  546. Debounces.isFlash=true;
  547. end);
  548. mouse.Button1Up:connect(function()
  549. Debounces.isFlash=false;
  550. end);
  551. mouse.KeyDown:connect(function(key)
  552. if key=='k'then
  553. if music.isPlaying then music:Stop();else music:Play();end;
  554. end;
  555. end);
  556. mouse.KeyDown:connect(function(key)
  557. if key=='j'then
  558. if music2.isPlaying then music2:Stop();else music2:Play();end;
  559. end;
  560. end);
  561. mouse.KeyDown:connect(function(key)
  562. if key=='l'then
  563. if music3.isPlaying then music3:Stop();else music3:Play();end;
  564. end;
  565. end);
  566. mouse.KeyDown:connect(function(key)
  567. if key=='p'then
  568. if music4.isPlaying then music4:Stop();else music4:Play();end;
  569. end;
  570. end);
  571. mouse.KeyDown:connect(function(key)
  572. if key=='o'then
  573. if music5.isPlaying then music4:Stop();else music5:Play();end;
  574. end;
  575. end);
  576. mouse.KeyDown:connect(function(key)
  577. if key=='e'then
  578. gasterBlast(c.Torso.CFrame.p+Vector3.new(math.sin(tick()*10)*10,12,math.cos(tick()*10)*10),mouse.Hit.p,true);
  579. end;
  580. end);
  581. mouse.KeyDown:connect(function(key)
  582. if key=='c'then
  583. largegasterBlast(c.Torso.CFrame.p+Vector3.new(math.sin(tick()*10)*10,12,math.cos(tick()*10)*10),mouse.Hit.p);
  584. end;
  585. end);
  586. mouse.KeyDown:connect(function(key)
  587. if key=='q'then
  588. for i=1,5 do
  589. wait();
  590. gasterBlast(c.Torso.CFrame.p+Vector3.new(math.sin(tick()*10)*10,12,math.cos(tick()*10)*10),mouse.Hit.p);
  591. end;
  592. largegasterBlast(c.Torso.CFrame.p+Vector3.new(0,25,0),mouse.Hit.p);
  593. end;
  594. end);
  595. mouse.KeyDown:connect(function(key)
  596. if key=='t'then
  597. local pointTarget=mouse.Hit.p;
  598. for i=1,20 do
  599. 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);
  600. end;
  601. wait(.2);
  602. for i=1,10 do
  603. largegasterBlast(pointTarget+Vector3.new(math.sin(math.deg((360/20)*i))*25,20,math.cos(math.deg((360/20)*i))*25),pointTarget);
  604. end;
  605. end;
  606. end);
  607. human.StateChanged:connect(function(os,ns)
  608. if c.HumanoidRootPart.Velocity.Y<.1 and Debounces.isJumping==true and ns==Enum.HumanoidStateType.Landed then
  609. Debounces.isJumping=false;
  610. end;
  611. end);
  612. for i=1,#Joints do
  613. Joints[i].C1=CFrameZero();
  614. end;
  615. rs.RenderStepped:connect(function()
  616. Debounces.FPS=1/rs.RenderStepped:wait();
  617. if Debounces.FPS<30 then
  618. Debounces.FPS=30;
  619. end;
  620. if Debounces.isSprinting then
  621. lerpBoom();
  622. else
  623. noBoom();
  624. end;
  625. for _,v in pairs(rayModel:children())do
  626. v.Transparency=v.Transparency+.06/(Debounces.FPS/60);
  627. if v.Transparency>.99 then v:Destroy();return;end;
  628. v.CanCollide=true;
  629. local tParts=v:GetTouchingParts();
  630. v.CanCollide=false;
  631. local vCFrame=v.CFrame;
  632. v.Size=v.Size+Vector3.new(0,1,1)/(Debounces.FPS/60);
  633. v.CFrame=vCFrame;
  634. for _,x in pairs(tParts)do
  635. if x and x.Parent and x.Parent:FindFirstChild'Humanoid'and x.Parent.Humanoid:isA'Humanoid'and x.Parent~=c then
  636. x.Parent.Humanoid:TakeDamage(1,2);
  637. end;
  638. end;
  639. end;
  640. local FPSLerp=AnimStat.lerpSpeed/(Debounces.FPS/60);
  641. for i=1,#Joints do
  642. Joints[i].C0=Joints[i].C0:lerp(JointTargets[i],FPSLerp);
  643. end;
  644. end);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement