Advertisement
DaOMEGAa32

fe sannesssssss

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