Advertisement
Void_scripter0

SANES

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