Advertisement
WagnerJunio07

Rainbow Sans

Dec 26th, 2018
156
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 20.20 KB | None | 0 0
  1. -- This script has been converted to FE by iPxter
  2.  
  3.  
  4. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  5. local Player,Mouse,mouse,UserInputService,ContextActionService = owner
  6. do
  7. print("FE Compatibility code by Mokiros | Translated to FE by iPxter")
  8. script.Parent = Player.Character
  9.  
  10. --RemoteEvent for communicating
  11. local Event = Instance.new("RemoteEvent")
  12. Event.Name = "UserInput_Event"
  13.  
  14. --Fake event to make stuff like Mouse.KeyDown work
  15. local function fakeEvent()
  16. local t = {_fakeEvent=true,Connect=function(self,f)self.Function=f end}
  17. t.connect = t.Connect
  18. return t
  19. end
  20.  
  21. --Creating fake input objects with fake variables
  22. local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
  23. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  24. local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  25. CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  26. end}
  27. --Merged 2 functions into one by checking amount of arguments
  28. CAS.UnbindAction = CAS.BindAction
  29.  
  30. --This function will trigger the events that have been :Connect()'ed
  31. local function te(self,ev,...)
  32. local t = m[ev]
  33. if t and t._fakeEvent and t.Function then
  34. t.Function(...)
  35. end
  36. end
  37. m.TrigEvent = te
  38. UIS.TrigEvent = te
  39.  
  40. Event.OnServerEvent:Connect(function(plr,io)
  41. if plr~=Player then return end
  42. if io.isMouse then
  43. m.Target = io.Target
  44. m.Hit = io.Hit
  45. else
  46. local b = io.UserInputState == Enum.UserInputState.Begin
  47. if io.UserInputType == Enum.UserInputType.MouseButton1 then
  48. return m:TrigEvent(b and "Button1Down" or "Button1Up")
  49. end
  50. for _,t in pairs(CAS.Actions) do
  51. for _,k in pairs(t.Keys) do
  52. if k==io.KeyCode then
  53. t.Function(t.Name,io.UserInputState,io)
  54. end
  55. end
  56. end
  57. m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
  58. UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
  59. end
  60. end)
  61. Event.Parent = NLS([==[
  62. local Player = game:GetService("Players").LocalPlayer
  63. local Event = script:WaitForChild("UserInput_Event")
  64.  
  65. local UIS = game:GetService("UserInputService")
  66. local input = function(io,a)
  67. if a then return end
  68. --Since InputObject is a client-side instance, we create and pass table instead
  69. Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState})
  70. end
  71. UIS.InputBegan:Connect(input)
  72. UIS.InputEnded:Connect(input)
  73.  
  74. local Mouse = Player:GetMouse()
  75. local h,t
  76. --Give the server mouse data 30 times every second, but only if the values changed
  77. --If player is not moving their mouse, client won't fire events
  78. while wait(1/30) do
  79. if h~=Mouse.Hit or t~=Mouse.Target then
  80. h,t=Mouse.Hit,Mouse.Target
  81. Event:FireServer({isMouse=true,Target=t,Hit=h})
  82. end
  83. end]==],Player.Character)
  84. Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS
  85. end
  86.  
  87.  
  88. pls=game:GetService'Players';
  89. rs=game:GetService'RunService';
  90. uinps=game:GetService'UserInputService';
  91. lp=owner;
  92. c=lp.Character;
  93. rayModel=Instance.new('Model',c);
  94. human=c.Humanoid;
  95. Cone=nil;
  96. human.MaxHealth=5000;
  97. wait();
  98. human.Health=5000;
  99. c.Health:Destroy();
  100. Debounces={
  101. FPS=0;
  102. isAttacking=false;
  103. isMoving=false;
  104. isSprinting=false;
  105. Debounce=false;
  106. isTyping=false;
  107. isJumping=false;
  108. isFlash=false;
  109. };
  110. numLerp=function(start,goal,alpha)
  111. return(((goal-start)*alpha)+start);
  112. end;
  113. CFrameZero=function()
  114. return CFrame.new(Vector3.new());
  115. end;
  116. local function a()
  117. local t=tick();
  118. local l=t%1*3;
  119. local t=.5*math.pi*(l%1);
  120. if l<1 then
  121. return Color3.new(1,1-math.cos(t),1-math.sin(t));
  122. elseif l<2 then
  123. return Color3.new(1-math.sin(t),1,1-math.cos(t));
  124. else
  125. return Color3.new(1-math.cos(t),1-math.sin(t),1);
  126. end;
  127. end;
  128. rad=function(value)
  129. return math.rad(value);
  130. end;
  131. CFAngles=function(Vector)
  132. return CFrame.Angles(rad(Vector.x),rad(Vector.y),rad(Vector.z));
  133. end;
  134. AnimStat={
  135. lerpSpeed=.2;
  136. lerpSpeed2=.35;
  137. lerpTween=0;
  138. };
  139. Joints={
  140. c.HumanoidRootPart.RootJoint;
  141. c.Torso.Neck;
  142. c.Torso['Left Shoulder'];
  143. c.Torso['Right Shoulder'];
  144. c.Torso['Left Hip'];
  145. c.Torso['Right Hip'];
  146. };
  147. JointTargets={
  148. CFrameZero();
  149. CFrameZero();
  150. CFrameZero();
  151. CFrameZero();
  152. CFrameZero();
  153. CFrameZero();
  154. };
  155. prepareCharacter=function()
  156. music=Instance.new('Sound',c.HumanoidRootPart);
  157. music.SoundId='rbxassetid://394144904';
  158. music.Looped=true;
  159. music.Volume=.6;
  160. music2=Instance.new('Sound',c);
  161. music2.SoundId='rbxassetid://259613634';
  162. music2.Looped=true;
  163. music2.Volume=1;
  164. music3=Instance.new('Sound',c.HumanoidRootPart);
  165. music3.SoundId='rbxassetid://266530326';
  166. music3.Looped=true;
  167. music3.Volume=1;
  168. music4=Instance.new('Sound',c.HumanoidRootPart);
  169. music4.SoundId='rbxassetid://155738252';
  170. music4.Looped=true;
  171. music4.Volume=1;
  172. music5=Instance.new('Sound',c.HumanoidRootPart);
  173. music5.SoundId='rbxassetid://215391212';
  174. music5.Looped=true;
  175. music5.Volume=1;
  176. human.WalkSpeed=0;
  177. human.JumpPower=0;
  178. for i,v in pairs(c:children())do
  179. if v:isA'Hat'then v:Destroy();end;
  180. if v:FindFirstChild'roblox'then v.roblox:Destroy();end;
  181. 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;
  182. if v:FindFirstChild'face'then v.face:Destroy();end;
  183. if v:isA'Part'then v.BrickColor=BrickColor.new'White';end;
  184. end
  185. local shirt=c:FindFirstChild'Shirt'or Instance.new('Shirt',c);
  186. local pants=c:FindFirstChild'Pants'or Instance.new('Pants',c);
  187. shirt.ShirtTemplate='rbxassetid://334755544';
  188. pants.PantsTemplate='rbxassetid://315964941';
  189. local Head=Instance.new('Part',c);
  190. Head.Size=Vector3.new(2.5,2.5,1);
  191. Head.Transparency=1;
  192. Head:BreakJoints();
  193. local hw=Instance.new('Weld',c.Head);
  194. hw.Part0=c.Head;
  195. hw.Part1=Head;
  196. hw.C0=CFrame.new(0,.3,0);
  197. faceDecal=Instance.new('Decal',Head);
  198. faceDecal.Face=Enum.NormalId.Front;
  199. faceDecal.Texture='rbxassetid://400387868';
  200. local backDecal=Instance.new('Decal',Head);
  201. backDecal.Face=Enum.NormalId.Back;
  202. backDecal.Texture='rbxassetid://400377807';
  203. local mes=Instance.new('BlockMesh',Head);
  204. mes.Scale=Vector3.new(1,1,.4);
  205. local Anim=human:FindFirstChild'Animator'
  206. if Anim then Anim:Destroy();end;
  207. end;
  208. setJointCFrames=function(table)
  209. for i=1,#table do
  210. JointTargets[i]=table[i];
  211. end;
  212. end;
  213. triWave=function(x)
  214. local pi2=math.pi/2;
  215. return math.abs((x/pi2)%4-2)-1;
  216. end;
  217. setLerp=function(speed)
  218. AnimStat.lerpSpeed=speed;
  219. end;
  220. setTween=function(tween)
  221. AnimStat.lerpTween=tween;
  222. end;
  223. playSound=function(id,part,vol,pitch)
  224. local vol=vol or 1;
  225. local pitch=pitch or 1;
  226. local x=Instance.new('Sound',part);
  227. x.Volume=vol;
  228. x.Pitch=pitch;
  229. x.SoundId='rbxassetid://'..id;
  230. spawn(function()
  231. wait();
  232. x:Play();
  233. wait(x.TimeLength+.2);
  234. x:Destroy();
  235. end);
  236. end;
  237. lerpBoom=function()
  238. if Cone then
  239. Cone.CFrame=CFrame.new(c.HumanoidRootPart.CFrame.p,c.HumanoidRootPart.CFrame.p+c.HumanoidRootPart.Velocity)*CFrame.Angles(-math.pi/2,0,0);
  240. cMesh.Scale=Vector3.new(20,20+c.HumanoidRootPart.Velocity.magnitude/10,20);
  241. Cone.Transparency=1-c.HumanoidRootPart.Velocity.magnitude/1000;
  242. else
  243. Cone=Instance.new('Part',c);
  244. Cone.Anchored=true;
  245. Cone.CanCollide=false;
  246. Cone.Transparency=math.random(50,70)/100;
  247. Cone.Size=Vector3.new(1,1,1);
  248. Cone.CFrame=CFrame.new(c.HumanoidRootPart.CFrame.p,c.HumanoidRootPart.CFrame.p+c.HumanoidRootPart.Velocity)*CFrame.Angles(-math.pi/2,0,0);
  249. cMesh=Instance.new('SpecialMesh',Cone);
  250. cMesh.MeshId='rbxassetid://1033714';
  251. cMesh.Scale=Vector3.new(20,50,20);
  252. end;
  253. end;
  254. noBoom=function()
  255. if Cone then local x=Cone Cone=nil;
  256. for i=1,20 do
  257. wait();
  258. x.Mesh.Scale=x.Mesh.Scale+Vector3.new(-.5,1,-.5);
  259. x.Transparency=x.Transparency+1/30;
  260. end;
  261. end;
  262. end;
  263. gasterBlast=function(tCFrame,aimPos,charge)
  264. local aimTarget;
  265. if aimPos then
  266. aimTarget=CFrame.new(tCFrame,aimPos);
  267. else
  268. aimTarget=tCFrame;
  269. end;
  270. local gast=Instance.new('Part',c);
  271. gast.Size=Vector3.new(12,.2,12);
  272. gast.CanCollide=false;
  273. gast.Anchored=true;
  274. gast.Transparency=1;
  275. if charge then
  276. playSound(400523331,gast,math.random(90,110)/100);
  277. end;
  278. wait();
  279. for i=1,2 do
  280. local decal=Instance.new('Decal',gast);
  281. decal.Texture='rbxassetid://323497117';
  282. if i==1 then
  283. decal.Face=Enum.NormalId.Top;
  284. else
  285. decal.Face=Enum.NormalId.Bottom;
  286. end;
  287. end;
  288. gast.CFrame=CFrame.new(aimTarget.p-Vector3.new(math.sin(tick()*10)*10,20,math.cos(tick()*10)*10));
  289. spawn(function()
  290. local tarCFrame=gast.CFrame;
  291. local isLooping=true;
  292. spawn(function()
  293. gast.CFrame=gast.CFrame:lerp(tarCFrame,.6/(Debounces.FPS/60));
  294. end;
  295. end);
  296. for i=1,30 do
  297. wait();
  298. tarCFrame=gast.CFrame:lerp(aimTarget,.24);
  299. end;
  300. playSound(340722848,gast,math.random(90,110)/100);
  301. isLooping=false;
  302. wait(.08);
  303. local ray=Ray.new(aimTarget.p,aimTarget.lookVector.unit*999);
  304. local _,pos=workspace:FindPartOnRay(ray,c);
  305. local dis=(aimTarget.p-pos).magnitude;
  306. local rayCFrame=CFrame.new(gast.CFrame.p+(pos-gast.CFrame.p).unit*(dis/2+200),gast.CFrame.p+(pos-gast.CFrame.p).unit*dis*2)*CFrame.Angles(0,math.pi/2,0);
  307. local rayPart=Instance.new('Part',rayModel);
  308. rayPart.Material='Neon';
  309. rayPart.FormFactor='Custom';
  310. rayPart.Color=a();
  311. rayPart.Anchored=true;
  312. rayPart.CanCollide=false;
  313. rayPart.Shape='Cylinder';
  314. rayPart.Size=Vector3.new(dis+400,8,8);
  315. rayPart.CFrame=rayCFrame;
  316. gast:Destroy();
  317. end);
  318. end;
  319. largegasterBlast=function(tCFrame,aimPos)
  320. local aimTarget;
  321. if aimPos then
  322. aimTarget=CFrame.new(tCFrame,aimPos);
  323. else
  324. aimTarget=tCFrame;
  325. end;
  326. local gast=Instance.new('Part',c);
  327. gast.Size=Vector3.new(25,.2,25);
  328. gast.CanCollide=false;
  329. gast.Anchored=true;
  330. gast.Transparency=1;
  331. playSound(400523331,gast,math.random(85,97)/100);
  332. wait();
  333. for i=1,2 do
  334. local decal=Instance.new('Decal',gast);
  335. decal.Texture='rbxassetid://323497117';
  336. if i==1 then
  337. decal.Face=Enum.NormalId.Top;
  338. else
  339. decal.Face=Enum.NormalId.Bottom;
  340. end;
  341. end;
  342. gast.CFrame=CFrame.new(aimTarget.p-Vector3.new(math.sin(tick()*10)*10,20,math.cos(tick()*10)*10));
  343. spawn(function()
  344. local tarCFrame=gast.CFrame;
  345. local isLooping=true;
  346. spawn(function()
  347. 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(340722848,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='rbxassetid://400377503';
  380. else
  381. faceDecal.Texture='rbxassetid://400387868';
  382. end;
  383. else
  384. faceDecal.Texture='rbxassetid://400387868';
  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(160248522,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(201858087,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. if Debounces.FPS<30 then
  616. Debounces.FPS=30;
  617. end;
  618. if Debounces.isSprinting then
  619. lerpBoom();
  620. else
  621. noBoom();
  622. end;
  623. for _,v in pairs(rayModel:children())do
  624. v.Transparency=v.Transparency+.06/(Debounces.FPS/60);
  625. if v.Transparency>.99 then v:Destroy();return;end;
  626. v.CanCollide=true;
  627. local tParts=v:GetTouchingParts();
  628. v.CanCollide=false;
  629. local vCFrame=v.CFrame;
  630. v.Size=v.Size+Vector3.new(0,1,1)/(Debounces.FPS/60);
  631. v.CFrame=vCFrame;
  632. for _,x in pairs(tParts)do
  633. if x and x.Parent and x.Parent:FindFirstChild'Humanoid'and x.Parent.Humanoid:isA'Humanoid'and x.Parent~=c then
  634. x.Parent.Humanoid:TakeDamage(1,2);
  635. end;
  636. end;
  637. end;
  638. local FPSLerp=AnimStat.lerpSpeed/(Debounces.FPS/60);
  639. for i=1,#Joints do
  640. Joints[i].C0=Joints[i].C0:lerp(JointTargets[i],FPSLerp);
  641. end;
  642. end);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement