Advertisement
EpicHackerman

Rainbow Sans [FE]

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