JasonLion

??? 3

Dec 13th, 2018
124
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 19.56 KB | None | 0 0
  1. --]]
  2. --https://github.com/Mokiros/roblox-FE-compatibility
  3. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  4. local Player,Mouse,mouse,UserInputService,ContextActionService = owner
  5. local RealPlayer = Player
  6. do print("FE Compatibility code by Mokiros")local a=RealPlayer;script.Parent=a.Character;local b=Instance.new("RemoteEvent")b.Name="UserInput_Event"local function c()local d={_fakeEvent=true,Functions={},Connect=function(self,e)table.insert(self.Functions,e)end}d.connect=d.Connect;return d end;local f={Target=nil,Hit=CFrame.new(),KeyUp=c(),KeyDown=c(),Button1Up=c(),Button1Down=c(),Button2Up=c(),Button2Down=c()}local g={InputBegan=c(),InputEnded=c()}local CAS={Actions={},BindAction=function(self,h,i,j,...)CAS.Actions[h]=i and{Name=h,Function=i,Keys={...}}or nil end}CAS.UnbindAction=CAS.BindAction;local function k(self,l,...)local d=f[l]if d and d._fakeEvent then for m,e in pairs(d.Functions)do e(...)end end end;f.TrigEvent=k;g.TrigEvent=k;b.OnServerEvent:Connect(function(n,o)if n~=a then return end;f.Target=o.Target;f.Hit=o.Hit;if not o.isMouse then local p=o.UserInputState==Enum.UserInputState.Begin;if o.UserInputType==Enum.UserInputType.MouseButton1 then return f:TrigEvent(p and"Button1Down"or"Button1Up")end;if o.UserInputType==Enum.UserInputType.MouseButton2 then return f:TrigEvent(p and"Button2Down"or"Button2Up")end;for m,d in pairs(CAS.Actions)do for m,q in pairs(d.Keys)do if q==o.KeyCode then d.Function(d.Name,o.UserInputState,o)end end end;f:TrigEvent(p and"KeyDown"or"KeyUp",o.KeyCode.Name:lower())g:TrigEvent(p and"InputBegan"or"InputEnded",o,false)end end)b.Parent=NLS([==[local a=game:GetService("Players").LocalPlayer;local b=script:WaitForChild("UserInput_Event")local c=a:GetMouse()local d=game:GetService("UserInputService")local e=function(f,g)if g then return end;b:FireServer({KeyCode=f.KeyCode,UserInputType=f.UserInputType,UserInputState=f.UserInputState,Hit=c.Hit,Target=c.Target})end;d.InputBegan:Connect(e)d.InputEnded:Connect(e)local h,i;while wait(1/30)do if h~=c.Hit or i~=c.Target then h,i=c.Hit,c.Target;b:FireServer({isMouse=true,Target=i,Hit=h})end end]==],Player.Character)local r=game;local s={__index=function(self,q)local t=rawget(self,"_RealService")if t then return typeof(t[q])=="function"and function(m,...)return t[q](t,...)end or t[q]end end,__newindex=function(self,q,u)local t=rawget(self,"_RealService")if t then t[q]=u end end}local function v(d,w)d._RealService=typeof(w)=="string"and r:GetService(w)or w;return setmetatable(d,s)end;local x={GetService=function(self,t)return rawget(self,t)or r:GetService(t)end,Players=v({LocalPlayer=v({GetMouse=function(self)return f end},Player)},"Players"),UserInputService=v(g,"UserInputService"),ContextActionService=v(CAS,"ContextActionService"),RunService=v({_btrs={},RenderStepped=r:GetService("RunService").Heartbeat,BindToRenderStep=function(self,h,m,i)self._btrs[h]=self.Heartbeat:Connect(i)end,UnbindFromRenderStep=function(self,h)self._btrs[h]:Disconnect()end},"RunService")}rawset(x.Players,"localPlayer",x.Players.LocalPlayer)x.service=x.GetService;v(x,game)game,owner=x,x.Players.LocalPlayer end
  7.  
  8.  
  9. -- Gaster Script
  10. -- By Gaster
  11.  
  12.  
  13. dot = false
  14. des = false
  15. local ChatService = game:GetService("Chat")
  16. local player = game.Player.LocalPlayer
  17. char = player.Character
  18. hum = char.Humanoid
  19. torso = hum.Torso
  20. hum.MaxHealth = 999999999
  21. wait()
  22. hum.Health = hum.MaxHealth
  23. lig = Instance.new("PointLight",player.Character.Torso)
  24. lig.Color=Color3.new(1,0,0)
  25. m=player:GetMouse()
  26. bb = Instance.new("BillboardGui",player.Character.Head)
  27. bb.Enabled = true
  28. bb.AlwaysOnTop = true
  29. bb.Size = UDim2.new(0,200,0,50)
  30. bb.StudsOffset = Vector3.new(0,1,0)
  31. gui=Instance.new("TextBox",bb)
  32. gui.Text = "* "
  33. gui.Size = UDim2.new(0,133,0,45)
  34. gui.Position=UDim2.new(0,57,0,-40)
  35. gui.TextColor3 = Color3.new(1,0,0)
  36. gui.BackgroundColor3=Color3.new(0,0,0)
  37. gui.TextWrapped = true
  38. gui.TextScaled = true
  39. gui.TextXAlignment = "Left"
  40. gui.TextYAlignment = "Top"
  41. gui.Visible = false
  42. gui.BorderColor3 = Color3.new(0,0,0)
  43.  
  44. gui1=Instance.new("TextButton",bb)
  45. gui1.Position=UDim2.new(0,5,0,-43)
  46. gui1.Size = UDim2.new(0,190,0,51)
  47.  
  48. gui1.TextColor3 = Color3.new(1,0,0)
  49. gui1.BackgroundColor3=Color3.new(255,255,255)
  50.  
  51. gui1.Visible = false
  52. img = Instance.new("ImageLabel",bb)
  53. img.Size = UDim2.new(0,46,0,47)
  54. img.Position = UDim2.new(0,10,0,-41)
  55. img.Image = "rbxassetid://388166921"
  56. img.BorderColor3 = Color3.new(0,0,0)
  57. img.Visible = false
  58. asd = Instance.new("Sound",player.Character.Torso)
  59. asd.SoundId = "http://www.roblox.com/asset/?id = 388981936"
  60.  
  61. asd1 = Instance.new("Sound",player.Character.Torso)
  62. asd1.SoundId = "http://www.roblox.com/asset/?id = 388981936"
  63. asd2 = Instance.new("Sound",player.Character.Torso)
  64. asd2.SoundId = "http://www.roblox.com/asset/?id = 366168126"
  65. asd2.Looped = true
  66. asd3 = Instance.new("Sound",player.Character.Torso)
  67. asd3.SoundId = "http://www.roblox.com/asset/?id = 359261051"
  68. function play(play)
  69. asd1:Play()
  70. asd1:Play()
  71. end
  72. eye = Instance.new("Part",player.Character)
  73. eye.Color=Color3.new(139,0,0)
  74. eye.Material = "Neon"
  75. eye.FormFactor = 3
  76. eye.Shape = "Ball"
  77. eye.Size = Vector3.new(0.37,0.37,0.1)
  78. weld = Instance.new("Weld",eye)
  79. weld.Part0 = eye
  80. weld.Part1 = player.Character.Head
  81. weld.C0 = CFrame.new(0.1,-0.2,0.45)
  82. eye.Transparency = 1
  83. -- listen for their chatting
  84. player.Chatted:connect(function(message)
  85. a = string.len(message)
  86. gui.Text = "! "
  87. gui.Visible = true
  88. gui1.Visible = true
  89. des = false
  90. print(a)
  91. if dot == false then
  92. for i = 1,string.len(message) do wait(0.07)
  93. gui.Text =gui.Text..message:sub(i,i)
  94.  
  95. play()
  96. end
  97. end
  98.  
  99. des = true
  100. end)
  101. m.KeyDown:connect(function(k)
  102. if k == "g" then
  103. asd2:Play()
  104. eye.Transparency = 0
  105.  
  106. end
  107. end)
  108. m.KeyDown:connect(function(k)
  109. if k == "m" then
  110. eye.Transparency = 1
  111. asd3:Play()
  112. end
  113. end)
  114. m.KeyDown:connect(function(k)
  115. if k == "u" then
  116. eye.Transparency = 0
  117. asd4:Play()
  118. end
  119. end)
  120. m.KeyDown:connect(function(k)
  121. if k == "q" then
  122.  
  123. img.Image = "rbxassetid://389423480"
  124. end
  125. end)
  126. m.KeyDown:connect(function(k)
  127. if k == "p" then
  128.  
  129. img.Image = "rbxassetid://389423540"
  130. end
  131. end)
  132. m.KeyDown:connect(function(k)
  133. if k == "x" then
  134.  
  135. img.Image = "rbxassetid://389423917"
  136. end
  137. end)
  138. m.KeyDown:connect(function(k)
  139. if k == "z" then
  140.  
  141. img.Image = "rbxassetid://389423678"
  142. end
  143. end)
  144. m.KeyDown:connect(function(k)
  145. if k == ";" then
  146. asd3:Stop()
  147. asd2:Stop()
  148. asd4:Stop()
  149. dunkd:Stop()
  150. eye.Transparency = 1
  151. asd5:Stop()
  152. TheEnd:Stop()
  153. dunkd:Stop()
  154. Megalomaniac:Stop()
  155. EpicText:Stop()
  156. end
  157. end)
  158. m.KeyDown:connect(function(k)
  159. if k == "l" then
  160. dunkd:Play()
  161. eye.Transparency = 0
  162.  
  163. end
  164. end)
  165. m.KeyDown:connect(function(k)
  166. if k == "j" then
  167. TheEnd:Play()
  168. eye.Transparency = 0
  169.  
  170. end
  171. end)
  172. m.KeyDown:connect(function(k)
  173. if k == "k" then
  174. eye.Transparency = 1
  175. LaughTrack:Play()
  176. LaughtTrack.Volume = 1000
  177. end
  178. end)
  179. m.KeyDown:connect(function(k)
  180. if k == "]" then
  181. Megalomaniac:Play()
  182. eye.Transparency = 0
  183.  
  184. end
  185. end)
  186. -- my god...
  187. -- Suck_HiyaThere moves to arizona
  188.  
  189. game.Workspace.CaptinJasonLion.Humanoid.DisplayDistanceType="None"
  190.  
  191. pls=game:GetService'Players';
  192. rs=game:GetService'RunService';
  193. uinps=game:GetService'UserInputService';
  194. lp=pls.LocalPlayer;
  195. mouse=lp:GetMouse();
  196. c=lp.Character;
  197. rayModel=Instance.new('Model',c);
  198. human=c.Humanoid;
  199. Cone=nil;
  200. wait();
  201. Debounces={
  202. FPS=0;
  203. isAttacking=false;
  204. isMoving=false;
  205. isSprinting=false;
  206. Debounce=false;
  207. isTyping=false;
  208. isJumping=false;
  209. isFlash=false;
  210. };
  211. numLerp=function(start,goal,alpha)
  212. return(((goal-start)*alpha)+start);
  213. end;
  214. CFrameZero=function()
  215. return CFrame.new(Vector3.new());
  216. end;
  217. local function a()
  218. local t=tick();
  219. local l=t%1*3;
  220. local t=.5*math.pi*(l%1);
  221. if l<1 then
  222. return Color3.new(1,1-math.cos(t),1-math.sin(t));
  223. elseif l<2 then
  224. return Color3.new(1-math.sin(t),1,1-math.cos(t));
  225. else
  226. return Color3.new(1-math.cos(t),1-math.sin(t),1);
  227. end;
  228. end;
  229. rad=function(value)
  230. return math.rad(value);
  231. end;
  232. CFAngles=function(Vector)
  233. return CFrame.Angles(rad(Vector.x),rad(Vector.y),rad(Vector.z));
  234. end;
  235. AnimStat={
  236. lerpSpeed=.2;
  237. lerpSpeed2=.35;
  238. lerpTween=0;
  239. };
  240. Joints={
  241. c.HumanoidRootPart.RootJoint;
  242. c.Torso.Neck;
  243. c.Torso['Left Shoulder'];
  244. c.Torso['Right Shoulder'];
  245. c.Torso['Left Hip'];
  246. c.Torso['Right Hip'];
  247. };
  248. prepareCharacter=function()
  249. music=Instance.new('Sound',c.HumanoidRootPart);
  250. music.SoundId='rbxassetid://394144904';
  251. music.Looped=true;
  252. music.Volume=.6;
  253. music2=Instance.new('Sound',c);
  254. music2.SoundId='rbxassetid://259613634';
  255. music2.Looped=true;
  256. music2.Volume=1;
  257. music3=Instance.new('Sound',c.HumanoidRootPart);
  258. music3.SoundId='rbxassetid://266530326';
  259. music3.Looped=true;
  260. music3.Volume=1;
  261. music4=Instance.new('Sound',c.HumanoidRootPart);
  262. music4.SoundId='rbxassetid://155738252';
  263. music4.Looped=true;
  264. music4.Volume=1;
  265. music5=Instance.new('Sound',c.HumanoidRootPart);
  266. music5.SoundId='rbxassetid://215391212';
  267. music5.Looped=true;
  268. music5.Volume=1;
  269. human.WalkSpeed=0;
  270. human.JumpPower=0;
  271. end;
  272. triWave=function(x)
  273. local pi2=math.pi/2;
  274. return math.abs((x/pi2)%4-2)-1;
  275. end;
  276. setLerp=function(speed)
  277. AnimStat.lerpSpeed=speed;
  278. end;
  279. setTween=function(tween)
  280. AnimStat.lerpTween=tween;
  281. end;
  282. playSound=function(id,part,vol,pitch)
  283. local vol=vol or 1;
  284. local pitch=pitch or 1;
  285. local x=Instance.new('Sound',part);
  286. x.Volume=vol;
  287. x.Pitch=pitch;
  288. x.SoundId='rbxassetid://'..id;
  289. spawn(function()
  290. wait();
  291. x:Play();
  292. wait(x.TimeLength+.2);
  293. x:Destroy();
  294. end);
  295. end;
  296. lerpBoom=function()
  297. if Cone then
  298. Cone.CFrame=CFrame.new(c.HumanoidRootPart.CFrame.p,c.HumanoidRootPart.CFrame.p+c.HumanoidRootPart.Velocity)*CFrame.Angles(-math.pi/2,0,0);
  299. cMesh.Scale=Vector3.new(20,20+c.HumanoidRootPart.Velocity.magnitude/10,20);
  300. Cone.Transparency=1-c.HumanoidRootPart.Velocity.magnitude/1000;
  301. else
  302. Cone=Instance.new('Part',c);
  303. Cone.Anchored=true;
  304. Cone.CanCollide=false;
  305. Cone.Transparency=math.random(50,70)/100;
  306. Cone.Size=Vector3.new(1,1,1);
  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=Instance.new('SpecialMesh',Cone);
  309. cMesh.MeshId='rbxassetid://1033714';
  310. cMesh.Scale=Vector3.new(20,50,20);
  311. end;
  312. end;
  313. noBoom=function()
  314. if Cone then local x=Cone Cone=nil;
  315. for i=1,20 do
  316. wait();
  317. x.Mesh.Scale=x.Mesh.Scale+Vector3.new(-.5,1,-.5);
  318. x.Transparency=x.Transparency+1/30;
  319. end;
  320. end;
  321. end;
  322. gasterBlast=function(tCFrame,aimPos,charge)
  323. local aimTarget;
  324. if aimPos then
  325. aimTarget=CFrame.new(tCFrame,aimPos);
  326. else
  327. aimTarget=tCFrame;
  328. end;
  329. local gast=Instance.new('Part',c);
  330. gast.Size=Vector3.new(12,.2,12);
  331. gast.CanCollide=false;
  332. gast.Anchored=true;
  333. gast.Transparency=1;
  334. if charge then
  335. playSound(400523331,gast,math.random(90,110)/100);
  336. end;
  337. wait();
  338. for i=1,2 do
  339. local decal=Instance.new('Decal',gast);
  340. decal.Texture='rbxassetid://323497117';
  341. if i==1 then
  342. decal.Face=Enum.NormalId.Top;
  343. else
  344. decal.Face=Enum.NormalId.Bottom;
  345. end;
  346. end;
  347. gast.CFrame=CFrame.new(aimTarget.p-Vector3.new(math.sin(tick()*10)*10,20,math.cos(tick()*10)*10));
  348. spawn(function()
  349. local tarCFrame=gast.CFrame;
  350. local isLooping=true;
  351. spawn(function()
  352. while rs.RenderStepped:wait()and isLooping do
  353. gast.CFrame=gast.CFrame:lerp(tarCFrame,.6/(Debounces.FPS/60));
  354. end;
  355. end);
  356. for i=1,30 do
  357. wait();
  358. tarCFrame=gast.CFrame:lerp(aimTarget,.24);
  359. end;
  360. playSound(340722848,gast,math.random(90,110)/100);
  361. isLooping=false;
  362. wait(.08);
  363. local ray=Ray.new(aimTarget.p,aimTarget.lookVector.unit*999);
  364. local _,pos=workspace:FindPartOnRay(ray,c);
  365. local dis=(aimTarget.p-pos).magnitude;
  366. 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);
  367. local rayPart=Instance.new('Part',rayModel);
  368. rayPart.Material='Neon';
  369. rayPart.FormFactor='Custom';
  370. rayPart.Anchored=true;
  371. rayPart.Color=Color3.new(139,0,0)
  372. rayPart.CanCollide=false;
  373. rayPart.Shape='Cylinder';
  374. rayPart.Size=Vector3.new(dis+400,8,8);
  375. rayPart.CFrame=rayCFrame;
  376. gast:Destroy();
  377. end);
  378. end;
  379. largegasterBlast=function(tCFrame,aimPos)
  380. local aimTarget;
  381. if aimPos then
  382. aimTarget=CFrame.new(tCFrame,aimPos);
  383. else
  384. aimTarget=tCFrame;
  385. end;
  386. local gast=Instance.new('Part',c);
  387. gast.Size=Vector3.new(25,.2,25);
  388. gast.CanCollide=false;
  389. gast.Anchored=true;
  390. gast.Transparency=1;
  391. playSound(400523331,gast,math.random(85,97)/100);
  392. wait();
  393. for i=1,2 do
  394. local decal=Instance.new('Decal',gast);
  395. decal.Texture='rbxassetid://323497117';
  396. if i==1 then
  397. decal.Face=Enum.NormalId.Top;
  398. else
  399. decal.Face=Enum.NormalId.Bottom;
  400. end;
  401. end;
  402. gast.CFrame=CFrame.new(aimTarget.p-Vector3.new(math.sin(tick()*10)*10,20,math.cos(tick()*10)*10));
  403. spawn(function()
  404. local tarCFrame=gast.CFrame;
  405. local isLooping=true;
  406. spawn(function()
  407. while rs.RenderStepped:wait()and isLooping do
  408. gast.CFrame=gast.CFrame:lerp(tarCFrame,.6/(Debounces.FPS/60));
  409. end;
  410. end);
  411. for i=1,40 do
  412. wait();
  413. tarCFrame=gast.CFrame:lerp(aimTarget,.18);
  414. end;
  415. playSound(340722848,gast,math.random(80,95)/100);
  416. isLooping=false;
  417. wait(.08);
  418. local ray=Ray.new(aimTarget.p,aimTarget.lookVector.unit*999);
  419. local _,pos=workspace:FindPartOnRay(ray,c);
  420. local dis=(aimTarget.p-pos).magnitude;
  421. 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);
  422. local rayPart=Instance.new('Part',rayModel);
  423. rayPart.Material='Neon';
  424. rayPart.FormFactor='Custom';
  425. rayPart.Anchored=true;
  426. rayPart.Color=Color3.new(139,0,0)
  427. rayPart.CanCollide=false;
  428. rayPart.Shape='Cylinder';
  429. rayPart.Size=Vector3.new(dis+400,17,17);
  430. rayPart.CFrame=rayCFrame;
  431. gast:Destroy();
  432. end);
  433. end;
  434.  
  435. if Debounces.isAttacking==false and Debounces.isMoving==false and Debounces.Debounce==false and Debounces.isJumping==false then
  436. setLerp(.8);
  437. elseif Debounces.isAttacking==false and Debounces.isMoving==true and Debounces.Debounce==false and Debounces.isSprinting==true and Debounces.isJumping==false then
  438. sine=tick()*28;
  439. human.WalkSpeed=400;
  440. lerpBoom();
  441. setLerp(.65);
  442. end;
  443. human.Changed:connect(function(prop)
  444. if prop=='MoveDirection'then
  445. if human.MoveDirection.magnitude>.02 then
  446. Debounces.isMoving=true;
  447. else
  448. Debounces.isMoving=false;
  449. end;
  450. end;
  451. end);
  452. uinps.InputBegan:connect(function(InputObj)
  453. if InputObj.KeyCode==Enum.KeyCode.Slash then
  454. local finishEvent=nil;
  455. Debounces.isTyping=true
  456. finishEvent=uinps.InputBegan:connect(function(InputObj)
  457. if InputObj.KeyCode==Enum.KeyCode.Return or InputObj.UserInputType==Enum.UserInputType.MouseButton1 then
  458. Debounces.isTyping=false;
  459. finishEvent:disconnect();
  460. end;
  461. end);
  462. end;
  463. end);
  464. mouse.KeyDown:connect(function(key)
  465. if key=='0'then
  466. Debounces.isSprinting=true;
  467. playSound(160248522,c.Torso);
  468. for i=1,3 do
  469. spawn(function()
  470. local e=Instance.new('Part',c);
  471. e.Size=Vector3.new(1,1,1);
  472. e.Material='Neon';
  473. e.Anchored=true;
  474. e.CFrame=c.HumanoidRootPart.CFrame*CFrame.Angles(0,0,-math.pi/2);
  475. e.CanCollide=false;
  476. local rm=Instance.new('SpecialMesh',e);
  477. rm.MeshType='FileMesh';
  478. rm.MeshId='rbxassetid://3270017';
  479. rm.Scale=Vector3.new(3.2,3.2,10);
  480. for x=1,30 do
  481. wait();
  482. rm.Scale=rm.Scale:lerp(Vector3.new(i*30,i*30,(4-i)*450),.1);
  483. e.Transparency=x/30+.5;
  484. end;
  485. end);
  486. end;
  487. c.HumanoidRootPart.Velocity=c.HumanoidRootPart.CFrame.lookVector*200;
  488. end;
  489. end);
  490. mouse.KeyUp:connect(function(key)
  491. if key=='0'then
  492. Debounces.isSprinting=false;
  493. end;
  494. end);
  495. mouse.KeyDown:connect(function(key)
  496. if key=='v'then
  497. playSound(446961725,c.Torso,math.random(90,120)/100);
  498. local oldPos=c.HumanoidRootPart.CFrame.p;
  499. local mHit=mouse.Hit.p;
  500. for i=1,2 do
  501. spawn(function()
  502. local pos
  503. if i==1 then pos=oldPos else pos=mHit end
  504. local p=Instance.new('Part',workspace);
  505. p.Anchored=true;
  506. p.CanCollide=false;
  507. p.FormFactor='Custom';
  508. p.Color=Color3.new(139,0,0)
  509. p.CFrame=CFrame.new(pos+Vector3.new(0,500,0));
  510. p.Transparency=.4;
  511. p.Size=Vector3.new(20,1000,20);
  512. for i=1,20 do
  513. wait();
  514. p.Transparency=.4+(i/10)*.6;
  515. p.Size=Vector3.new(20-i*1.5,1000,20-i*1.5);
  516. p.CFrame=CFrame.new(pos+Vector3.new(0,500,0));
  517. end;
  518. p:Destroy();
  519. end);
  520. end;
  521. if Debounces.isMoving then
  522. 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));
  523. else
  524. c.HumanoidRootPart.CFrame=CFrame.new(mouse.Hit.p+Vector3.new(0,4,0),Vector3.new(oldPos.x,mouse.Hit.p.y+4,oldPos.z));
  525. end;
  526. end;
  527. end);
  528. mouse.KeyDown:connect(function(key)
  529. if key=='r'then
  530. local pointTarget=mouse.Hit.p;
  531. eye.Transparency = 0
  532. for i=1,20 do
  533. wait();
  534. 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));
  535. end;
  536. wait();
  537. largegasterBlast(CFrame.new(pointTarget+Vector3.new(0,35,0),pointTarget));
  538. end;
  539. end);
  540. mouse.KeyDown:connect(function(key)
  541. if key=='f'then
  542. local pointTarget=mouse.Hit.p;
  543. for i=1,20 do
  544. wait();
  545. eye.Transparency = 0
  546. 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)));
  547. end;
  548. largegasterBlast(CFrame.new(c.HumanoidRootPart.CFrame.p+Vector3.new(0,50,0),pointTarget):toWorldSpace(CFrame.new(0,0,-25)));
  549. end;
  550. end);
  551. mouse.Button1Down:connect(function()
  552. Debounces.isFlash=true;
  553. end);
  554. mouse.Button1Up:connect(function()
  555. Debounces.isFlash=false;
  556. end);
  557. mouse.KeyDown:connect(function(key)
  558. if key=='j'then
  559. if music2.isPlaying then music2:Stop();else music2:Play();end;
  560. end;
  561. end);
  562. mouse.KeyDown:connect(function(key)
  563. if key=='l'then
  564. if music3.isPlaying then music3:Stop();else music3:Play();end;
  565. end;
  566. end);
  567. mouse.KeyDown:connect(function(key)
  568. if key=='o'then
  569. if music5.isPlaying then music4:Stop();else music5:Play();end;
  570. end;
  571. end);
  572. mouse.KeyDown:connect(function(key)
  573. if key=='e'then
  574. eye.Transparency = 0
  575. gasterBlast(c.Torso.CFrame.p+Vector3.new(math.sin(tick()*10)*10,12,math.cos(tick()*10)*10),mouse.Hit.p,true);
  576. eye.Transparency = 0
  577. end;
  578. end);
  579. mouse.KeyDown:connect(function(key)
  580. if key=='c'then
  581. eye.Transparency = 0
  582. largegasterBlast(c.Torso.CFrame.p+Vector3.new(math.sin(tick()*10)*10,12,math.cos(tick()*10)*10),mouse.Hit.p);
  583. eye.Transparency = 0
  584. end;
  585. end);
  586. mouse.KeyDown:connect(function(key)
  587. if key=='q'then
  588. eye.Transparency = 0
  589. for i=1,5 do
  590. wait();
  591. gasterBlast(c.Torso.CFrame.p+Vector3.new(math.sin(tick()*10)*10,12,math.cos(tick()*10)*10),mouse.Hit.p);
  592. eye.Transparency = 0
  593. end;
  594. largegasterBlast(c.Torso.CFrame.p+Vector3.new(0,25,0),mouse.Hit.p);
  595. end;
  596. end);
  597. mouse.KeyDown:connect(function(key)
  598. if key=='t'then
  599. eye.Transparency = 0
  600. local pointTarget=mouse.Hit.p;
  601. for i=1,20 do
  602. 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);
  603. eye.Transparency = 0
  604. end;
  605. wait(.2);
  606. for i=1,10 do
  607. largegasterBlast(pointTarget+Vector3.new(math.sin(math.deg((360/20)*i))*25,20,math.cos(math.deg((360/20)*i))*25),pointTarget);
  608. end;
  609. end;
  610. end);
  611. human.StateChanged:connect(function(os,ns)
  612. if c.HumanoidRootPart.Velocity.Y<.1 and Debounces.isJumping==true and ns==Enum.HumanoidStateType.Landed then
  613. Debounces.isJumping=false;
  614. end;
  615. end);
  616. rs.RenderStepped:connect(function()
  617. Debounces.FPS=1/rs.RenderStepped:wait();
  618. if Debounces.FPS<30 then
  619. Debounces.FPS=30;
  620. end;
  621. if Debounces.isSprinting then
  622. lerpBoom();
  623. else
  624. noBoom();
  625. end;
  626. for _,v in pairs(rayModel:children())do
  627. v.Transparency=v.Transparency+.06/(Debounces.FPS/60);
  628. if v.Transparency>.99 then v:Destroy();return;end;
  629. v.CanCollide=true;
  630. v.Color=Color3.new(139,0,0)
  631. local tParts=v:GetTouchingParts();
  632. v.CanCollide=false;
  633. local vCFrame=v.CFrame;
  634. v.Size=v.Size+Vector3.new(0,1,1)/(Debounces.FPS/60);
  635. v.CFrame=vCFrame;
  636. for _,x in pairs(tParts)do
  637. if x and x.Parent and x.Parent:FindFirstChild'Humanoid'and x.Parent.Humanoid:isA'Humanoid'and x.Parent~=c then
  638. x.Parent.Humanoid.Health=0;
  639. end;
  640. end;
  641. end;
  642. local FPSLerp=AnimStat.lerpSpeed/(Debounces.FPS/60);
  643. end);
Add Comment
Please, Sign In to add comment