Advertisement
jasonskg1234

weegee sans?

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