123iamstupid123

123

Jul 7th, 2016
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  
  2. dot = false
  3. des = false
  4. local ChatService = game:GetService("Chat")
  5. local player = game.Players.iiReanimation
  6. char = player.Character
  7. hum = char.Humanoid
  8. torso = hum.Torso
  9. lig = Instance.new("PointLight",player.Character.Torso)
  10. lig.Color=Color3.new(0,255,255)
  11. m=player:GetMouse()
  12. bb = Instance.new("BillboardGui",player.Character.Head)
  13. bb.Enabled = true
  14. bb.AlwaysOnTop = true
  15. bb.Size = UDim2.new(0,200,0,50)
  16. bb.StudsOffset = Vector3.new(0,1,0)
  17. gui=Instance.new("TextBox",bb)
  18. gui.Text = "* "
  19. gui.Size = UDim2.new(0,133,0,45)
  20. gui.Position=UDim2.new(0,57,0,-40)
  21. gui.TextColor3 = Color3.new(255,255,255)
  22. gui.BackgroundColor3=Color3.new(0,0,0)
  23. gui.TextWrapped = true
  24. gui.TextScaled = true
  25. gui.TextXAlignment = "Left"
  26. gui.TextYAlignment = "Top"
  27. gui.Visible = false
  28. gui.BorderColor3 = Color3.new(0,0,0)
  29.  
  30. gui1=Instance.new("TextButton",bb)
  31. gui1.Position=UDim2.new(0,5,0,-43)
  32. gui1.Size = UDim2.new(0,190,0,51)
  33.  
  34. gui1.TextColor3 = Color3.new(255,255,255)
  35. gui1.BackgroundColor3=Color3.new(255,255,255)
  36.  
  37. Debounces = {
  38. ["IsSpeech"]=false;
  39. }
  40.  
  41.  
  42. Speeches = {
  43. "rbxassetid://316403916",
  44. "rbxassetid://316403844",
  45. "rbxassetid://316403787",
  46. "rbxassetid://316403490"
  47. };
  48.  
  49.  
  50.  
  51.  
  52. function swait(num)
  53. if num==0 or num==nil then
  54. game:service'RunService'.Stepped:wait(0)
  55. else
  56. for i=0,num do
  57. game:service'RunService'.Stepped:wait(0)
  58. end
  59. end
  60. end
  61.  
  62.  
  63. for _,v in pairs(Speeches) do
  64.    
  65.     game:GetService("ContentProvider"):Preload(v)
  66.    
  67. end
  68.  
  69. so = function(id,par,vol,pit)
  70. coroutine.resume(coroutine.create(function()
  71. local sou = Instance.new("Sound",par or workspace)
  72. sou.Volume=vol
  73. sou.Pitch=pit or 1
  74. sou.SoundId=id
  75. swait()
  76. sou:play()
  77. game:GetService("Debris"):AddItem(sou,sou.TimeLength)
  78. end))
  79. end
  80.  
  81.  
  82.  
  83.  function speech()
  84.  if Debounces.IsSpeech then return end
  85.  Debounces.IsSpeech = true
  86.  
  87.  so(""..Speeches[math.random(1,#Speeches)].."",torso,1,1)
  88.  
  89. swait()
  90.  
  91.  Debounces.IsSpeech = false
  92.  end
  93.  
  94.  
  95. gui1.Visible = false
  96. img = Instance.new("ImageLabel",bb)
  97. img.Size = UDim2.new(0,46,0,47)
  98. img.Position = UDim2.new(0,10,0,-41)
  99. img.Image = "rbxassetid://388166921"
  100. img.BorderColor3 = Color3.new(0,0,0)
  101. img.Visible = false
  102. asd = Instance.new("Sound",player.Character.Torso)
  103. asd.SoundId = "http://www.roblox.com/asset/?id = 358280695"
  104.  
  105. asd1 = Instance.new("Sound",player.Character.Torso)
  106. asd1.SoundId = "http://www.roblox.com/asset/?id = 358280695"
  107.  
  108. asd2 = Instance.new("Sound",player.Character.Torso)
  109. asd2.SoundId = "http://www.roblox.com/asset/?id = 306370481"
  110. asd2.Looped = true
  111. asd3 = Instance.new("Sound",player.Character.Torso)
  112. asd3.SoundId = "http://www.roblox.com/asset/?id = 316014309"
  113. asd3.Looped = true
  114. asd4 = Instance.new("Sound",player.Character.Torso)
  115. asd4.SoundId = "http://www.roblox.com/asset/?id = 388938813"
  116. asd4.Looped = false
  117. asd5 = Instance.new("Sound",player.Character.Torso)
  118. asd5.SoundId = "http://www.roblox.com/asset/?id = 0"
  119. asd5.Looped = true
  120. dunkd = Instance.new("Sound",player.Character.Torso)
  121. dunkd.SoundId = "http://www.roblox.com/asset/?id = 333078694"
  122. dunkd.Looped = false
  123. function play(play)
  124. asd:Play()
  125. asd1:Play()
  126. end
  127. eye = Instance.new("Part",player.Character)
  128. eye.BrickColor = BrickColor.new("Toothpaste")
  129. eye.Material = "Neon"
  130. eye.FormFactor = 3
  131. eye.Shape = "Ball"
  132. eye.Size = Vector3.new(0.37,0.37,0.1)
  133. weld = Instance.new("Weld",eye)
  134. weld.Part0 = eye
  135. weld.Part1 = player.Character.Head
  136. weld.C0 = CFrame.new(0.1,-0.2,0.45)
  137. eye.Transparency = 1
  138. -- listen for their chatting
  139. player.Chatted:connect(function(message)
  140. a = string.len(message)
  141. gui.Text = "* "
  142. gui.Visible = true
  143. gui1.Visible = true
  144. des = false
  145. img.Visible = true
  146. print(a)
  147. if dot == false then
  148. for i = 1,string.len(message) do wait(0.07)
  149. gui.Text =gui.Text..message:sub(i,i)
  150.  
  151. play()
  152. end
  153. end
  154.  
  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);
Add Comment
Please, Sign In to add comment