Advertisement
Axprotss

Rainbow Sans Script

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