Advertisement
-----------------

epikly sans

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